Skip to content

Instantly share code, notes, and snippets.

View msinghal34's full-sized avatar

Mayank Singhal msinghal34

View GitHub Profile
@msinghal34
msinghal34 / $README.md
Last active May 15, 2021 07:30
Automatic Ubuntu Shutdown with a notification.

Ever thought that someone should just shutdown your PC at night so that you can sleep on time. Here's the solution:

Add .sleep.sh in your home directory. Make it executable by doing:

cd ~ && chmod +x .sleep.sh

Append crontab entry given in sudo_crontab.txt to your root cron using,

sudo crontab -e