What do you use to store code snippets from around the web?
Web based, free, with the ability to add comments for context and organize into projects. For example I would track different code snippets relevant for different projects.
Github Gists are good. They are discoverable, can be made private or public. They can be forked, stared and linked too.
I've also been publishing "emerging tech" snippets on my blog. They appear on a carousel on the bottom of the home page. This is good to showcase expertise in a particular language or framework.
I can recommend Cockpit CMS if you want to build your own selfhosted knowledge base. Here is a great tutorial to get started:
https://willbrowning.me/category/cockpit/