Some assorted scripts and small apps I've written. Many are
extensions of someone else's stuff. Some are under a BSD/Apache
attribution-style licence, some are Public Domain - see the specific
file for details.
Last updated 20 October 2007: Restore tests now
different depending on whether or not a level 0 dump was done. Fixes
false failure bug.
A FreeBSD 6+ dump/backup script. Run once a day (by /etc/crontab)
and takes dumps of live filesystems (using UFS2 snapshots as
necessary). The dumps are piped through bzip2 (or another selectable
compressor) and saved to a timestamped file in a given directory.
The script supports a range of backup schedules, from simple full
backups every week, to incremental weekly and various Tower of Hanoi
inspired arrangements. The schedule and other options are configurable
constants up the top of the script.
Planned future features: Restore test failure prints diagnostics,
automated post-command hook (for burning to backup media). Quiet
mode.
A commandline dice roller script. As well as doing 'normal' (summed) rolls, it also supports some of the rolls for AlternityShadowrun
and Silhouette (Heavy Gear and Jovian Chronicles).
Planned future features: 4th edition Shadowrun rolls (you
can just use target number 5 for now, although the rule of six works
differently). Manpage or cli help.
Last updated 21 September 2008: Fixed ANSI colour
background for non-black terminals; documented the new .todo format.
A console based todo/reminder app. The successor to todo.c
(below), includes different types of todo items like "sleeping",
"wishlist" and "appointment" which are all treated differently. The
output can be filtered by category or type.
Last updated 21 September 2008: Fixed ANSI colour
background for non-black terminals.
A console based todo/reminder app. Based on Emil's todo.c, this
adds support for years (entries aren't silently pushed into next year
when they go past their deadline), undated entries, ANSI colours,
reversed sort, different .todo files and more.
Last updated 21 September 2008: Fixed ANSI colour
background for non-black terminals.
Console timetable/reminder app. While todo.c is for once off items,
timetable.c is for stuff that heppens every week. Prints the classes
you have to go in the next few days.
A nohup which will redirect stdin, stdout and stderr to files of your
choice. Inspired by getting the results of several experiments mangled into
the one ~/nohup.out (oops).
Last updated 30 July 2007: Cleaned up documentation
A script to add a random tag (quote) to the end of your signature in a
mail or newspost. Adds an attribution or number to the headers. It
supports searching (the tag used will be randomly selected from the
subset of all those matching the search expression).
Quick hack to pretty-print all the dependencies of a BSD Port,
with their descriptions. It does all the build dependencies then all
the run dependencies, and includes ports which are not up to date, so
you will get some duplicates. It must be run from the port's
directory (e.g. /usr/local/www/apache22), no arguments.