Skip to content

Instantly share code, notes, and snippets.

View sborsje's full-sized avatar
🤘

Stefan Borsje sborsje

🤘
  • Glass — Photography Community
  • Amsterdam, NL
  • X @sborsje
View GitHub Profile
@sborsje
sborsje / .bashrc
Created April 30, 2011 09:41
Switch projects
PROJECT_PARENT_DIRS[0]="$HOME/code"
for PARENT_DIR in ${PROJECT_PARENT_DIRS[@]} ; do
if [ -d "$PARENT_DIR" ]; then
for PROJECT_DIR in $(/bin/ls $PARENT_DIR); do
if [ ! -z `which $PROJECT_DIR` ]; then
continue # don't set alias if there is something already a command on the path with the same name
fi
if [ -d "$PARENT_DIR/$PROJECT_DIR" ]; then
alias "$PROJECT_DIR"="cd $PARENT_DIR/$PROJECT_DIR"
@sborsje
sborsje / 10.04-LTS-EBS.json
Created August 22, 2012 21:54 — forked from ticean/10.04-LTS-EBS.json
CloudFormation Ubuntu AMI Mappings (Canonical)
"Mappings" : {
"AWSInstanceType2Arch" : {
"t1.micro" : { "Arch" : "64" },
"m1.small" : { "Arch" : "32" },
"m1.large" : { "Arch" : "64" },
"m1.xlarge" : { "Arch" : "64" },
"m2.xlarge" : { "Arch" : "64" },
"m2.2xlarge" : { "Arch" : "64" },
"m2.4xlarge" : { "Arch" : "64" },
"c1.medium" : { "Arch" : "32" },

Keybase proof

I hereby claim:

  • I am sborsje on github.
  • I am sborsje (https://keybase.io/sborsje) on keybase.
  • I have a public key whose fingerprint is 3505 3A61 F5E7 4EEA 212F EE78 2309 BFB1 1693 161B

To claim this, I am signing this object: