Skip to content

Instantly share code, notes, and snippets.

@Saba-Sabato
Saba-Sabato / amazonlinux_install_git_subtree.md
Last active July 28, 2025 06:06
How to install git-subtree on Amazon linux

TL;DR run the following:

sudo dnf update
sudo dnf update git
sudo dnf install git-subtree

Background:

The default git package on amazonlinux does not contain the script for git-subtree, and so the following fails:

@Saba-Sabato
Saba-Sabato / macos_output_screenshot_to_file.py
Last active January 22, 2024 18:38
Take a fullscreen screenshot on MacOS, using PyObjC
# Packages required:
# pyobjc-framework-Quartz
# pyobjc-framework-UniformTypeIdentifiers
from pathlib import Path
import Foundation
import Quartz
import UniformTypeIdentifiers
import objc