Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am kavon on github.
* I am kavon (https://keybase.io/kavon) on keybase.
* I have a public key whose fingerprint is A8C1 E73E 6504 C1E9 2831 D49F 664A 1065 462E 42B2
To claim this, I am signing this object:
@kavon
kavon / ramdisk.sh
Created March 10, 2018 01:19 — forked from rxin/ramdisk.sh
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then
@kavon
kavon / 1_cps_call.ll
Last active April 19, 2017 14:36
CPS Call Proposal Examples
;;;;;
; (1) a complete example
;;;;;
define cc18 {i8**, i64} @foo (i8** %sp, i64 %x) noinline {
store i8* blockaddress (@foo, %retpt), i8** %sp
%retV = call cc18 {i8**, i64} @bar(i8** %sp, i64 %x) ; the 'cps' call
br label %retpt
retpt:
@kavon
kavon / svn-clean
Created November 30, 2014 20:04
Remove untracked files and directories in SVN
#!/bin/bash
# assumes paths have no spaces :)
svn status | egrep '^\?' | cut -c8- | xargs rm 2>&1 >/dev/null | sed 's/^rm: *\([^ ][^ ]*\): *is a directory$/\1/g' | xargs rm -r
@kavon
kavon / tea_steeper.py
Created June 19, 2014 19:42
Tea Steeping Timer
#!/usr/bin/env python
from Tkinter import *
import tkMessageBox
import sys
import time
window = Tk()
window.wm_withdraw()