Default parameter passing $@ ... Passthru with defaults # PRE-FLIGHT: add default arguments if [ $# -lt 1 ]; then set -- "server" "-h0.0.0.0" fi ... /usr/local/bin/lektor "$@" # # Wrap kubectl by injecting configuration. #...
Resilient Bash starter template Over the years I have worked on serious production-level issues that turned out to be caused by shell scripts, sometimes burning days of engineering time. This starter template helps prevent common mistakes.
Remapping F1-F9 as 1-9 using Xmodmap Recently I found myself in the unfortunate position that the 1 2 3 4 5 6 7 8 9 0 keys on my laptop stopped working, which is more cumbersome than you might think. While waiting on a replacement...
New land... the maasvlakte. Today we decided to take ourselves and our dog to the beach, for a walk and to catch a breeze in the wind. Usually driving to a industrial port site is not regarded logical if you were planning to...
Little contest: Crack my 'ROT13 On Steroids' cypher A few weeks ago I was in a what-to-code-right-now-mood and inspired by The Gold Bug I decided to write a little easy cypher in PHP (could have been any language^TM^ of course) without any secret...