Skip to content

Instantly share code, notes, and snippets.

View osbyrne's full-sized avatar

osbyrne

View GitHub Profile
@osbyrne
osbyrne / setup.sh
Created June 18, 2024 13:10
shell scripts to install tools prerequisite to programming in my developer environment. All commented with sources to docs.
# brew
# https://www.brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# gh
# https://github.com/cli/cli/blob/trunk/docs/install_linux.md
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
@osbyrne
osbyrne / turboflow.py
Created January 6, 2024 13:58
used to compose a specific video; this script produces a very fast slideshow of all pages in all .pdf files in your folder as .mp4
import os
import cv2
from PyPDF2 import PdfReader
from pdf2image import convert_from_path
# usage notice:
# 1. Install python3, pip3, and the following packages:
# - PyPDF2
# - pdf2image