Enabling WiFi from the terminal

After a few rough beta installs of the OS, I decided to do a clean install of  Freya. It's been a smooth sail so far but for the intermittent WiFi disconnects. For some reason the WiFi gets soft disabled at times. Until I figure out what's causing this to happen and for future reference here's a nifty…