Skip to content

Instantly share code, notes, and snippets.

@0xjessel
0xjessel / vertical_photo_stitch.sh
Created March 15, 2025 21:01
Script to stitch multiple images vertically using ImageMagick, automatically center-cropping to the minimum width
#!/bin/bash
# Check if ImageMagick is installed
if ! command -v magick &> /dev/null; then
echo "ImageMagick is not installed. Please install it with:"
echo "brew install imagemagick"
exit 1
fi
# Check if we have at least two arguments (output file and at least one input file)
@0xjessel
0xjessel / toggle_audio.sh
Created March 10, 2025 06:50
Script to toggle audio output between MacBook Pro speakers and JCHEN AirPods Pro
#!/bin/bash
# Script to toggle audio output between MacBook Pro speakers and JCHEN AirPods Pro
# Requires SwitchAudioSource: brew install switchaudio-osx
# Get current audio output device
CURRENT_DEVICE=$(SwitchAudioSource -c)
# Define device names based on your system
MACBOOK_SPEAKERS="MacBook Pro Speakers"