Skip to content

Instantly share code, notes, and snippets.

View bryanrieger's full-sized avatar

Bryan Rieger bryanrieger

View GitHub Profile
@bryanrieger
bryanrieger / Using Python Virtual Environments.md
Last active August 12, 2025 20:11
Using Python Virtual Environments

Using Python Virtual Environments

Assuming our virtual environments are stored in ~/.venv:

export VENV="${HOME}/.venv"

Create a new virtual environment, in the case 'drawbot':

@bryanrieger
bryanrieger / Install Drawbot from GitHub.md
Created June 23, 2025 13:51
Install Drawbot from GitHub

Install Drawbot from GitHub

This is a set of Python I use many times I wish to make an animation or multipage doc with Drawbot, but code in my preferred editor (ie: Nova) rather than in the Drawbot app.

First, install DrawBot as a module:

pip install git+https://github.com/typemytype/drawbot

Transform an MP4 file to its H.264 codec using FFmpeg

You can do this will the following command:

ffmpeg -i input.mp4 -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k output.mp4

This command uses the following syntax:

@bryanrieger
bryanrieger / How to subset a variable font.md
Last active September 12, 2025 15:23
How to subset a variable font
@bryanrieger
bryanrieger / ePub Shell Commands.md
Last active August 12, 2025 12:10
How to create ePub files using zip via the terminal, also includes mimetype and make files.

ePub Shell Commands

To unzip the epub, move the ePub to a folder, cd to it then simply use the following Terminal command(s):

unzip MyEbook.epub

To zip up an epub: