/pachub

Pacman Github Contributions

Primary LanguageShellMIT LicenseMIT

Pacman Github Contributions

Idea

On GitHub user pages the count of contributions per day are visiolized in a calendar of squares. The more the darker the color. With automatic commits you can draw here a nice pattern to impress visitors to the website.

Pacman preview

What we need - Requirements

  1. Special GitHub account just for this case
  • A computer is always switched on and connected with the internet.
  • Linux must be installed on this computer.
  • It must be installed git.
  • There must be an SSH Key generated and stored at GitHub.
  • It has to be written a bash script, what the following things can
    • Make file changes in the repo
    • Create random commit message
    • Git add / commit / push changes
    • The number of changes should be configurable

Implementation

  • Patterns: PacMan
  • Create Issues
  • Bash scripting
  • Crontab with parameters

Installation

  1. Go to your server

Clone PacHub

git clone git@github.com:PacHub/pachub.git

Install crontab

crontab -e

Then enter:

0 7 * * * /path/to/pachub.sh /path/to/pachubdir /path/to/git

Thank you!