Don't want your Mac to go to sleep? You can type caffeinate -t 3600 into Terminal to keep it awake for an hour or 7200 for 2 hours etc.