Applications

Shell
Perf.sh

A performance monitor which runs vmstat for an hour at 2 minute intervals and stores the output.

It assumes that the script and data both live in /home/Performance. To use this properly, add a crontab entry which looks like :

0 * * * * /home/Performance/bin/Perf.sh

i.e. start on the hour, every hour. The script itself runs for an hour and then stops.
Comments?

 
SetUp.sh

This is an integrity checker intended for UNIX/Linux systems. With minor mods, it could become a light-weight tripwire replacement. It produces lists of files which match specific criteria :

The truely paranoid can run this from a CD which would have protected versions of any files which 'must not' be changed. If you choose this approach, remember to include not just this script, but the shell, md5sum and copies of all the utilities that get called.
Comments?

Perl
ShowDBStructure

This connects to a database and builds an HTML page which holds the description of each of the tables. If you're using MySQL's internal permissions database (highly recommended), the user that you give here only needs select access. Everything ought to be self explanatory.

Here's a sample of the output.
Comments?

Zeller's Congruence

This will take a date expressed as "yyyymmdd" and calculate the day of the week using Zeller's Congruence.
Comments?

JavaScript
Email.js

A simple piece of Javascript which will hide your email address from harvesters. There are plenty of other ways of doing this of course, including replacing each character of the address with the hex string representing the character (you can see what I mean looking at the definition for "bit2", which holds the 'at' symbol and is shown in hexadecimal).
Comments?

 


 Back Creative Commons License
This work is licensed under a
Creative Commons License.