Snippet Center
Download 20 seconds of a YouTube video starting at the 15th second
ffmpeg -ss 15 -i $(youtube-dl -f mp4/bestvideo --get-url https://www.youtube.com/watch?v=5qF_qbaWt3Q) -t 20 -c:v copy -c:a copy output.mp4
Use WP Scan to enumerate users of a WordPress website
docker run -it --rm wpscanteam/wpscan --url https://some-wordpress-website.com/ --enumerate u
Mount EFI partition on macOS
sudo mkdir /Volumes/EFI || true && sudo mount -t msdos /dev/$(diskutil list | grep EFI | awk '{print $NF}') /Volumes/EFI
Count lines in Vue files that exceed 80 lines recursively, show results as a sorted list
find . -iname '*.vue' | xargs wc -l | sort -nr | awk '($1 > 80)'
Convert all PSDs to PNGs recursively, then delete the PSDs
find . -iname '*.psd' -exec sh -c 'convert "$0[0]" -resize 2000x "${0%.psd}_2k.png" && rm "$0"' {} \;
Print filenames and sizes of files larger than 20MBs
find . -type f -size +20M -exec du -bh {} \;