Create a RAM Disk in Mac OS X

diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1165430`