Skip to content

Instantly share code, notes, and snippets.

View mdeering's full-sized avatar
👨‍💻
Computer, computer, computer

Michael Deering mdeering

👨‍💻
Computer, computer, computer
View GitHub Profile
@mdeering
mdeering / config.ru
Created May 1, 2012 20:49 — forked from brookr/config.ru
Rackup file I use for running WordPress on Pow
# config.ru for Pow + Wordpress, based on http://stuff-things.net/2011/05/16/legacy-development-with-pow/
# added hackery to work around wordpress issues - Patrick Anderson (patrick@trinity-ai.com)
# clearly this could be cleaner, but it does work
require 'rack'
require 'rack-legacy'
require 'rack-rewrite'
# patch Php from rack-legacy to substitute the original request so
# WP's redirect_canonical doesn't do an infinite redirect of /
@mdeering
mdeering / multi-firefox-fixer.sh
Created September 6, 2011 18:27 — forked from cowboy/multi-firefox-fixer.sh
Multi-Firefox Fixer: Run multiple versions of Firefox simultaneously! (note: doesn't work on Windows)
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" ]; then cat <<EOF
Multi-Firefox Fixer - v0.2 - 4/26/2011
http://benalman.com/
Usage: `basename "$0"`
Run this shell script from beside (in the same parent directory as) one or more
Firefox*.app or Aurora*.app applications and it will "fix" those Firefoxes to