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
gh api -H "Accept: application/vnd.github+json" /repos/mastodon/mastodon/issues --paginate | jq -r ".[] | .created_at" | awk '{ print substr( $0, 1, length($0)-10 ) }' | sort | uniq -c | sed -e 's/^ *//' | sed -r 's/([0-9]*) (.*)/\2 \1/' | gnuplot -p -e 'set title "Mastodon git repo issues by date" ; set xdata time; set timefmt "%Y-%m-%d"; set format x "%Y-%m"; plot "/dev/stdin" using 1:2' |
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
import os | |
import http.server | |
import logging | |
import sys | |
import time | |
import webbrowser | |
import functools | |
import json | |
import arrow |
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
import logging | |
import json | |
from oauth2client.client import SignedJwtAssertionCredentials | |
# P The Google API Using OAuth 2.0 for Server to Server Applications documentation | |
# P only seems to document using .p12 files. This is a snippet for openeing the suggested | |
# P JSON format key file | |
# P https://developers.google.com/api-client-library/python/auth/service-accounts#jwtsample |