duncan­lock­.net

The Python Black formatter outputs to stderr, not stdout


Windows PowerShell does support aliases, but doesn't support commands with parameters in aliases - you have to create a function


How to template out JSON in Bash


How to find a git repositories default branch name


cssmin is unmaintained & has a bug with complex :is selectors


You can use the new CSS :is selector to write complex CSS selectors in a much more compact way


They will dig up your garden to get them.


How to allow python (or anything else) to listen/bind to port 80 without being root


Ninja is a surprisingly nice build system for tiny projects. That's more or less the opposite of what it's designed for, but it works really well for tiny things.


The content-type guessing done by AWS CLI is based on the mimetype definitions available on your system. You can improve the mimetype guessing by updating these definitions.