Nix as a potential Linuxbrew replacement?

Linuxbrew Coming from a MacBook, I became comfortable with Homebrew as a package manager. Over time, I built up a collection of tools in my dotfiles to maximise my productivity. When moving over to Ubuntu, I realized a couple of these tools were missing from Apt. Naturally I went with something I was most comfortable with, in this case, Linuxbrew. Linuxbrew works. It’s just your normal Homebrew on Linux. On the rare occasion, you’ll find an unsupported package....

April 21, 2021 · 3 min · 446 words · Rameez Khan

Goodbye pyenv and nvm. Hello ASDF.

pyenv and nvm I maintain several side-projects, most of which are either Python or Node.js. For the longest time I used pyenv and nvm to manage different versions of Python and Node.js respectively. The configuration to manage these would be added to my dotfiles. Over time, my shell (zsh) startup times increased significantly to the point where it took roughly 3 seconds. I spend most of my life at the terminal, so this was insufferable....

October 9, 2020 · 2 min · 288 words · Rameez Khan

Tunneling via Kubernetes

For security reasons, you might find your database (or any service for that matter) in an internal subnet, somewhere in the cloud. Accessing this for local debugging/development can be a pain. Using Kubernetes (assuming you have a cluster already), you can use this to your advantage. Create the tunnel What you need: Kubernetes (with API access via kubectl ofcourse) An image with netcat installed (Nice opportunity to punt mine 😉) tcpserver (should come with any Debian based distro) Next, ensure your pod is running....

October 2, 2020 · 2 min · 225 words · Rameez Khan

An iPhone only Git workflow for blog posts

We are truly living in the future folks! Or, I may have been living under a rock. Seriously, I never thought this would be possible on iOS/iPhone. But with some initial setup it is! So without further ado, this is how I managed to write and deploy this post using only my iPhone. Apps Used Working Copy - Git client Textastic - Text editor with syntax highlighting Canva - Image editing and templating GitHub - Official GitHub app for viewing PRs Workflow In Working Copy I linked my GitHub account and cloned my blog repo....

July 7, 2020 · 4 min · 736 words · Rameez Khan

Adding keybindings to Doom Emacs

Doom Emacs? What happened to Spacemacs? In my previous post last year … Wow! I’ve really been neglecting this blogging thing, haven’t I? … I sung the praises for Spacemacs (an Emacs distrubution with pre-configured layers). I’ve since discovered Doom Emacs and have recently made the switch to it. For two reasons mainly: Speed. Doom Emacs is fast! Super Fast! (It has some nice lazy loading) Configuration. Spacemacs did it a lot of magic via its layers configs....

July 3, 2020 · 2 min · 288 words · Rameez Khan