Skip to content

Instantly share code, notes, and snippets.

View BrianFehrle's full-sized avatar

Brian Fehrle BrianFehrle

View GitHub Profile
@BrianFehrle
BrianFehrle / gist:1175937
Created August 27, 2011 22:21
Retrieves the name of a spell using the spell id from wowhead.com
#!/usr/bin/python
import lxml.html
from string import replace
# define a list of mount spell id's
mount_id_lst = ['61470','13819']
# loop through each id
for mount_id in mount_id_lst:
@BrianFehrle
BrianFehrle / capmon.rb
Created November 4, 2011 18:47 — forked from amscotti/capmon.rb
Ruby script to retrieve and display Comcast data usage. See http://www.128bitstudios.com/2011/08/27/comcast-data-usage-put-a-fork-in-it/
#!/usr/bin/env ruby
require 'rubygems'
require 'mechanize'
URL_PRELOADER = 'https://customer.comcast.com/Secure/Preload.aspx?backTo=%2fSecure%2fUsers.aspx&preload=true'
URL_USERS = 'https://customer.comcast.com/Secure/Users.aspx'
abort "Usage: #{$0} <username> <password>" unless ARGV.length == 2
@BrianFehrle
BrianFehrle / check_postgres_replication.py
Created March 22, 2012 19:12 — forked from jacobian/check_postgres_replication.py
Nagios plugin to check PostgreSQL 9 streaming replication lag.
#!/usr/bin/env python
"""
Nagios plugin to check PostgreSQL 9 streaming replication lag.
Requires psycopg2 and nagiosplugin (both installable with pip/easy_install).
MIT licensed:
Copyright (c) 2010 Jacob Kaplan-Moss. All rights reserved.
#!/usr/bin/perl
use strict;
use warnings;
use threads;
my %tracks = ();
$tracks{'106019300'} = 'I are thread 1';
$tracks{'106019299'} = 'I are thread 2';
### Keybase proof
I hereby claim:
* I am brianfehrle on github.
* I am freakinweirdo (https://keybase.io/freakinweirdo) on keybase.
* I have a public key whose fingerprint is 17C2 CF25 44A5 A398 4F60 97AF 88C2 63BC 8E20 2D4B
To claim this, I am signing this object: