Created
December 23, 2020 18:49
-
-
Save GOSHROW/d4a1bdd2fce935c86d015c98effbfab6 to your computer and use it in GitHub Desktop.
Pumps up Code::Stats XP without actual typing. [ A cheat to their gamification, not recommended since it would become boring ]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/zsh - | |
# This is a simple cURL statement as per <https://gitlab.com/code-stats/code-stats-zsh/-/blob/master/codestats.plugin.zsh> and I would recommend you purge this else it takes away the fun of Code::Stats | |
TimeToPush='strftime %Y-%m-%dT%H:%M:%S%z' | |
TimeReq=`eval $TimeToPush` | |
# TimeReq="2020-01-01T12:00:00+0530" | |
# Uncomment and Edit the previous line to get your preferred time/date for pumping the xP. The format followed is https://strftime.org/ | |
LangPreferred="Plain text" | |
# Change the Language definitely as are provided by Code::Stats | |
xpToPump=13 | |
# The piece de resistance, add up any viable XP points you aim to reflect on your profile | |
# CODESTATS_API_KEY="" | |
# Uncomment and provide it if the variable is not already globally present. You can find your unique machine api key at https://codestats.net/my/machines | |
curl --max-time 10 --header "Content-Type: application/json" --header "X-API-Token: ${CODESTATS_API_KEY}" --data '{ "coded_at": "${TimeReq}", "xps": [{"language": "${LangPreferred}", "xp":${xpToPump}]}' --request POST --silent --output /dev/null "https://codestats.net/api/my/pulses" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please don't abuse this for gaining XP. https://codestats.net/tos has further info.