Snippets software

I’m looking for some sort of snippets software i can use internally in m
to store all sort of little hints and tricks you discover.
I know of :

And have seen a very cool version in a ajax demo movie on rubyonrails.

Anybody a good hint for some sort of software ?