Codepile

.plan
[Last 5] [Last 10] [Index] [RSS Feed]
[Full .plan (over 1MB)]
Contact Me

Notes

Notes
SubVersion
Vim
C and C++
FreeBSD
more...

RMITCS

C Helpdesk Resources
Customising Your CS Account
CS Fluxbox Menu Maker

Software

Codepile
Assorted little scripts and apps.
dumps.pl - FreeBSD Backup script
rastodo.py - Python Console todo/reminder
more...
Android
NumLock
Lost Emulators

Game Mods

LethalMod
A Max Payne 2 mod - more realistic and deadly.
more...

Image Gallery

Image Gallery
Photos
Screenshots
more...

Roleplaying Games

Shadowrun Notes(4th ed)
Heavy Gear Notes(2nd ed)
GURPS Notes
GameMastering Notes

Miscellaneous

links
Taglines
crazy
Trombone slide position chart [PDF]
[Back to home page]

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.

nvidia-rrd.pl
Last updated 07 January 2012: First commit
This is a simple example of how to generate graphs of a statistic using RRDTool and perl. It gets the GPU temperature of a Nvidia card (parsing output of the nvidia-smi command) then adds it to a RRDTool database. The script can be run from cron to gather the data; graphs are generated on demand by passing a command line option.
vodausage.py
Last updated 26 September 2011: First commit
Parses postpaid Vodafone usage data and tells you how much data and calls you have used.
The vodafone site is incapable of adding this up correctly - it adds data "charges" to the call charges, although prepaid plans have a data allowance.
You need to log in to "My Vodafone", and go to the usage details page then download the data. It should give you a CSV file - run this script with the file as and argument.

dumps.pl
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.

dice.pl
Last updated 27 March 2006

A commandline dice roller script. As well as doing 'normal' (summed) rolls, it also supports some of the rolls for Alternity Shadowrun 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.

rastodo.py
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.

todo.c (Deprecated by rastodo.py, above)
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.

timetable.c
Last updated 2009: Can allocate differnet chars to different entries for the busy-plots.

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. Can also be used to generate weekly plots showing when you are busy and basic timetable printouts.

dlnohup.c
Last updated 08 December 2006

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).

retag.pl
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).

8bitscan.c
Last updated 20 October 2007: First Commit

Scans one or more text files looking for 8 bit characters. Prints the file/line/column of any which are found.

portdeps.pl
Last updated 20 October 2007: First Commit

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.
Generated Sat, 07 Jan 2012 22:09:54 +1100
Copyright © 2002-2011 Dylan Leigh.
[HTML 4.01 Transitional]