Skip to content

Instantly share code, notes, and snippets.

View topperge's full-sized avatar

Matt Topper topperge

View GitHub Profile

Keybase proof

I hereby claim:

  • I am topperge on github.
  • I am topperge (https://keybase.io/topperge) on keybase.
  • I have a public key whose fingerprint is 1B2A 3BFA CE29 008F 660B B8FB E9AC 5E9C 4876 8DBE

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am topperge on github.
  • I am topperge (https://keybase.io/topperge) on keybase.
  • I have a public key whose fingerprint is C974 EFF5 151B 3C81 86FD 7021 FBB7 1204 8CB3 1FE8

To claim this, I am signing this object:

@topperge
topperge / savor.rb
Created May 10, 2012 05:42
Quick and Dirty Script to Grab all the Breweries and Beers for Savor and match them to Beer Advocate Profiles
require 'nokogiri'
require 'open-uri'
doc = Nokogiri::HTML(open("http://www.savorcraftbeer.com/beer-food/savor-breweries/"))
@beerUrls = doc.xpath('//div[@class="entry"]/p/a[@href]').map { |link| link['href'] }
puts 'Title,Brewery,Table,Style,Food,Beer Advocate Url,Rating,ABV,IBU'
@beerUrls.each do |beerUrl|
@topperge
topperge / hack.sh
Created April 22, 2012 14:46 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@topperge
topperge / Apache Virtual Host Config
Created March 24, 2012 20:01
Warden Strategy for SSL_CLIENT_S_DN Authentication with Devise
# Assume mod_headers are on, if not 'a2enmod headers'
RequestHeader set SSL_CLIENT_S_DN "%{SSL_CLIENT_S_DN}s"
RequestHeader set SSL_CLIENT_VERIFY "%{SSL_CLIENT_VERIFY}s"