Skip to content

Instantly share code, notes, and snippets.

@jithurjacob
Created November 29, 2017 05:01
Show Gist options
  • Save jithurjacob/b363f31448de431318f160048ddddedf to your computer and use it in GitHub Desktop.
Save jithurjacob/b363f31448de431318f160048ddddedf to your computer and use it in GitHub Desktop.
Commit and Push after X time
"""
© Jithu R Jacob - http://jithurjacob.in
This script is useful when we wait for a ML agorithm to finish running. What I would do is estimate the time remaining and set the script.
If you are using the script directly in your program you can remove the sleep function.
"""
import time, os
def runit():
time.sleep(3600*1.3)
os.system("git add .")
os.system('git commit -m "finished process GAN_V2"')
os.system("git push")
print("done!!!")
runit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment