Skip to content

Instantly share code, notes, and snippets.

View Benjamin-Dobell's full-sized avatar

Benjamin Dobell Benjamin-Dobell

View GitHub Profile
@Benjamin-Dobell
Benjamin-Dobell / gist:bb7ae216036c7e5641b3731fafa2598c
Last active June 29, 2017 12:33
End of financial year logs
LOG_DIR=~/EOFY/2016-2017/
mkdir -p $LOG_DIR
for dir in */ ; do
cd $dir
if git log &> /dev/null; then
project=$(basename $dir)
for branch in $(git for-each-ref --format='%(refname:strip=2)' refs/heads/); do
LOG=$(git log $(git merge-base master $branch)..$branch --since="2016-07-01T00:00:00+10:00")
if [ -n "$LOG" ]; then
echo $LOG > $LOG_DIR/$project.$branch.log
@Benjamin-Dobell
Benjamin-Dobell / Diabolical
Last active August 29, 2018 05:57
Pfft, crashes are for chumps
static jmp_buf jmpEnv;
enum {
kPrepareBinaryAddress = 0x44dd,
kMutexBinaryAddress = 0x9090
};
void signal_handler(int n, siginfo_t *info, void *context)
{
longjmp(jmpEnv, 1);
StringsAndComments
{
Unicode { string { "💩", "🙉: Hear no evil monkey is strǽnge", "Yes, a sickle - ☭: ☭" } }
}
Coordinates $where
{
int32[3] %xyz
{
{ 1, 2, 3 },