We all know this. We need to do a specific task and with the help of the internet we find a specific tool alongside command line parameters to do the job right from the shell.
What is a good way of collecting/documenting these snippets on your own for future reference and use? Just a text file in the home folder?
I do mine in Obsidian, I just have a folder for ‘computer notes’ and whenever I figure out a new thing I drop it in there.
Some stuff I use often I set up as an alias too. So for example I have
alias yt='yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"'
for my most commonly used yt-dlp settings, so now I can just doyt [URL of video]
to quickly download something from YouTube. Oralias rs="sudo rsync --ignore-existing -rav"
for my rsync settings for a specific backup folder I copy a lot.