MCPcopy Index your code
hub / github.com/gelstudios/gitfiti

github.com/gelstudios/gitfiti @main sqlite

repository ↗ · DeepWiki ↗
18 symbols 55 edges 4 files 9 documented · 50%
README

Build Status

gitfiti noun : Carefully crafted graffiti in a github commit history calendar.

An example of gitfiti in the wild:
screenshot of gitfiti

gitfiti.py is a tool to decorate your github account's commit history calendar by (blatantly) abusing git's ability to accept commits in the past.

How? gitfiti.py generates a script (powershell or bash) that makes commits with the GIT_AUTHOR_DATE and GIT_COMMITTER_DATE environment variables set for each targeted pixel.

Since this is likely to clobber repo's history, it is highly recommend that you create a new github repo when using gitfiti. Also, the generated script assumes you are using public-key authentication with git.

Pixel Art

pixel art examples
Included "art" from left to right: kitty, oneup, oneup2, hackerschool, octocat, octocat2

Usage

  1. Create a new github repo to store your handiwork.
  2. Run gitfiti.py and follow the prompts for username, art selection, offset, and repo name.

For Python 3, use python3.

    $ python3 ./gitfiti.py

              _ __  _____ __  _
       ____ _(_) /_/ __(_) /_(_)
      / __ `/ / __/ /_/ / __/ /
     / /_/ / / /_/ __/ / /_/ /
     \__, /_/\__/_/ /_/\__/_/
    /____/

    Enter GitHub URL (leave blank to use https://github.com/):

For Python 2, use python2.

    $ python2 ./gitfiti.py

              _ __  _____ __  _
       ____ _(_) /_/ __(_) /_(_)
      / __ `/ / __/ /_/ / __/ /
     / /_/ / / /_/ __/ / /_/ /
     \__, /_/\__/_/ /_/\__/_/
    /____/

    Enter GitHub URL (leave blank to use https://github.com/):
  1. Run the generated gitfiti.sh or gitfiti.ps1 from your home directory (or any non-git tracked dir) and watch it go to work.
  2. Wait... Seriously, you'll probably need to wait a day or two for the gitfiti to show in your commit graph.

User Templates

The file format for personal templates is the following:

  1. Each template starts off with a ":" and then a name (eg. ":foo")
  2. Each line after that is part of a json-recognizable array.
  3. The array contain values 0-4, 0 being blank and 4 being dark green.
  4. To add multiple templates, just add another name tag as described in 1.

For example:

:center-blank
[[1,1,1,1,1,1,1],
[1,1,1,1,1,1,1],
[1,1,1,1,1,1,1],
[1,1,1,0,1,1,1],
[1,1,1,1,1,1,1],
[1,1,1,1,1,1,1],
[1,1,1,1,1,1,1]]

This would output a 7 x 7 light green square with a single blank center square.

Once you have a file with templates, enter its name when prompted and the templates will be added to the list of options.

Removal

Fortunately if you regret your gitfiti in the morning, removing it is fairly easy: delete the repo you created for your gitfiti (and wait).

License

gitfiti is released under The MIT license (MIT)


Todo

Notable derivatives or mentions

Core symbols most depended-on inside this repo

request_user_input
called by 9
gitfiti.py
str_to_sprite
called by 2
gitfiti.py
parse_contributions_calendar
called by 2
gitfiti.py
find_max_daily_commits
called by 2
gitfiti.py
load_images
called by 1
gitfiti.py
retrieve_contributions_calendar
called by 1
gitfiti.py
calculate_multiplier
called by 1
gitfiti.py
get_start_date
called by 1
gitfiti.py

Shape

Function 18

Languages

Python100%

Modules by API surface

gitfiti.py15 symbols
tests/test_find_max_daily_commits.py2 symbols
tests/test_str_to_sprite.py1 symbols

For agents

$ claude mcp add gitfiti \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact