Skip to content

Instantly share code, notes, and snippets.


Stephen Celis stephencelis

View GitHub Profile
JeffreyWay / gist:1525217
Created Dec 27, 2011
Instant Server for Current Directory
View gist:1525217
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'
rodrigotassinari / gist:1078666
Created Jul 12, 2011 — forked from sagmor/gist:1041943
Patched Ruby 1.9.2 for faster load and GC
View gist:1078666
# Ruby 1.9 Fast require:
curl > load.patch
# Ruby 1.9.2 GC Patch:
curl > gc.patch
rvm install 1.9.2-p180 --patch load.patch,gc.patch -n loadgc
rm gc.patch load.patch
gruber / gist:1063605
Created Jul 4, 2011
Simple Inbox Archiving Script for Apple Mail
View gist:1063605
-- See article here:
-- The following should be one long line:
set _description to "All unflagged, read messages in each IMAP account
inbox will be moved to the “Archive” mailbox corresponding to that
account. This action is not undoable."
tell application "Mail"
display alert "Archive read messages from IMAP inboxes?" buttons ¬
{"Cancel", "Archive"} cancel button 1 message _description
uasi / vim.rb
Created Nov 30, 2010
Vim formula for Homebrew (EDIT: recent versions of official Homebrew distribution includes one)
View vim.rb
require 'formula'
class Vim < Formula
homepage ''
url ''
head ''
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
version '7.3.682'
def features; %w(tiny small normal big huge) end
subtleGradient / appify
Created Nov 11, 2010
appify. Create the simplest possible mac app from a shell script
View appify
#!/usr/bin/env bash
# url :
# version : 2.0.2
# name : appify
# description : Create the simplest possible mac app from a shell script.
# usage : cat | appify MyApp
# platform : Mac OS X
# author : Thomas Aylott <>
bkeating /
Created Mar 11, 2010
HOWTO: Using FileMerge (opendiff) with Git on OSX

HOWTO: Using FileMerge (opendiff) with Git on OSX

FileMerge (opendiff) can really come in handy when you need to visually compare merging conflicts. Other times it's just a nice visual way to review your days work.

The following method works by creating a simple bash script ( that sets us up with the proper command line arguments for Git to pass off files to FileMerge.