- Recursively Remove .DS_Store Files on Mac OS X
find . -name ‘*.DS_Store’ -type f -delete
- Generate random mac address and set it
sudo ifconfig en0 ether $(perl -e 'for ($i=0;$i<5;$i++){@m[$i]=int(rand(256));} printf "02:%X:%X:%X:%X:%X\n",@m;') && sudo ifconfig en0 down && sudo ifconfig en0 up
- Get list of huge files
mdfind 'kMDItemFSSize>=1e8&&kMDItemContentTypeTree!=public.directory' | while IFS= read -r l; do stat -f'%z %N' "$l"; done | sort -rn
- Sync folder with public read right (perfect for a website)