Is this common?
I personally just keep around a handful of markdown files split up into different categories for things I use every few months, but can never remember the exact command or series of commands to accomplish it.
I've also had a few coworkers and friends who have hosted blogs (some public, some private) for the same purposes.
Documenting them in your own words will also likely help with the knowledge retention so you may even find that you won't need to look it up next time it happens.
For example, in the "Notes" folder, "wkhtmltopdf.md" contains some notes around issues I was experiencing in getting wkhtmltopdf setup in a new environment and the steps I took to resolve them. Whereas "general.md" just contains some Docker commands I do infrequently but can never remember the arguments I need each time and don't want to spend the time reading the docs and crafting the command again.
Periodically I'll spot something in my notes I haven't used in many months and I'll just delete them from my notes. Usually this is because I just remember the command/what to do after a while _or_ because it's just never cropped up again.
As for a public blog reference, here's an example of one that has a handful of blog posts with notes and they've used tags for grouping and looking up later on: https://jwigley.com/
One of the most common reasons is Python's argparse. I find it easier to consult the documentation when I need it than remember how it works.
Every once in a while the page which gives me the answer is something that I wrote.
"Every once in a while the page which gives me the answer is something that I wrote" -- Wow.
If it's build/configuration, I keep a log of the changes I made. Which has proved very handy.
But just because it's in my notes, doesn't mean I remember it. I have to know where to look.
Yeah, I had a friend of mine point to some code I wrote in a StackOverflow comment. I had no memory of writing it.