defaults write NSGlobalDomain AppleShowAllExtensions -bool true
killall Finder
defaults write NSGlobalDomain AppleShowAllExtensions -bool false