Skip to content

Instantly share code, notes, and snippets.

View krassdanke's full-sized avatar
🎯
Focusing

Daniel Behnke krassdanke

🎯
Focusing
View GitHub Profile
@krassdanke
krassdanke / gist:6ba5b8f9890d6fc639c3d9780aa9ced1
Created February 5, 2023 21:11
git-eradicate (for video/parasite.avi)
# All credits goes to "Vi." @ stackoverflow
# https://stackoverflow.com/questions/1029969/why-is-my-git-repository-so-big
git filter-branch -f --index-filter \
'git rm --force --cached --ignore-unmatch video/parasite-intro.avi' \
-- --all
rm -Rf .git/refs/original && \
git reflog expire --expire=now --all && \
git gc --aggressive && \
git prune
# All credit goes to "Vi." @ stackoverlow
# https://stackoverflow.com/questions/1029969/why-is-my-git-repository-so-big
git rev-list --all --objects | \
sed -n $(git rev-list --objects --all | \
cut -f1 -d' ' | \
git cat-file --batch-check | \
grep blob | \
sort -n -k 3 | \
tail -n40 | \
@krassdanke
krassdanke / crd-runner.actions.summerwind.dev.yaml
Created August 8, 2021 11:22
runner.actions.summerwind.dev crd
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.3.0
creationTimestamp: null
name: runners.actions.summerwind.dev
spec:
additionalPrinterColumns:
- JSONPath: .spec.enterprise