Skip to content

Instantly share code, notes, and snippets.

@77
77 / README.md
Created December 21, 2022 18:10
Move subdirectory to new git repo

HOWTO move a git subdirectory into a new repo using git-filter-repo

Install git-filter-repo

See the git-filter-repo repo for installation instructions.

Create a new repo on GitHub

Create a new empty repo on github.com and note the repo URL.

@77
77 / base85.py
Created October 18, 2022 19:44
Simple Base85 encode/decode script
import argparse
import base64
import sys
parser = argparse.ArgumentParser()
parser.add_argument('command', choices=['encode', 'decode'])
parser.add_argument('--input', type=str, required=False)
parser.add_argument('--output', type=str, required=False)
args = parser.parse_args()