Programming

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 »

Prevent indentation when pasting from an external source in Vim

Occasionally when I copy and paste something from an external source into Vim every line gets indented, which is probably not something you want when pasting a code snippet. The solution to this problem is an easy one. Before pasting, first execute :set paste, then paste your content and to return the setting to its …

Prevent indentation when pasting from an external source in Vim Read More »

Scroll to Top