Scripts
Small scripts/code examples for which an entire page would be overkill.
Keep in mind these script were written for personal use. They are in such a condition that I would “release” them and they might be of use for other people, but usually they're not exactly well-documented or may not have fancy features like config files. Keep this in mind.
- ut-cache.py (1.0, 20090801)
- Simple python script to manage UnrealTournament cache files downloaded from servers.
- ut-serverbrowse.php (1.1, 20090925)
- Small PHP webpage to browse UT servers. Note that this doesn’t use
a masterbrowser but a fixed list of servers. This is a feature and not a bug
since the master server for Infiltration (UT mod I play) is very unreliable.
Since the number of servers is small maintaining a list manually is easy.
See it in action. - rss2mail (1.0, 20090801)
- PHP script to fetch RSS feeds and dump them in your mailbox. Advantage
is that it opens your IMAP/POP3 mailbox directly so no MTA/SMTP involved. It’s
simple and “just works”™.
This is designed to work with the commandline PHP interface (php-cli). But I guess using a cgi or apache module will also work. Note you will need pear-xml-rss for this. Take a look at rss2mail.ini for configuration. - changetracker.py (1.0, 20090801)
- Simple python script to change the tracker(s) of a torrent file. Requires Python BitTorrent libraries from bittorrent.com
.
I know it is *very* simple, one could hardly call this a script. But a number of people asked for it and/or found it useful, so here it is. - plist.py (1.0, 20090801)
- Python script to make a nice pkg-plist for FreeBSD ports.
The way I always use it is to install a port with PREFIX set to /tmp/pkgdb and then run:
# plist.py -p <portname> /tmp/pkgdb
What could be imporoved is 1) More variable substitution in ReplaceSub(), 2) Detect port dir from cwd so -p isn’t needed and 3) Config file for default options.
All of these changed are pretty easy to make but I can’t be bothered with it because I don’t really work on FreeBSD ports anymore, also, the script always worked fine for me as it is… - playrandom.py.txt (1.0, 20091018)
- Simple wrapper around mpg123
to allow random playing
UPDATE: I later found out mpg123 has such an option built-in. Read the frelling manpage I guess… :-/.