Stay late! Get up early! Without having to stay late or get up early!
Do it all as easy as typing hardwork
.
This script git pushes
your changes for you automatically, really late in the evening, or early in the morning, or whenever you want.
Usecases:
- Looking like a hard worker
- Looking like an early riser
- Slowly pushing several changes over the course of a week while you secretly road trip across the country
curl https://raw.githubusercontent.com/slin63/hard-worker/master/hard-worker.py -o /usr/local/bin/hardwork && chmod +x /usr/local/bin/hardwork && touch /tmp/hardworkq.txt
- Test if it's working by starting the hardwork process with
hardwork -p
- You may have to change
/usr/local/bin
to some other valid directory in your$PATH
.
- Start the hardwork process
$ hardwork -p
- Enqueue the current repo to be pushed later at a random time (after 5PM local time, of course)
$ hardwork
- Enqueue the current repo to be pushed later after a specified delay time
$ hardwork -d 3 # Will push in 3 hours
hardwork -d <hours> -p -h (--help)
-d --delay how many hours from now to git push the current git repo
-p --process run the hardwork process, necessary for hardwork to... work
-h --help print out this message