Giter Site home page Giter Site logo

gitfiti's Introduction

Build Status

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

An example of gitfiti in the wild:
alt text

gitfiti.py is a tool I wrote 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 bash script: gitfiti.sh 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, I highly recommend that you create a new github repo when using gitfiti. Also, the generated bash script assumes you are using public-key authentication with git.

Pixel Art:

alt text
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.
  3. Run the generated gitfiti.sh from your home directory (or any non-git tracked dir) and watch it go to work.
  4. 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:

  • Pikesley's Pokrovsky, which offers Github History Vandalism as a Service!
  • github-board commits gitfiti from easy templates
  • ghdecoy fills the contribution graph with random data (sneaky!)
  • Gitfiti Painter visual drawing tool for artists to easily create templates
  • git-draw a Chrome extension which will allow you to freely draw on your commit map(!)
  • github-jack a pure bash version with space invaders and shining creepypasta
  • Seen something else? Submit a pull request or open an issue!

alt text

gitfiti's People

Contributors

jasonsee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.