Skip to content

Instantly share code, notes, and snippets.

@luehm
luehm / post-checkout
Last active February 22, 2024 16:57
branch-specific ignore hook
#!/bin/sh
# Compatible with git worktrees
# Assumes that root of "main" worktree has .gitignore files with the following format:
## .gitignore.$branchName
#
# Will stip out branch prefixes (e.g., bug/DEV-123 becomes DEV-123)
# If no branch-ignore is found, nothing happens
old_ref=$1
@luehm
luehm / keybase.md
Created February 24, 2018 06:08
Proof of Identity

Keybase proof

I hereby claim:

  • I am luehm on github.
  • I am luehm (https://keybase.io/luehm) on keybase.
  • I have a public key whose fingerprint is C63D C44A 6E00 47CB A016 AADA 8660 16D0 C7D4 02E0

To claim this, I am signing this object:

Once upon a midnight dreary, fingers cramped and vision bleary,
System manuals piled high and wasted paper on the floor,
Longing for the warmth of bed sheets, still I sat there doing spreadsheets.
Having reached the bottom line I took a floppy from the drawer,
I then invoked the SAVE command and waited for the disk to store,
Only this and nothing more.
Deep into the monitor peering, long I sat there wond'ring, fearing,
Doubting, while the disk kept churning, turning yet to churn some more.
But the silence was unbroken, and the stillness gave no token.
@luehm
luehm / math_stuff.c
Last active February 8, 2024 19:50
Matrix Multiply
#include <errno.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "t_pool.h"
#define DEBUG 1