Maybe I Like Haskell

Problem

I’m writing a CLI tool - called hmm - in Haskell that manages tmux sessions. By default, I want it to open a session named after the current git context. I.e. if I’m working on branch bar in repo foo I want the session to be named foo-bar. However, on rare occasions, I might want to override either value. To do this, I have optional command line flags

Read more >

Troubleshooting Failing Commands

I created a new command on my Discord bot (PR #16) that fetches the status of the Minecraft servers running on minecraft.kgb33.dev. When running locally it worked perfectly, but when running in production it fails silently. This post outlines the debugging steps I took to solve the issue.

Read more >

TiL..About git remotes

I’m trying out daily driving NixOS and one of the problems I have is knowing when updates are available. On NixOS all the packages are defined in a giant git repository - github:nixos/nixpkgs - and updates are commits to the various branches (called channels) of this repo. Then, my system is locked to a particular commit hash for whichever channel I’m comfortable running. Thus, to find out if there are updates available I just have to check if the most recent hash is in the lock file.

Read more >