You Can Close Your Laptop Now, Actually.
Run `sudo pmset -a disablesleep 1` and your MacBook will never sleep. Not even when unplugged.
If you forget to run `sudo pmset -a disablesleep 0`, it'll die faster (and waste a tiny bit of energy). That's the only risk.
Better yet, I'm usually near an outlet when working, so I just leave it on always-awake.
When out and about (or oot and aboot in Canada), my MacBook hotspots from my phone and BAM, I have an always-on server, so long as my phone has battery and service.
Better yet AGAIN, I run Pi with generous permissions on my laptop, with a connection to a Slack DM. With my laptop on hotspot in my backpack, I can DM my laptop to write code from the subway.
I'm surprised more people don't do this.
[Img src: OAI]