Skip to content

Instantly share code, notes, and snippets.

View joshjohanning's full-sized avatar
:octocat:
Upcoming out of office - Oct 22-31

Josh Johanning joshjohanning

:octocat:
Upcoming out of office - Oct 22-31
View GitHub Profile
# given a bunch of folders which are years, and contents which are files of the form YYYY-mm-dd - name - $1234.56,
# this script returns a sum of totals by year
import os
totals = {}
for year in os.listdir('.'):
if os.path.isdir(year) and not year.startswith('.'):
total = 0

Rewriting repository history

Sometimes history rewrites are required in order to migrate repositories into github.com. Several factors can dictate the need to rewrite history of a repository:

  • objects larger than 100Mb
  • commits larger than the 2GB push limit

Although rewriting history might not be required for your repository to migrate to github.com, you may consider rewriting history for several reasons:

  • migrate large objects to LFS
  • cleanup previous mistakes or bad practices that caused repo bloat
  • remove secrets from repo history
@ayodejiayodele
ayodejiayodele / copilot-metrics-dashboard-instructions.md
Last active October 24, 2025 19:52
Setup Instructions for GitHub Copilot Metrics Power BI Dashboard

Copilot Metrics Dashboard (Power BI Version)

This guide provides step-by-step instructions for deploying the Copilot Metrics Dashboard in your environment.

English | Español |

Setup Instructions

To use this report, ensure you have Power BI Desktop installed or access to the Power BI online service.