Using Your MacBook as a Local WiFi Access Point

How I've been able to use a MacBook Air as a router without internet connection.