Skip to content

Instantly share code, notes, and snippets.

View nanodude's full-sized avatar
💭
Asleep at the wheel.

Carlos Antunes nanodude

💭
Asleep at the wheel.
View GitHub Profile
digraph autoconf_automake {
graph [ fontname = "Helvetica" fontsize = 12 ]
node [ fontname = "Helvetica" fontsize = 12 shape = "box"
style=filled fillcolor=palegreen
]
edge [ fontname = "Helvetica" fontsize = 12 ]
aclocal_m4 [label="aclocal.m4"]
config_h_in [label="config.h.in"]
config_h [label="config.h"]
@piscisaureus
piscisaureus / pr.md
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 = git@github.com:joyent/node.git

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:

@schacon
schacon / plumbing.md
Created August 18, 2011 04:51
plumbing cheat sheet

the plumbing commands

  • rev-parse [something]

    • show the SHA of any weird git phrase
  • hash-object -w [file]

    • take any file or stdin and return a blob sha
  • ls-tree (-r) [sha]

  • show the entries of a git tree in the db