Skip to content

Instantly share code, notes, and snippets.

View wookimiii's full-sized avatar

Andrew Kim wookimiii

View GitHub Profile
@wookimiii
wookimiii / grco.bash
Last active September 15, 2021 22:06
Check out a branch using grep
#!/bin/bash
BRANCHES=$(git branch -ra | grep $1)
NUM=$(echo "$BRANCHES" | wc -l)
# check for empty
if [ "X$BRANCHES" = "X" ]
then
echo "No branch matches $1"
fi
@wookimiii
wookimiii / active_record_sql.rb
Created May 1, 2012 21:56
turn on activerecord sql statements
ActiveRecord::Base.logger = Logger.new(STDOUT)
@wookimiii
wookimiii / gist:1666388
Created January 23, 2012 23:33
buzz dashboard db calls
We couldn’t find that file to show.