Linux & CLI Commands
FFMPEG Commands
Cropping
Center Crop for Instagram: ffmpeg -i ParticleSensor.mp4 -vf "scale=(iw*sar)*max(1080/(iw*sar)\,1...
Web Convert
OGV: in_old = "path_to_vid.mp4" new = ${in_old%.*}.ogv ffmpeg -i $in_old -codec:v libtheora -q...
Convert entire folder
for i in *.mov; do name=`echo "$i" | cut -d'.' -f1` echo "$name" ffmpeg -i "$i" "${name}...
Hardware encoding
Intel example command: ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri...
For Website Looping Video
ffmpeg -ss 10 -i $INPUT -t 5 -'min(350,ih)':force_original_aspect_ratio=decrease,pad=550:350:(550...
Images and PDFs
DistroBox
NixOS
Tailscale
services.tailscale = { enable = true; openFirewall = true; authKeyFile = path-to-...
Tidal-dl-ng Shell
nix-shell tidal.nix (or whatever you call this file) { pkgs ? import <nixpkgs> {} }: let p...
Take Screenshot of Remote Machine
nix-shell -p xorg.xwd imagemagick --run 'sudo DISPLAY=:0 XAUTHORITY=/run/lightdm/root/:0 xwd -roo...