Skip to content

Instantly share code, notes, and snippets.

View trustin's full-sized avatar
πŸŒ„
β–‚β–ƒβ–…β–‡β–ˆβ–“β–’β–‘Ϋ©ΫžΫ©β–‘β–’β–“β–ˆβ–‡β–…β–ƒβ–‚

Trustin Lee trustin

πŸŒ„
β–‚β–ƒβ–…β–‡β–ˆβ–“β–’β–‘Ϋ©ΫžΫ©β–‘β–’β–“β–ˆβ–‡β–…β–ƒβ–‚
View GitHub Profile
@trustin
trustin / remove-mkv-tracks.sh
Created August 5, 2023 03:44
Remove the tracks that match certain criteria from MKV files (using jq)
#!/usr/bin/env bash
set -Eeuo pipefail
if [[ $# -lt 2 ]]; then
echo "Usage: $(basename "$0") <preset or jq condition> <files or directories...>"
echo 'Presets: subrip_only, anime'
exit 1
fi
JQ_COND="$1"
@trustin
trustin / setup-docker.sh
Created January 10, 2024 11:37
How to install Docker on macOS without using Docker Desktop
#!/usr/bin/env bash
set -Eeuo pipefail
# Install Docker CLI and Docker Compose, etc.
brew install docker docker-compose docker-credential-helper
# Configure Docker CLI.
mkdir -p "$HOME/.docker/cli-plugins"
ln -sfn '/opt/homebrew/opt/docker-compose/bin/docker-compose' "$HOME/.docker/cli-plugins/docker-compose"
echo '{