Skip to content

Instantly share code, notes, and snippets.

View leereilly's full-sized avatar

Lee Reilly leereilly

View GitHub Profile
@leereilly
leereilly / santa-fe-recommendations.md
Created September 21, 2011 21:04
Recommendations for Ben's NM Trip

This is an introduction to GitHub's GIST and some recommendations for places to eat/drink play in Northern New Mexico...

Santa Fe

  • Santa Fe Baking Company - A breakfast burrito smothered in "christmas" (green and red chile)
  • India House - Chicken Tikka Masala is to-die-for; the best you'll taste anywhere in the world. That's a Lee guarantee. Don't get confused with India Palace in downtown Santa Fe, and don't go for the buffet menu #notAsGood
  • El Farol - anything (drinks, tapas) - great bar with live music at night

Los Alamos

@leereilly
leereilly / dpkg.rb
Created October 26, 2011 20:02 — forked from benburkert/dpkg.rb
homebrew formula to get dpkg working a mac
require 'formula'
class Dpkg <Formula
url 'http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_1.16.1.1.tar.bz2'
md5 '73fb4d67dbc9f9f14a776187429ce3f1'
homepage 'http://en.wikipedia.org/wiki/Dpkg'
def patches
#Fixes the PERL_LIBDIR
@leereilly
leereilly / Brew-config-log.txt
Created October 26, 2011 20:34
Brew/dpkg issues
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by dpkg configure 1.16.1.1, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/dpkg/1.16.1.1 --disable-compiler-warnings --disable-linker-optimisations --disable-compiler-optimisations --without-start-stop-daemon PERL_LIBDIR=/Library/Perl/5.10.0/
## --------- ##
## Platform. ##
/usr/bin/curl -f#LA Homebrew 0.8 (Ruby 1.8.7-249; Mac OS X 10.7.2) https://raw.github.com/gist/1317630/dpkg.rb -o /Users/lee/Library/Caches/Homebrew/Formula/dpkg.rb
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Downloading http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_1.16.1.1.tar.bz2
File already downloaded in /Users/lee/Library/Caches/Homebrew
/usr/bin/tar xf /Users/lee/Library/Caches/Homebrew/dpkg-1.16.1.1.tar.bz2
==> Patching
/usr/bin/patch -f -p1 -i 001-homebrew.diff
@leereilly
leereilly / trap.rb
Created December 4, 2011 06:07
GCHQ
require 'GCHQ'
secret = 'http://www.youtube.com/watch?v='
[ "eb 04 af c2 bf a3 81 ec 00 01 00 00 31 c9 88 0c",
"0c fe c1 75 f9 31 c0 ba ef be ad de 02 04 0c 00",
"d0 c1 ca 08 8a 1c 0c 8a 3c 04 88 1c 04 88 3c 0c",
"fe c1 75 e8 e9 5c 00 00 00 89 e3 81 c3 04 00 00",
"00 5c 58 3d 41 41 41 41 75 43 48 3d 42 42 42 42",
"75 3b 5a 89 d1 89 e6 89 df 29 cf f3 a4 89 de 89",
@leereilly
leereilly / questions.md
Created December 28, 2011 21:51
Albuquerque Drinkup Pub Quiz (for winning T-shirts)

[Q1] Name the 3 founders of GitHub (full names or usernames OK).

[Q2] Where was the idea for GitHub first discussed. Hint: It was a bar, sounded like 'Freaks', began with a Z.

[Q3] Who was GitHub's first employee? Hint: They wrote a book called Pro Git.

[Q4] Who created Git?

[Q5] GitHub just acquired a company. Name one of their awesome products.

@leereilly
leereilly / fixBrewLionPostgres.sh
Created February 1, 2012 22:57
Brew Install Postgresql on OS X Lion
#!/bin/sh
#via http://nextmarvel.net/blog/2011/09/brew-install-postgresql-on-os-x-lion/
BREW_POSTGRES_DIR=`brew info postgres | awk '{print $1"/bin"}' | grep "/postgresql/"`
LION_POSTGRES_DIR=`which postgres | xargs dirname`
LION_PSQL_DIR=`which psql | xargs dirname`
sudo mkdir -p $LION_POSTGRES_DIR/archive
sudo mkdir -p $LION_PSQL_DIR/archive
for i in `ls $BREW_POSTGRES_DIR`
@leereilly
leereilly / gist:2033274
Created March 14, 2012 01:40
Ally Birthday Present Ideas 2012
@leereilly
leereilly / static-sites-with-ruby-on-heroku-cedar.md
Created July 21, 2012 20:46
Static Sites with Ruby on Heroku/Cedar

This article was forked from Marshall Huss's Bamboo stack article and updated by Lee Reilly. Lee is a toolsmith and master pintsman hacking on GitHub Enterprise.

Static Sites with Ruby on Heroku/Cedar

Sometimes you just have a static website with one or two pages. Here is a simple way to host your static site and cache it on Heroku using a Rack app.

Your folder should be organized like this:

- MySite
@leereilly
leereilly / gist:3200294
Created July 29, 2012 17:07 — forked from danparsons/gist:3195652
How to stream the London 2012 Olympics

How to stream the London 2012 Olympics

There have been several HOWTOs posted regarding streaming the 2012 Olympics using HTTP / SOCKS proxies via SSH and other similar methods. None of these actually work using the latest Flash on Mountain Lion (with Firefox, Chrome or Safari). Additionally, the third-party streaming sites don't provide BBC's amazing interface, which lets you quickly skip to individual competitors and events. However, setting up an OpenVPN server does work, with some tweaks. You'll get the exact same UX that people in England receive.