Skip to content

Instantly share code, notes, and snippets.

View josephgrossberg's full-sized avatar

Joe Grossberg josephgrossberg

View GitHub Profile
@josephgrossberg
josephgrossberg / Deathbed regrets
Last active October 3, 2015 14:58
Deathbed regrets, inverted
From: http://lifehacker.com/5904390/add-these-five-commands-to-the-top-of-your-to+do-list-avoid-the-most-common-deathbed-regrets
Format: Bronnie Ware / Paul Graham
I wish I'd had the courage to live a life true to myself, not the life others expected of me. / Don't ignore your dreams.
I wish I hadn't worked so hard. / Don't work too much.
I wish I'd had the courage to express my feelings. / Say what you think.
I wish I had stayed in touch with my friends. / Cultivate friendships.
I wish that I had let myself be happier. / Be happy.
@josephgrossberg
josephgrossberg / git_branch_creation.txt
Created May 25, 2011 17:28
Remote branch creation without editing config file
function gitbranch {
git checkout -b "$1";
git push -u origin "$1";
}
#######################
# create local branch
git branch foo
class Foo
def bar
puts "baz"
end
end