Here is a pair of shell functions to create and destroy a RAM disk on Mac OS X. # Creates a RAM disk device, formats it as HFS+, then mounts it. # parameters: size in megabytes create_ram_disk() { local RAMDISK_SIZE_MB=$1 local RAMDISK_SECTORS=$((2048 * $RAMDISK_SIZE_MB)) RAMDISK_DEVICE=`hdiutil attach -nomount ram://$RAMDISK_SECTORS` RAMDISK_PATH=`mktemp -d /tmp/ramdisk.XXXXXX` newfs_hfs $RAMDISK_DEVICE # format as …
-
Hello
My name is Benjamin Ragheb and I live in New York City.
I write software and I've made apps such as FatWatch, MetroCost, and Fingerpaintball.
I hang around The Upright Citizens Brigade Theatre and perform around the city with Fat Penguin and Zuleyka.
I also make smaller posts on Tumblr and tiny posts on Twitter.