The 'caffeinate' Terminal command stops your Mac sleeping completely, which can be extremely useful. This macOS hack stops your Mac putting itself to sleep : Read more