Seems the people over at the GeSHi Headquarters decided to release a new version of GeSHi, 1.0.8.4. So it was time for me to upgrade code-fu as well. You can as usual head over to the Atlantis Crew download section to grab it from there, and read more about code-fu at http://jorge.fbarr.net/code-fu-pastebin/. A working up-to-date copy can always be found at http://cf.fbarr.net/.
May 28, 2009
May 27, 2009
Easy reloading of Varnish
A co-worker of mine made a nice little script to make reloading of the default VCL that Varnish uses a bit easier. Not wanting to telnet or use varnishadm manually, this script does the trick. This was taken from http://kristian.blog.linpro.no/2009/02/18/easy-reloading-of-varnish-vcl/:
#!/bin/bash # Reload a varnish config # Author: Kristian Lyngstol FILE="/etc/varnish/default.vcl" # Hostname and management port # (defined in /etc/default/varnish or on startup) HOSTPORT="localhost:6082" NOW=`date +%s` error() { echo 1>&2 "Failed to reload $FILE." exit 1 } varnishadm -T $HOSTPORT vcl.load reload$NOW $FILE || error varnishadm -T $HOSTPORT vcl.use reload$NOW || error echo Current configs: varnishadm -T $HOSTPORT vcl.list
May 25, 2009
flac to mp3
$ for file in *.flac; do $(flac -cd "$file" | lame -h - "${file%.flac}.mp3"); done
May 20, 2009
dili 0.0.2 released
dili (DIrectory LIster) version 0.0.2 has now been released. It’s a simple script to list the contents of a directory when you haven’t enabled in on your webserver. You can see a working copy of it at http://jorge.fbarr.net/files/. Head over to http://www.atlantiscrew.net/download.html to grab the newest copy.
May 18, 2009
A happy day
Yesterday was a fun and happy day. :) 17th of May, Norway’s constitution day. We were in luck, the sun was shining, only a few clouds and the temperature was pleasant. Here are a few pictures from the occasion.











