Skip to content

Instantly share code, notes, and snippets.

epipping / create-xnu-git-repo.bash
Last active September 10, 2017 16:55
Create a git repository and populate it with XNU sources in a helpful way
View create-xnu-git-repo.bash
#!/usr/bin/env bash
## WARNING: This will operate in the directory in which it is invoked!
## These are meant to be configured
## Can be set here or passed on the command line
epipping / README
Last active July 11, 2017 16:15
Map Apple's Developer Tools versions (which provide a custom version of clang) to upstream llvm branches
Moved here:
epipping /
Last active May 6, 2021 00:47
Versions of Apple clang and corresponding upstream branches

Keybase proof

I hereby claim:

  • I am epipping on github.
  • I am epipping ( on keybase.
  • I have a public key ASAfR-R_trPZWEDLhOxB-3nJc7BpjDSCaK118ueNIM8FlAo

To claim this, I am signing this object:

epipping / waitxid.c
Last active August 7, 2016 12:17
experiment with waitid and waitpid
View waitxid.c
//#define _POSIX_C_SOURCE 199309L // POSIX.1b-1993
//#define _POSIX_C_SOURCE 199506L // POSIX.1c-1996
//#define _POSIX_C_SOURCE 200112L // POSIX.1-2001
#define _POSIX_C_SOURCE 200809L // POSIX.1-2008
#include <assert.h>
#include <signal.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
epipping / test-ulimit.bash
Last active July 15, 2016 10:18
Test how ulimit behaves on your OS (with different shells)
View test-ulimit.bash
#!/usr/bin/env bash
get_sigcode() {
/bin/kill -l |
awk -v name=$1 '
BEGIN { nf = 0 }
for (i=1; i<=NF; ++i)
if (toupper($i) == name)
print i+nf;