A simple Python script that automatically increments a number in a text file and commits the change to git. Perfect for maintaining a daily commit streak or tracking sequential values.
- Clone this repository:
git clone https://github.com/Shogun89/fancy_job
cd fancy_job
- Run the script:
python update_number.py
- Setup a cron job to run the script daily:
crontab -e
Add the following line to the crontab file:
0 6 * * * cd /path/to/your/repo && python update_number.py
This will run the script at 6am every day.
The script will increment the number in number.txt
and commit the change to git. You can modify the script to increment by any value or use a different file to store the number.
By running this you will be able get a fancy streak on your github profile and get a job.