

I use a snippet manager called keep.
It runs in the terminal, and helps remember commands. I use it for remembering commands with lots of flags and parameters that i don’t use often. But it can be used to remember any command you need.
You can also add comments to each command to remind you what it does.
I add the command i need to remember with
keep new
And when i forget it i can run
keep list
To get a list of commands.
It can do more, but i’ve only ever used those two functions.
I know i’m not really answering your actual questions, but i’ll just throw TrilliumNext Notes into the mix.
It’s open source, and it can be encrypted.
If you want sync you can selfhost a server too, if not it’s local only.
There’s an android app too, but i haven’t used it.