Skip to content

Instantly share code, notes, and snippets.

@epipping
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
#!/usr/bin/env bash
## WARNING: This will operate in the directory in which it is invoked!
## These are meant to be configured
cachedir=$HOME/xnu_cache
orgfile=$HOME/xnu.org
## Can be set here or passed on the command line
platform=${1:-ppc}
@epipping
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: https://gist.github.com/epipping/ef8b02b0cfaec4a5ebf3a57092145a3f
@epipping
epipping / apple-clang-upstream.md
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 (https://keybase.io/epipping) on keybase.
  • I have a public key ASAfR-R_trPZWEDLhOxB-3nJc7BpjDSCaK118ueNIM8FlAo

To claim this, I am signing this object:

@epipping
epipping / waitxid.c
Last active August 7, 2016 12:17
experiment with waitid and waitpid
//#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
epipping / test-ulimit.bash
Last active July 15, 2016 10:18
Test how ulimit behaves on your OS (with different shells)
#!/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;