Skip to content

Instantly share code, notes, and snippets.

View ratzlaff's full-sized avatar

Ben Ratzlaff ratzlaff

View GitHub Profile
@ratzlaff
ratzlaff / gist:1a8b1190f3e9e2a91ce4928601941338
Created November 21, 2018 00:14
Make suckless st compile on OSX..
diff --git a/config.mk b/config.mk
index 298484e..6d90f86 100644
--- a/config.mk
+++ b/config.mk
@@ -14,7 +14,7 @@ X11LIB = /usr/X11R6/lib
INCS = -I. -I/usr/include -I${X11INC} \
`pkg-config --cflags fontconfig` \
`pkg-config --cflags freetype2`
-LIBS = -L/usr/lib -lc -L${X11LIB} -lm -lrt -lX11 -lutil -lXext -lXft \
+LIBS = -L/usr/lib -lc -L${X11LIB} -lm -lX11 -lutil -lXext -lXft \
@ratzlaff
ratzlaff / explanation.md
Created June 27, 2016 23:58 — forked from masak/explanation.md
How is git commit sha1 formed

Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry. ☺

Locally, I'm at this commit:

$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <jnthn@jnthn.net>
Date:   Sun Apr 15 16:35:03 2012 +0200

When I added FIRST/NEXT/LAST, it was idiomatic but not quite so fast. This makes it faster. Another little bit of masak++'s program.