Skip to content

Instantly share code, notes, and snippets.

@lsdr
Created June 28, 2012 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsdr/3011154 to your computer and use it in GitHub Desktop.
Save lsdr/3011154 to your computer and use it in GitHub Desktop.
a myriad of small scripts and/or cmd-one-liners to do mac maintenance
#!/bin/sh
# http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/
rm -rf /private/var/log/asl/*.asl
#!/bin/sh
# works on Snow Leopard, not sure on Lion
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
#!/bin/sh
# http://simplestation.com/locomotion/speed-up-mac-os-x-leopard/
cd ~/Library/Caches/Firefox/Profiles
for i in */*.sqlite;
do sqlite3 $i VACUUM;
done
cd ~/Library/Application\ Support/Firefox/Profiles
for i in */*.sqlite;
do sqlite3 $i VACUUM;
done
#!/bin/sh
# works on Snow Leopard, not sure on Lion
defaults write com.apple.dock no-glass -boolean YES
killall Dock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment