Tag Archives: code

Yum: Checking for updates.

Here’s a quick script you can put in your cron rotation to check and see if there are any updates available and what they are: #!/bin/bash yum_output=/tmp/yum-check-update-output.txt python=/usr/bin/python1.5 yum=/usr/bin/yum $python $yum check-update > $yum_output yum_return_code=”$?” case $yum_return_code in 100) # … Continue reading

Posted in General, work | Tagged , , , , | 3 Comments

Count bandwidth

Here’s a script I wrote to count the bandwidth used from the Apache access_log. Continue reading

Posted in General, work | Tagged , , , , , , | 2 Comments

Vulnerable phpBB : Find and Disable.

Here’s a little script I wrote that attempts to find and disable old phpBB instances that may be vulnerable to the recent phpBB Worm in the wild. #!/usr/bin/perl # Name: Augie Schwer # File: find-vuln.pl # Date: 18, July 2005 … Continue reading

Posted in General, work | Tagged , , , , | 6 Comments