The Problem
.DS_Store
and __MACOSX
files have littered servers, codebases and your colleague's workstations since Apple Inc. decided that MacOSX browsing speeds was more important than the general hygiene of the internet. Here's a cheatsheet to help you clean up after yourself.
zip -r data.zip . -x ".DS_Store" -x "__MACOSX"
zip -d data.zip "__MACOSX/*"
zip -d data.zip "*/.DS_Store"
for f in *.zip; do zip -d "$f" "__MACOSX/*"; done
for f in *.zip; do zip -d "$f" "*/.DS_Store"; done
I use this a lot on the staging areas right before I upload to my ftp servers.