Can I embed a search box for a private pastebin, snippets, or gists?

(Searched but didn’t find the right stuff).
I want to introduce Discourse at work and I also want to introduce a shared snippets manager (like pastern or stikked). I can host both myself if need be.

  • Is there an established way to do this?
  • Is there already a “pastebin” function in Discourse?

Thanks!

I don’t understand why there would be a relationship between Discourse and snippet management? These seem like two very different things to me?