Skip to content

Instantly share code, notes, and snippets.

View grant-h's full-sized avatar

Grant Hernandez grant-h

View GitHub Profile
@grant-h
grant-h / gist:761d753011b8df8ec417
Created March 5, 2015 15:38
Git Aliases (git sl)
[alias]
br = branch
co = checkout
ci = commit
di = diff
st = status
sl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all --since='90 days ago'
summary = show # Mercurial crib
@grant-h
grant-h / keybase.md
Created September 15, 2015 16:04
keybase verification

Keybase proof

I hereby claim:

  • I am grant-h on github.
  • I am ghh (https://keybase.io/ghh) on keybase.
  • I have a public key whose fingerprint is B16E AC0A 1120 ED87 4B27 2DF7 E755 22DB D573 AC3B

To claim this, I am signing this object:

@grant-h
grant-h / gcc-static.min.sh
Created May 22, 2015 04:57
Statically linking .o files with gcc
#!/bin/sh
set -e
cat > libtest.c <<EOF
#include <stdio.h>
void test_function(int arg)
{
printf("Calling test_function(%d)\n", arg);