The main script is:
~$ cat share/bin/n
#! /usr/bin/env bash
cd $HOME/share # or wherever you want to put your notes
echo >> notes.txt
echo -n '# ' >> notes.txt
date '+%a %d %b %Y %T %Z' | tr -d "\n" >> notes.txt
echo ' #' >> notes.txt
if [[ $# -ne 0 ]]; then
echo $@ >> notes.txt
tail notes.txt
else
vim "+normal Go" +startinsert notes.txt # or nano: nano -R +-1 notes.txt
fi
This script is accessible from all my personal machines as well as appropriate work machines. It works well enough. I've devised a small system of tags and keywords, but that part is not particularly interesting. I just put the keywords at the beginning of a line and search for them with /^thekeyword/.More structured notes go into dokuwiki or just a LibreOffice file in the project folder.
All this is almost guaranteed to be readable in 20 years. The LibreOffice files may be at more risk, but at least there is more than one tool available to read them.