slin63 / hard-worker

Automatically push commits later. Or really early. Whatever.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hard-Worker 😤💦

Stay late! Get up early! Without having to stay late or get up early!

Do it all as easy as typing hardwork.

What?

This script git pushes your changes for you automatically, really late in the evening, or early in the morning, or whenever you want.

Usecases:

  1. Looking like a hard worker
  2. Looking like an early riser
  3. Slowly pushing several changes over the course of a week while you secretly road trip across the country

Install

  1. 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
  2. Test if it's working by starting the hardwork process with hardwork -p
  3. You may have to change /usr/local/bin to some other valid directory in your $PATH.

Usage

  1. Start the hardwork process
    • $ hardwork -p
  2. Enqueue the current repo to be pushed later at a random time (after 5PM local time, of course)
    • $ hardwork
  3. Enqueue the current repo to be pushed later after a specified delay time
    • $ hardwork -d 3 # Will push in 3 hours

--help:

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

About

Automatically push commits later. Or really early. Whatever.

License:Other


Languages

Language:Python 100.0%