Public Gists by willb

Gravatar
Wed Jul 01 13:00:19 -0700 2009
1
2
// Trivial example of using virtual dispatch to hide template parameters from clients, as
// alluded to here: http://chapeau.freevariable.com/2009/06/a-problem-of-dependent-types.html
 
Gravatar
Thu Mar 26 13:56:37 -0700 2009
1
2
# convert sda.img to a QEMU disk image
qemu-img convert -f raw sda.img -O qcow sda-qcow.img
 
Gravatar
Thu Mar 26 13:41:53 -0700 2009
1
2
# bit-for-bit copy of the drive at /dev/sda to sda.img on a removable disk
dd if=/dev/sda of=/media/removable/sda.img bs=1024
Gravatar
Fri Mar 20 10:35:37 -0700 2009
1
2
3
/*
 
Simple timing test of exec-ing versus embedding python interpreter.
Gravatar
Wed Dec 03 18:34:14 -0800 2008
1
2
3
python - << EOF
import sys
vtup = sys.version_info