Skip to content

Instantly share code, notes, and snippets.

Brian Fehrle BrianFehrle

Block or report user

Report or block BrianFehrle

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 gist:ae06a819084345cc0f55
### 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:
View gist:3252063
#!/usr/bin/perl
use strict;
use warnings;
use threads;
my %tracks = ();
$tracks{'106019300'} = 'I are thread 1';
$tracks{'106019299'} = 'I are thread 2';
@BrianFehrle
BrianFehrle / check_postgres_replication.py
Created Mar 22, 2012 — forked from jacobian/check_postgres_replication.py
Nagios plugin to check PostgreSQL 9 streaming replication lag.
View check_postgres_replication.py
#!/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.
View capmon.rb
#!/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 / gist:1175937
Created Aug 27, 2011
Retrieves the name of a spell using the spell id from wowhead.com
View gist:1175937
#!/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:
You can’t perform that action at this time.