Skip to content

Instantly share code, notes, and snippets.

View codsane's full-sized avatar

codsane codsane

View GitHub Profile
@codsane
codsane / commitCount.py
Last active February 6, 2023 12:11 — forked from 0penBrain/commitCount.sh
The simplest way to get commit count of a GitHub repository through the API
import requests
import re
def commitCount(u, r):
return re.search('\d+$', requests.get('https://api.github.com/repos/{}/{}/commits?per_page=1'.format(u, r)).links['last']['url']).group()
def latestCommitInfo(u, r):
""" Get info about the latest commit of a GitHub repo """
response = requests.get('https://api.github.com/repos/{}/{}/commits?per_page=1'.format(u, r))
commit = response.json()[0]; commit['number'] = re.search('\d+$', response.links['last']['url']).group()
@codsane
codsane / free.md
Last active July 13, 2020 23:55 — forked from andrewwiik/free.md
Packix Developer Setup

Packix Free Developer Setup

If you plan on submitting paid tweaks please follow the paid guide down above

STEP 1 - Become Packix Developer

The Packix Maintainers will need your Packix Account ID, this can be found on your Packix account page under your name. You need to DM your account ID to @iospackixrepo. Once they let you know that they have added you as a developer you can continue to the next step.

STEP 6 - Finish Becoming Packix Developer

After we add you as a developer you will need to follow the banner on the top of Packix Developer Panel and fill out your Developer Information, this is what your customers will see. This is the link to the Developer Info to fill our your Developer Info: https://developer.packix.com/#/developer/info

@codsane
codsane / PackixTweaks.js
Last active March 5, 2020 22:28
Small tweaks for the Packix dev dashboard
// ==UserScript==
// @name PackixTweaks
// @description Small tweaks for the Packix dev dashboard
// @author codsane
// @match *://developer.packix.com/#/*/refund-requests
// @icon https://www.google.com/s2/favicons?domain=repo.packix.com
// @grant none
// @require https://code.jquery.com/jquery-3.4.1.min.js
// @require https://gist.githubusercontent.com/codsane/66142ceb3f8b03546c2980be78551275/raw/9c97aa67ff9c5d56be34a55ad6c18a314e5eb548/waitForKeyElements.js
// ==/UserScript==