Skip to content

Instantly share code, notes, and snippets.

View mitchellh's full-sized avatar

Mitchell Hashimoto mitchellh

View GitHub Profile
View gist:11401896

Banana Bread


  • 1/2 butter
  • 1 c. sugar
  • 2 eggs
  • 3 smashed bananas
  • 2 c. flour - whole grain or white spelt is best
  • 1 tsp. baking soda
piscisaureus /
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url =

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

ktkaushik / status_header_setter
Created April 17, 2012 11:32
Set HTTP status headers with respond_with( object ) in rails.
View status_header_setter
1xx Informational
100 Continue :continue
101 Switching Protocols :switching_protocols
102 Processing :processing
2xx Success
200 OK :ok