This section contains various programs, tips, and code examples that I've written or found useful. Use them. Share them. Enjoy.

Traffic for Cricket
Traffic is a small PERL script that hooks into the Cricket graphing program. Traffic can be used to graph and record the total amount of data flowing through an interface on a switch or router during the course of a month. This is NOT a 5 minute incremental, but a running total.
Latest version: traffic_1_9.tar.gz
Latest README

LogMonitor for Cricket
So if you're like me (and I know I am), writing the script to parse the logfile to return stats to Cricket is easy. BUT...the log file you want stats from changes constantly. How do you make sure you're not getting duplicate data, and the log info you're parsing is only what has changed since the last check? Basically, you call this and it spits out any lines that have changed since the last check. You can then pipe this output into your parsing script to get stats, and return the whole thing to Cricket for graphing whatever kinds of things you need. This is a generic script that is meant to be piped into your own parsing routines to gather data...this script only takes care of making sure you don't have to worry about pulling the right data out of the continuously updating log file.

It's not perfect, but it works. Patches and updates are welcome.
Latest version: logmonitor_0_1.tar.gz
Latest README

Transparent Bitmap Button for wxPython
This archive contains a sample application that has a transparent bitmap button that is blitted over a window with an image for a background. Use this if you want, but I recommend using the SDL library if you're doing any real graphics stuff with Python.
transparent_bitmap_button.tar.gz

Automating Analog Web Stats for many hosted domains (Linux)
At the place I used to work, we hosted several websites on the same box. We needed some web stats for our customers, so we installed Analog and Report Magic. They are great programs. Unfortunately, as we added and removed customers, we got sick of modifying the config for running everyone's web stats every night. So, I wrote this PERL script that runs web stats automatically for each website that is configured in the httpd.conf file. It works well, and now when we add customers, their stats magically appear the next day without us having to remember to add them to the list. Conversely, customers who are removed from the server are automatically no longer processed.
Latest version: runwebstats_1_0.pl

Automating Analog Web Stats for many hosted domains (Windows 2000)
This is the same functionality as above, but for Windows 2000. The exception is that any logs that are in /winnt/system32/Logfiles are moved to the users home directory on the first run, and all subsequent logs are placed there as well. Also, rotations for log files are automatically changed to monthly.
Latest version: runwebstats_1_0.vbs


In addition, you may wish to check out some of the open source software that I use or support on a regular basis, listed below.

Fedora Linux
qmail
cricket
djbdns
UltraVNC
PuTTY
Mozilla Firefox
Mozilla Thunderbird