News for hackers. Stuff that matters.
Re:Apple has threatened to remove Amphetamine from the App S... by 0xEFF on Friday January 01, 2021 @04:39PM (#25607457)
The caffeinate command is built into macos.

Edit: This keeps the computer awake until 6 PM each day.

  caffeinate -u -i -s -t $(($(date -j -f "%a %b %d %T %Z %Y" "$(date +"%a %b %d 18:00:00 %Z %Y")" "+%s") - $(date +%s)))
Re:Apple has threatened to remove Amphetamine from the App S... by freehunter on Friday January 01, 2021 @07:39PM (#25608983)
That command makes me really glad Amphetamine exists.
Re:Apple has threatened to remove Amphetamine from the App S... by blacksmith_tb on Friday January 01, 2021 @10:38PM (#25610159)
Handy, but not exactly easy on the eyes. I usually just us the -t flag to pass it seconds, like 'caffeinate -t 3600' to prevent sleep for the next hour.