another useful one to avoid creating .DS_Store files on network volumes: defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Is there a way to avoid creating .DS_Store files on specific local volumes? I used to have my Dropbox folder on my secondary (NTFS formatted) harddrive so I could use a symlink to share my Dropbox folder across OSX and my Windows 7 Bootcamp install instead of having duplicate Dropbox folders for each OS. It ended up spewing .DS_Store files all over my employer's company dropbox folders.
find ~/Dropbox -name .DS_Store -exec rm {} \;