Created
June 28, 2012 12:45
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/ | |
rm -rf /private/var/log/asl/*.asl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# works on Snow Leopard, not sure on Lion | |
defaults write com.apple.dashboard mcx-disabled -boolean YES | |
killall Dock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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