Skip to content

Instantly share code, notes, and snippets.

@osbyrne
osbyrne / .gitignore
Last active January 24, 2025 10:19
.gitignore
# Ignore everything
*
# Track directories
!*/
# Track these files
!.gitignore
!*.nix
!*.md
@osbyrne
osbyrne / settings.json
Last active March 3, 2025 13:32
Visual Studio Code settings I repeatedly use
{
"breadcrumbs.enabled": false,
"editor.stickyScroll.enabled": false,
"editor.minimap.enabled": false,
"editor.lineNumbers": "off",
"editor.scrollbar.horizontal": "hidden",
"editor.scrollbar.vertical": "hidden",
"editor.hideCursorInOverviewRuler": true,
"editor.guides.indentation": false,
"editor.overviewRulerBorder": false,
@osbyrne
osbyrne / setup.sh
Last active November 29, 2024 08:38
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