Skip to content

Instantly share code, notes, and snippets.

View ryanfitzer's full-sized avatar

Ryan Fitzer ryanfitzer

View GitHub Profile
#!/bin/bash
function usage {
echo "USAGE: git merge-svn <from> [<to>]"
echo ""
echo " from The branch name to be merged FROM"
echo " to Optional branch name to be merged onto. Default: HEAD"
echo ""
}
@ryanfitzer
ryanfitzer / gist:1372424
Created November 17, 2011 05:18 — forked from jrburke/basic.js
possible jquery plugin boilerplate
!function( root, factory ) {
// Export
if ( typeof exports === 'object' ) {
// Node/CommonJS
factory( require( 'jquery' ) );
} else if ( typeof define === 'function' && define.amd ) {
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh