Skip to content

Instantly share code, notes, and snippets.

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:

danieldk / parmap.go
Created October 1, 2012 10:32
Parallel mapping in Go
package parmap
import (
type empty struct{}
type semaphore chan empty
kilfu0701 /
Last active April 13, 2017 02:19
install python 2.7.6 from source. ( CentOS )
## install deps if need
yum -y install openssl-devel readline-devel bzip2-devel sqlite-devel zlib-devel ncurses-devel db4-devel expat-devel
## if build from python src
cd ~
mkdir src
cd src
tar zxvf Python-2.7.6.tgz
cd Python-2.7.6