Commands
Copy-paste command-line recipes with the anatomy that matters: the command, what each flag does, and the gotcha that bites — ffmpeg, git, curl, tar and more.
Commandffmpeg
Convert a video to GIFffmpeg -i input.mp4 -vf "fps=10,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" output.gif
Commandffmpeg
Trim a clip without re-encodingffmpeg -ss 00:00:30 -i input.mp4 -t 00:00:15 -c copy output.mp4
Commandffmpeg
Shrink a video's file sizeffmpeg -i input.mp4 -c:v libx264 -crf 28 -preset slow -c:a aac -b:a 128k output.mp4
Commandgit
Delete a local and remote branchgit branch -d feature-branch && git push origin --delete feature-branch
Commandcurl
POST JSON to an APIcurl -X POST https://api.example.com/items -H "Content-Type: application/json" -d '{"name":"widget"}'