Skip to content

Instantly share code, notes, and snippets.

@kurtraschke
kurtraschke / newsmb.sh
Created December 23, 2010 16:21
Big Brother (bb4.com) script for monitoring SMB servers
#!/bin/sh
#set -x
#
###################################################################
# smb.sh Charles Gillanders charles.gillanders@toucan.ie
# Modified by Kurt Raschke <kurt@kurtraschke.com>:
# No longer requires a valid user/pass for each machine
# Minor bug-fixing; better handling of the "dialup" and "nonetpage" directives
#
# A Big Brother External Script
@kurtraschke
kurtraschke / nrc-atom.pl
Created November 22, 2010 02:43
NRC ENR Atom feed generator
#!/usr/local/bin/perl -T
#NRC ENR Atom feed generator
#Kurt Raschke
#kurt@kurtraschke.com
#Resources:
#http://linuxgazette.net/108/oregan2.html
#http://linuxgazette.net/109/oregan.html
#http://ttul.org/repos/cpan/trunk/Kwiki-Atom/lib/Kwiki/Atom.pm
@kurtraschke
kurtraschke / parsecallno.py
Created September 1, 2010 03:04
Regular expression and script for parsing and sorting Library of Congress Classification call numbers
import re
myfile = open('list', 'r')
callnos = myfile.readlines()
p = re.compile("""^(?P<aclass>[A-Z]{1,3})
(?P<nclass>\\d{1,4})(\\ ?)
(\\.(?P<dclass>\\d{1,3}))?
(?P<date>\\ [A-Za-z0-9]{1,4}\\ )?