Skip to content

Instantly share code, notes, and snippets.

View cwalsh's full-sized avatar

Cameron Walsh cwalsh

  • BigCommerce
  • Sydney, Australia
View GitHub Profile
@cwalsh
cwalsh / keybase.md
Created March 3, 2015 02:14
Keybase Proof of Github Ownership

Keybase proof

I hereby claim:

  • I am cwalsh on github.
  • I am cameronwalsh (https://keybase.io/cameronwalsh) on keybase.
  • I have a public key whose fingerprint is 20CA 4C1B D97A D157 220D 6AF7 F633 C28F 1FC5 F852

To claim this, I am signing this object:

@cwalsh
cwalsh / fake_my_status.rb
Created May 1, 2013 05:55
Sinatra app that responds with whatever status code you ask it to.
require 'sinatra'
get '/:status_code' do
status params[:status_code].to_i
end
#The beginnings of a bash script to allow you to do "vi features/step_definitions/thingy_steps.rb:166" and have it load the rb file and jump to line 166 instead of trying to open a file called "thingy_steps.rb:166"
function vim() {
IFS=':' read -ra PARAMS <<< "$1"
if [ -z "${PARAMS[1]}" ]; then
/usr/bin/vim ${PARAMS[0]}
else
/usr/bin/vim ${PARAMS[0]} -c ${PARAMS[1]}
fi
}