Skip to content

Instantly share code, notes, and snippets.

View zimdo's full-sized avatar

Timo Mika Gläßer zimdo

View GitHub Profile
@zimdo
zimdo / gist:f9fa5ab03cde2fa21393ef9fe71f3296
Created August 16, 2016 16:36 — forked from dmitshur/gist:6927554
How to `go get` private repos using SSH key auth instead of password auth.
$ ssh -A vm
$ git config --global url."git@github.com:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "git@github.com:"]
	insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!
@zimdo
zimdo / portforwarding.md
Created August 30, 2016 18:19 — forked from kujohn/portforwarding.md
Port forwarding in Mavericks

Port Forwarding in Mavericks


Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.

####1. anchor file Create an anchor file under /etc/pf.anchors/<anchor file> with your redirection rule like: