Expert guidance on cross-platform shell scripting (Bash, Sh, Ksh, Zsh, Python) and automation for Linux, FreeBSD, and OpenBSD.
45:Taa7,
This skill provides expert guidance and reusable resources for creating robust, portable scripts across Linux, FreeBSD, and OpenBSD environments. It covers shell scripting (Bash, Sh, Ksh, Zsh), Python automation, and specialized tasks like FFmpeg hardware acceleration.
Writing scripts that work seamlessly across different operating systems requires careful consideration of shell syntax and utility differences.
#!/usr/bin/env <shell> for portability.sed, grep, date) unless you can guarantee GNU tools are installed.Automating video processing often requires leveraging hardware acceleration, which varies significantly by OS and hardware.
Optimized for developing AI agents and virtual background projects.
venv usage on Debian to maintain system stability.signal for graceful agent shutdowns and logging for headless automation.The following scripts allow Gemini to gather real-time system context:
scripts/os-detect.sh: Identifies the OS, version, and architecture.scripts/priv-detect.sh: Detects sudo vs doas and verifies user permissions.scripts/gpu-detect.sh: Identifies the GPU vendor/renderer via glxinfo.scripts/check-deps.sh: Audits a list of required binaries and detects their versions.
scripts/check-deps.sh bin1 bin2 ...set -e in shell scripts where appropriate.