Skip to content

Instantly share code, notes, and snippets.

View dixson3's full-sized avatar

James Dixson dixson3

  • Yoshiko Studios
  • Seattle, WA
View GitHub Profile
sudo find . -xdev -type f | cut -d "/" -f 2 | sort --buffer-s ize=2G | uniq -c | sort -n
@dixson3
dixson3 / workspace.sh
Created January 10, 2014 19:11
Create and manage a case-sensitive disk-image on OSX. This is great when you have a need to work with case-sensitive repos on a mac.
#!/bin/bash
# where to store the sparse-image
WORKSPACE=~/Documents/workspace.dmg.sparseimage
create() {
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 60g -volname workspace ${WORKSPACE}
}
detach() {