Skip to content

Instantly share code, notes, and snippets.

@beginor
Created June 15, 2014 10:21
Show Gist options
  • Select an option

  • Save beginor/9eccbd8c9aa5932ade1c to your computer and use it in GitHub Desktop.

Select an option

Save beginor/9eccbd8c9aa5932ade1c to your computer and use it in GitHub Desktop.
script create ramdisk on mac os x
if ! test -e /Volumes/\"Ramdisk\" ; then
diskutil erasevolume HFS+ \"RamDisk\" `hdiutil attach -nomount ram://$((2*1024*512))`
mkdir -p /Volumes/RamDisk/Caches
mkdir -p /Volumes/RamDisk/Logs
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment