click here to go 'up one level'


A Strange Mix of perl scripts for your viewing pleasure

Scale & Chord Grapher
rule out useless OpenNap servers
Cisco ACL Generator (uses XML Definition files)
Search the Windows Registry

Scale & Chord Grapher

chord.pl which shows the notes of various scales and chords as they appear on a guitar fingerboard.

chord.pl is a CGI wrappper for music.pl, which requires Guitar.pm, which is a subclass of Scales.pm

This can be seen in action at: Scale & Chord Grapher


Script to rule out OpenNap servers that are down

Occasionally, I like to download from OpenNap servers. (OpenNap servers replace the defunct free Napster service.) I run Linux, so I use Gnapster.

Gnapster is pretty nice, it downloads a list of currently available Opennap servers for you.

Problem is that the list at any given time contains many servers (often the majority on the list, in fact) that are down right now or gone forever. And the list is long. I got tired of this, so I wrote this script. (Right-click the link to download the script.)

You use it by going to the .gnapster directory and issuing:

fgs.plx servers >good_servers.

This takes the list of servers in the servers file and filters out the non-reponsive ones, producing a list of the responding servers in good_servers.

Then if you like the contents of the file good_servers, you copy it over the file 'servers', then bring up Gnapster. (The servers file was created in gnapster by going to 'Servers' -> 'Browse OpenNap Servers' and clicking the 'Refresh List' buttton.

Note that this will filter out servers that are completely non-responsive (don't respond in 10 seconds, which can be adjusted using the -t option) or those that respond indicating that the OpenNap server process is not running. It doesn't do anythng about the fact that the server may not like the gnapster client or that the server is already has the maximum number of users.

Cisco ACL Generator (uses XML Definition files)

aclxml2.pl which generates Access Control Lists (ACLs) for use in Cisco Routers from XML files which define the hosts, networks connections and desired traffic flows.

ACLs are one part of a security policy used to defend devices on a network. ACLs define which services can be accessed on which devices from which other devices.

Generating ACLs can be arduous, particularly if the ACLs are to be tailored for each individual machine of a large number of machines.

The script can be downloaded here.

The documentation can be seen here.


Search the Windows Registry Using Regular Expressions in a GUI App

reg.pl or it's compiled version reg.exe use perl under win32 (Windows 95/98 or Windows NT 4.0) and perl/Tk to allow the searching of the 'registry', using perl's implementation of regular expressions, searching in the keys or values for the given string.

The main window can be seen here (17KB).

The Search Results Window can be seen here (33 KB).

The Save As window, used to save the results to a text file, can be seen here (20 KB).

The reg.pl perl script is here (25 KB). (Right-Click and select 'Save as' to save, rather than view, file.

The reg.exe compiled windows executeable is here (1,349 KB).
This is a self extracting zip file which also includes the perlcrt.dll needed to run this program.