Skip to content

Instantly share code, notes, and snippets.

View ky0n's full-sized avatar
🐳

Hendrik Schick ky0n

🐳
View GitHub Profile
@ky0n
ky0n / github-contributions.sh
Last active January 29, 2023 01:29
Show github contributions graph in terminal / shell
#!/bin/sh
MYGITHUB=ky0n
RAW=/tmp/$MYGITHUB-github
curl -s https://github.com/$MYGITHUB/ > $RAW
echo github.com/$MYGITHUB
CONTRIBUTIONS_PER_YEAR="$(cat /tmp/$MYGITHUB-github | pcregrep -M '[0-9]+\n*\s*+contributions\n*\s*in\n*\s*the\n*\s*last\n*\s*year')"