From http://www.snipplr.com/view/72006/showhide-hidden-files-in-mac-os-x/