Serve any folder through a server using a folder

Sometimes its helpful to serve html over a web server when creating static pages, wether to get round a JS issue such as loading JSON or to be able to use browser stack to test pages.  Setting up a proper virtual host or even using backup can seem a bit overkill.  Use ruby to serve any folder over http with this one line:

ruby -run -e httpd . -p 5000

This allows you to view the folder on localhost:5000