Skip to content

Instantly share code, notes, and snippets.

View gregfu's full-sized avatar

Greg Furmanek gregfu

View GitHub Profile
#!/usr/bin/env bash
if [[ ! -d "${HOME}/.nvm" ]]; then
git clone https://github.com/creationix/nvm.git "${HOME}/.nvm"
fi
NODE_VERSION="v0.10.21"
source "${HOME}/.nvm/nvm.sh"
nvm install $NODE_VERSION
@gregfu
gregfu / gist:1524894
Created December 27, 2011 19:35 — forked from shazron/gist:943736
About XCode 4 Project Template (How To Create Custom Project Template)
From: http://snipt.net/yonishin/about-xcode-4-project-template
XCode 4 Projects and Files Template Folder: /Developer/Library/Xcode/Templates
Examples:
/Developer/Library/Xcode/Templates/Project Templates/Base/Other/Empty.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Base/Base.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Mac/Mac Base.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Command Line Tool.xctemplate
/Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Cocoa Application.xctemplate
@gregfu
gregfu / gist:69795
Created February 24, 2009 21:26 — forked from jsierles/gist:29838
#!/usr/bin/env ruby
#
# Find bloating passengers and kill them gracefully. Run from cron every minute.
#
# required for passenger since cron has no environment
ENV['HTTPD'] = 'httpd'
MEM_LIMIT = ARGV[0] || 500