Collection of personal shell scripts for various tasks.
Downloads torrent files or magnet links using transmission-cli. Optionally searches for subtitles automatically after download completes.
Dependencies:
- transmission
Usage:
# Download a torrent file
download-torrent.sh movie.torrent
# Download from magnet link
download-torrent.sh "magnet:?xt=urn:btih:..."
# Custom download directory
download-torrent.sh -d ~/Videos movie.torrent
# Disable automatic subtitle search
download-torrent.sh --no-subtitles movie.torrent
# Watch download progress
download-torrent.sh -w movie.torrentOptions:
-d, --dir <directory>: Download directory (default:$HOME/Downloads/torrents)-s, --subtitles: Automatically find subtitles after download (default: enabled)-S, --no-subtitles: Don't automatically find subtitles-w, --watch: Watch download progress-h, --help: Show help message
Environment Variables:
TORRENT_DOWNLOAD_DIR: Default download directoryTORRENT_AUTO_SUBTITLES: Auto-find subtitles (true/false)
Note: Automatically integrates with find-subtitles.py to search for video subtitles after download.
Merges multiple WebM video files.
Uploads files (PDF, EPUB, TXT) to reMarkable tablet.
Dependencies:
- curl
- ping
Converts video files to optimized GIF format.
Dependencies:
- ffmpeg
- ffprobe
Usage:
# Basic conversion
video2gif.sh input.mp4 output.gif
# Custom FPS
video2gif.sh --fps 15 input.mp4 output.gif
# Custom width
video2gif.sh --width 480 input.mp4 output.gif
# Adjust speed
video2gif.sh --speed 1.5 input.mp4 output.gif
# Limit maximum frames
video2gif.sh --max-frames 200 input.mp4 output.gifTo add a new script to this collection:
- Create your shell script in the
shell_scriptsdirectory - Make it executable:
chmod +x your-script.sh - Add a section to this README.md with:
- A brief description of what the script does
- Required dependencies
- Usage examples with command-line options
- Any additional notes or requirements