Skip to content

Instantly share code, notes, and snippets.

View tcoffin's full-sized avatar

Tyler Coffin tcoffin

View GitHub Profile
@tcoffin
tcoffin / coverage.md
Created May 14, 2014 19:51
gcov and lcov usage

CFLAGS+=-g -fprofile-arcs -ftest-coverage lcov --zerocounters --directory $PWD lcov --capture --directory $PWD --output-file coverage.info genhtml coverage.info --output-directory

@tcoffin
tcoffin / Makefile
Created May 2, 2014 15:30
Example makefile with proper dependency handling
SRCS := foo.c bar.c
OBJS := $($(SRC):.c=.o)
foo: $(OBJS)
$(CPP) -o $@ $^ $(LINKFLAGS)
-include $(OBJS:.o=.d)
%.o: %.cc
$(CPP) -c $(CFLAGS) $*.cc -o $*.o
@tcoffin
tcoffin / android-re-sign.sh
Created April 30, 2014 15:33
resign android application with developer key
#!/bin/bash
# usage: android-re-sign.sh <in apk> <out apk>
# re-signs an android application with the default debug signing key
inapk="$1"
outapk="$2"
cp "$inapk" "$outapk"
zip -d "$outapk" META-INF/\* # delete the existing signing

Keybase proof

I hereby claim:

  • I am tcoffin on github.
  • I am tylercoffin (https://keybase.io/tylercoffin) on keybase.
  • I have a public key ASAID2uR7PxtRmb4lXh4mdQi2yyyG5bVRSo--2IhnBnxXAo

To claim this, I am signing this object:

@tcoffin
tcoffin / cloud_log.txt
Created August 11, 2013 01:31
attachment for steam-for-linux issue 2762
[2013-08-10 21:25:16] [AppID 7] Init cache request complete
[2013-08-10 21:25:16] Starting sync job
[2013-08-10 21:25:16] [AppID 7] Starting sync (init)
[2013-08-10 21:25:17] [AppID 7] Init cache request complete
[2013-08-10 21:25:17] Starting sync job
[2013-08-10 21:25:17] [AppID 7] Starting sync (init)
[2013-08-10 21:25:19] Starting sync job
[2013-08-10 21:25:19] [AppID 7] Starting sync (eval)
[2013-08-10 21:25:19] [AppID 7] File is in sync serverbrowser_hist.vdf
@tcoffin
tcoffin / ceph_setup.md
Created January 4, 2012 02:15
Ceph experiment

Ubuntu install of Ceph:

sudo apt-get install ceph

ceph.conf (based off the sample config):

;
; This file defines cluster membership, the various locations