That Fleming Gent...

Various bits of coding / scripting goodness live here; these are generally fairly small and mostly developed to either scratch an itch or localised need.

Perl Hacks

GeoIP datafile Fetchers
These are two fairly simple hacks I whipped up late one night in an effort to resolve a feature request logged against the GeoIP packages I maintain for Fedora Extras, as the stock geoupupdate(1) doesn't deal with the free databases Maxmind provide.
Their function is fairly simple - go out and fetch an updated copy of the appropriate GeoIP .dat file, move the old one out and uncompress the newly-fetched file in place.

Requirements are fairly minimal:

Usage:
It's best run from cron, usually on the first or second of the month when Maxmind update the files.
The scripts take no arguments; if you want to know how they work, read the source!
Download (Right click and "Save As" advised, remove the .txt when downloaded):
fetch-geoipdata.pl - This fetches the free GeoIP "lite" database (~2mb)
fetch-geoipdata-city.pl - This is for fetching the GeoIPCity Lite database (~25mb)

TODO:

Contact
Email: Michael Fleming
Jabber: mfleming@thatfleminggent.com
ICQ / MSN / AIM details: on request
PGP/GnuPG keys: Diffie-Hellmann; RSA

Site content created and © Michael Fleming 2002-2008. All rights reserved etc. etc. amen...
Last modifed on Thursday April 5 19:53:23 2007 +1000
Built using Bluefish, Graphics by The Gimp. Powered by Apache/2.2.9 (Fedora). You appear to be from United States. Good for you.

Go on, 38.103.63.61 IS from United States, isn't it?