This is a program that im running on a raspberry pi 5 to Ceep my github streak. It commit's a massage into this README.md file once every day its running.
- crontab -e
- bash
- Mac OS script = macscript.sh
- Raspberry pi script = raspscript.sh
- No version for windows
NOTE: I have just tried this to run this on a raspberry pi 5 with linux mint installed dont know if it will need a different setup if there is another distro.
- This project uses crontab to set a rimainder to run this script once every day
- The
script.shfile contains a bash script that opens theREADME.mdfile and types a massage to Ceep Github streak 🎉 - The script also count's the Total count and + 1 for each time it runs
-
See the
Highest held streak: If the streak is higher than theHighest held streaktheTotal count nowamount becomes the newHighest held streakamount. -
Add the last time the streak was updated in the
Last updatedto see the last date it was updated. -
Show the
Total count nowof the streak by counting the massages under theList of prints. -
If the
Last updateddate isnt from the day erlyer theList of printsgets viped and theTotal count nowgets set back to 0. -
NOTE: This project is still under development so all the condisions may not be put into practice yet
-
Clone this repositorry
-
Open the
README.mdscroll to the bottom of the file and change the information underTimes this ceepGithubStreak have runFrom this To this Highest held streak: 1 days Highest held streak: X days Last updated: 23.11.2025 Last updated: DD.MM.YYYY Total count now: 1 Total count now: 0 And delate all the
This is a messagecomments under theList of prints.This resets the the README.md to production.
-
In the terminal type
chmod +x script.sh& klikkenter| This will make the script runeble. -
Open the project and type this in the terminal vindow
pwd| This will show the file path to your projectcopy the file path. -
Type this in the terminal window
crontab -e| To writeshift Ithis means Insert. -
Type in
00 00 * * *&your file path&script.sh| remember that.After you have done this it should look something like this |
00 00 * * * cd /path/to/your/repo && ./script.sh.Then klikk
escto get out of Insert mode, Then write:wqthis means write quit and saves your changes. -
Now you`ll just have to have your machene run constantly and the script will run 12:00 every day 👍
- Work in progress
This part of the README will be where the commits are happening. The list under will be updated every day the script is running under List of prints you will see all the massages that has been commited in your current streak. NOTE: The info for to update each day is beaing calculated using the date in Last updated. I recomend to not try to edit any of the information under so that you dont messup the streak.
Highest held streak: 1 days
Last updated: 17.01.2026 Last updated: 17.01.2026
Total count now: 1
List of prints:
This is a message - 04.01.2026 16:01:41 This is a message - 04.01.2026 16:10:21 This is a message - 04.01.2026 16:35:00 This is a message - 06.01.2026 12:00:01 This is a message - 06.01.2026 12:10:00 This is a message - 17.01.2026 12:10:00