Scripts
bf2xml [28 Sept 2008]
A python script that is able to retrieve information about a BF2 server, or any other server that uses game-monitor.com. Relies on minidom to read the XML file provided.
http://kahrn.pastebin.com/f2c4fffc
Licensed under public domain.
youtube-dl-simple [28 Sept 2008]
An adaption of the youtube-dl script by Ricardo Garcia Gonzalez. This adaption is intended to output the flv location to a normal youtube URL only.
http://kahrn.pastebin.com/f70418145
It is licensed in the public domain, the same as the original.
ctcp.py [13 Aug 2008]
An example/script of how to use IRC CTCP replies (VERSION, TIME, FINGER, PING) using standard python.
Special thanks to Gian Mario Tagliaretti (http://code.activestate.com/recipes/299411/)
for original irc connecting/socket code.
http://kahrn.pastebin.com/f7789c4c8
Take note the purpose of the script is to demonstrate CTCP replies and not other IRC functions!
C++ Hangman [0.1, 25 May 2008]
This is a text-based hangman game created by both Krazykaveman and myself. Nothing truly amazing, but entirely free to edit and republish. Published in a compressed file that contains the source, binary, and sample wordlist, or view the source on pastebin.
Package: http://gmnetwork.250free.com/scripts/hangman01.zip
Source: http://kahrn.pastebin.com/f673a6e66
appentry-optimize.py [0.3, 15 Nov 2008]
appentry-optimize is a script I developed in python to optimize application menus in freedesktop.org compliant desktop environments. This is able to save a little bit of filespace by removing all locales apart from the ones you specify. Tested in Xfce, Gnome and KDE. Average savings are around 150kB – 350kB. Future releases will remove more than locales in shortcut icons, and currently the development version is able to remove ~500mB of unnesscary locale data on some systems!
Download here or here, remember to read below for important information.
How to use
In order to use appentry-optimize you need to specify a locale you wish to keep. By default, non localized entries are also kept. In order to modify the locale you wish to keep, you must edit the script and find the section as follows:
# User definable variables
# Do not forget to update the locale section.# locale defines the locale you wish to KEEP in the optimization process. All other locales
# will be removed. If no locale is specified (or invalid), then it will remove ALL locales apart from the
# one with no locale specification. (example: en_GB, fr, ca)
locale = “en_GB”
You must then replace en_GB with the locale you want to keep. A list of valid locales is checked by the program to help ensure a valid locale is provided.
Program Options
The program now supports three command line switches. These are:
–enable-verbosity, -v – Enable verbose mode for more output.
–enable-backup, -b – Enable backup.
–help, -h – Display help.
