Christiaan Kras

How to create and password protect a ZIP file on macOS/Linux using the command line

I was in need of password protecting a ZIP file on macOS, but couldn’t find an intuitive way to do so. Luckily we can do it on the terminal. This works with both macOS and Linux. This command will prompt you for a password to protect the ZIP file with. The result will be an …

How to create and password protect a ZIP file on macOS/Linux using the command line Read More »

Use older version of Node.js on MacOS with homebrew

Homebrew (or brew) for MacOS is great, but one thing I dislike is how it can upgrade to a major release of say Node.js or Perl. This usually comes with a lot of incompatibility issues because not all modules you’ve got installed work yet or require reinstalling. To switch to an older version you can …

Use older version of Node.js on MacOS with homebrew Read More »

Template fragments with Mojolicious

If you’re using the excellent htmx library for adding interactivity to your website or webapp you greatly benefit from using a templating engine that supports rendering fragments (I suggest reading this first if you don’t know yet about fragments and why they’re useful, especially in the context of htmx). Using fragments you’ll be able to …

Template fragments with Mojolicious Read More »

Scroll to Top