Sami Fayoumi

About Me

Hello reader! I'm Sami Fayoumi, a Software Engineer based out of London, Ontario. I'll be sharing content related to programming, urban planning, and anything else that catches my interest.

Blog

Fly.io Remote-Local Web development 2023-10-22

Serve your local web dev server through your cloud environments

I have recently been building a system with a web frontend that runs on Fly. Maintaining a local web development environment had been cumbersome and required maintaining mock APIs or running test versions of the APIs locally. With Fly's wireguard integration and some Openresty Lua scripting, I was able to avoid this trouble by serving my local web development server through staging and development environments on Fly.

Syntax Highlighting SQL in strings 2022-11-10

Readable SQL

I write most of my backend code in Go, with PostgreSQL as my primary database. Queries are written in Go strings, and have no SQL syntax highlighting. I never considered trying to apply syntax highlighting to SQL strings, but Neovim and Tree-sitter made this too easy to ignore.

JavaScript Compatible Snowflake ID 2022-10-25

Giving in to The Web

In my research into Snowflake ID , I encountered a surprising limitation with JavaScript's number type. All was well when generating Snowflake IDs in my Go code, but there was a problem decoding IDs in the JS console.