Skip to content

NeelamTharunKumar/DialyNumberIncrementer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Daily Number Incrementer

A Python script that automatically increments a number in a text file, commits the change to Git, and updates a cron job to run the script at a new random time daily. Perfect for maintaining a daily commit streak or tracking sequential values with a dynamic schedule.

Setup

  1. Clone this repository:
git clone https://github.com/NeelamTharunKumar/DialyNumberIncrementer
cd fancy_job
  1. Run the script manually for the first time to verify it works and to set the cron job:
python update_number.py

Optional: If you prefer to ensure the script runs at a fixed time initially, you can manually set up a cron job:

crontab -e

Add the following line to the crontab file:

0 6 * * * cd /path/to/your/repo && python update_number.py

This will initially run the script at 6am the next day.

Usage

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.

How to get a job

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages