Print

Prevent OSX's .DS_Store file creation over network connections and other useful defaults

.DS_Store

This will affect the your interactions with SMB/CIFS, AFP, NFS, and WebDAV servers:
  1. Open the Terminal.
  2. Enter: defaults write com.apple.desktopservices DSDontWriteNetworkStores true
  3. Press Return.
  4. Restart the computer.


Tweak Safari

Don't have Safari display PDF documents, rather have them downloaded instead:
  1. Open the Terminal.
  2. Enter: defaults write com.apple.Safari WebKitOmitPDFSupport -bool YES
  3. Press Return.
  4. Open the QuickTime preference pane in System Preferences.
  5. Click the Advanced tab, and then MIME Settings...
  6. Under the Images list, make sure PDF Image is not checked.

V270 BT

Logitech V270 Bluetooth Mouse Scaling

  1. Open the Terminal.
  2. Enter: defaults write -g com.apple.mouse.scaling 0.03
  3. Press Return.


Optimize Apple Mail

  1. Quit Mail and open Terminal.
  2. Enter: cd ~/Library/Mail
  3. Press Return.
  4. Enter: sqlite3 Envelope\ Index
  5. Press Return, a sqlite> prompt will appear.
  6. Enter: vacuum subjects;
  7. Press Return.
  8. Press control D after the prompt appears.
  9. Restart Mail.


Flush DNS cache

  • OSX 10.4:sudo lookupd -flushcache
  • OSX 10.5:dscacheutil -flushcache


Get rid of goofy dock style in Leopard

  1. defaults write com.apple.dock no-glass -boolean YES
  2. killall Dock


remove all .DS_Store files from your_dir

  • find your_dir -type f -name .DS_Store -print0 | xargs -0 rm


show network traffic in terminal

  • sudo tcpdump -i en0 port 80