I have a ton of these I keep in the spaced repetition software Anki. I use spaced repetition to remember a lot of stuff but I have a specific "life lessons" section to record things I learn about myself and other little life hacks that help me navigate the world. Everything from the embarrassing to the mundane to the profound, if it's something I think will be useful in the future I take a moment to type it in.