Skip to content

Instantly share code, notes, and snippets.

@erikchan002
erikchan002 / adb_pull_apks.sh
Created June 1, 2026 10:43
Pull all APKs via adb into directory
if [ -z "$1" ]; then
echo "Error: Package is empty or missing. Example: $0 com.example.app" >&2
exit 1
fi
VERSION=$(adb shell dumpsys package $1 | grep versionName | cut -d= -f2 | head -n 1)
DIR="$1-$VERSION"
if [ -n "$2" ]; then
DIR="$2"
fi
mkdir -p "$DIR"
@erikchan002
erikchan002 / focal_length_visualizer.py
Created March 20, 2025 12:42
Focal Length Visualizer
from PIL import Image, ImageDraw, ImageFont, ImageColor
from operator import itemgetter
canon_red = "#CC0000"
nikon_yellow = "#FFE100"
fuji_green = "#01916d"
sony_black = "#000000"
path = r"250.jpeg"