Skip to content

Instantly share code, notes, and snippets.

View ncw's full-sized avatar
💥
429 Too Many Requests

Nick Craig-Wood ncw

💥
429 Too Many Requests
View GitHub Profile
@ncw
ncw / M5NCW.cbr
Created August 1, 2022 09:57
tlf log truncation
START-OF-LOG: 3.0
CREATED-BY: tlf-1.5~git
X-CREATED-ON: 01-Aug-22 at 09:43z
CONTEST: IOTA
CALLSIGN: M5NCW
CATEGORY-ASSISTED:
CATEGORY-BAND:
CATEGORY-MODE:
CATEGORY-OPERATOR:
CATEGORY-POWER:
@ncw
ncw / github-stats.py
Created June 20, 2026 08:38
Report the monthly rate of issue and pull request creation for a GitHub Repository
#!/usr/bin/env python3
"""
Report the monthly rate of issue and pull request creation for a GitHub
repository over the last few years.
This uses the GitHub search API (via the `gh` CLI, so it picks up your
existing `gh auth login` credentials) to count how many issues and pull
requests were *created* in each calendar month. It prints a digestible
table with per-year subtotals and a simple text bar chart, and can
optionally emit CSV.