Skip to content

Instantly share code, notes, and snippets.

rthuffman

Block or report user

Report or block rthuffman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

View squid.bash
# Steps for turning on squid monitoring (until I have an rpm)
cat > /etc/collectd.d/squid << EOF
LoadPlugin exec
<Plugin exec>
Exec deploy "/var/lib/releng/monitoring/squid"
</Plugin>
EOF
mkdir -p /var/lib/releng/monitoring
View gist:6231416
#http://upstart.ubuntu.com/cookbook/#introduction
author "Zach Cox <zcox@pongr.com>"
description "Titan+Cassandra+Rexster"
version "0.3.1"
#2=regular running mode, 3,4,5 are aliases for 2
start on runlevel [2345]
#0=shutdown, 1=single-user mode, 6=reboot
View python-sort-list-object-dictionary-multiple-key.1.py
# Sort a list of dictionary objects by a key - case sensitive
from operator import itemgetter
mylist = sorted(mylist, key=itemgetter('name'))
# Sort a list of dictionary objects by a key - case insensitive
mylist = sorted(mylist, key=lambda k: k['name'].lower())
You can’t perform that action at this time.