How to show only active apps in your OS X Dock

Make the Dock as minimal as possible with a quick visit to the Terminal command line, keeping the clutter away.