Skip to content

Instantly share code, notes, and snippets.

@yuchan
Last active August 29, 2015 14:00
Show Gist options
  • Save yuchan/11287826 to your computer and use it in GitHub Desktop.
Save yuchan/11287826 to your computer and use it in GitHub Desktop.
Commands for Ramdisk for Mac
#! /bin/bash
# create 512MB RamDisk
# (0.512(GB) * (1024^3)) / 512
rm -rf ~/Library/Caches
diskutil erasevolume HFS+ 'RamDisk' `hdiutil attach -nomount ram://1073741`
ln -s /Volumes/Ramdisk ~/Library/Caches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment