Tag Archives: programming

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

Init script for rsyncd.

Ed: another one that was sitting in “drafts” for months. #!/bin/bash # # Startup script for rsyncd. # # chkconfig: 345 86 16 # description: rsync rocks. # case “$1″ in start) echo “Starting rsyncd…” /opt/rsync/bin/rsync –daemon –ipv4 ;; stop) … Continue reading

Posted in General, work | Tagged , , , , , | 1 Comment

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

Supybot init script for Debian.

Supybot is a neat little IRC bot written in Python. I had been looking for a bot to do some logging of my favorite IRC channel (#nblug on irc.nblug.org). The setup was pretty easy and the documentation is nice, but … Continue reading

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

Regular Expression Library

Regular Expression Library Oh sweet nectar; a repository for your favorite regular expressions.

Tagged , | 1 Comment

Get an interface’s information

Here is a bit of code to get an interface’s information; including the interface name, and MAC address:

Tagged , | Leave a comment

alarmClock

I added an HFile for C to the CodeBeautifier plugin, and I want to see how it turns out. Click ‘continue reading’ to see the actual code. alarmClock is a program I wrote last semester for my Systems Programming course. … Continue reading

Tagged , | Leave a comment

Fun with powers of two

Here is one of the problems we had for Theory of Comp. and my solution. It’s an interesting problem, but really just a an excuse to try out the CodeBeautifier plugin for MT. 4)Write a computer program that finds the … Continue reading

Tagged , | 4 Comments