How to create a RAM disk on OS X
$ hdid -nomount ram://32768 /dev/disk1 $ newfs_hfs /dev/disk1 $ mkdir /tmp/ramdisk1 $ mount -t hfs /dev/disk1 /tmp/ramdisk1
To unmount:
hdiutil detach /dev/disk1
DZone Snippets > peter > osx
12389 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Peter Cooperx http://www.petercooper.co.uk/
$ hdid -nomount ram://32768 /dev/disk1 $ newfs_hfs /dev/disk1 $ mkdir /tmp/ramdisk1 $ mount -t hfs /dev/disk1 /tmp/ramdisk1
hdiutil detach /dev/disk1
lookupd -flushcache
defaults write com.apple.screencapture type image_format
openssl des3 -salt -in infile.txt -out encryptedfile.txt
openssl des3 -d -salt -in encryptedfile.txt -out normalfile.txt
mount_smbfs -W workgroup //user@SERVER/folder ./mntpoint
tar zxvf jpegsrc.v6b.tar.gz cd jpeg-6b cp /usr/share/libtool/config.sub . cp /usr/share/libtool/config.guess . ./configure --enable-shared --enable-static make sudo make install sudo ranlib /usr/local/lib/libjpeg.a