31

gist.github.com is incredibly handy, but I'd like to be able run something similar for sharing code samples internally with other developers behind the firewall where I work, so I don't constantly need to be sanitising my code all the time, just to talk about code examples.

Does anything like this exist?

I'm not after big project management tools, just a way to make throwaway gists, and share links easily, that also happen to be git repos, just like gist.github.com

Daenyth
  • 35,856
  • 13
  • 85
  • 124
Chris Adams
  • 2,721
  • 5
  • 33
  • 45
  • Gist has a "private" post type where it's not public and has a long hash for the url so that it's not brute-forcable. Is that not enough? – Daenyth Oct 13 '10 at 15:34
  • Not really. I'm interested in only making it visible behind a firewall, and storing the data on our own hardware if possible - we're currently using an internal version of etherpad at present for some of this, but syntax highlighting, git integration, and easy link sharing are just sorely missed from gist.github.com – Chris Adams Oct 13 '10 at 15:42
  • From what I can tell, GithubFI doesn't have a gist feature. I could be wrong. – Daenyth Oct 13 '10 at 15:54
  • gitpaste is probably the best out there and most up to date. It runs Django. I am using it now with Apache httpd and have modified it to connect to my company's AD along with securing it with SSL. It's very easy to customize. – Engineer2021 Feb 14 '14 at 17:13
  • @Daenyth: Many companies want to protect IP. Private links don't protect IP because now it's on GitHub's servers. – Engineer2021 Feb 14 '14 at 17:13

3 Answers3

9

You may check pastgit: git backed paste server (gist python clone)

https://github.com/mmikulicic/pastgit

Also gitpaste: (another gist clone based on Django)

https://github.com/justinvh/gitpaste

weakish
  • 28,682
  • 5
  • 48
  • 60
7

Self-hosted, git-based pastebin in PHP: https://github.com/cweiske/phorkie

Gerald Schneider
  • 17,416
  • 9
  • 60
  • 78
cweiske
  • 30,033
  • 14
  • 133
  • 194
4

The killer feature of github's gists in my opinion is their Git integration. You can clone your gists, version control them etc.

If you need just need something to collaborate, you can choose one of the open source pastebins and make an install locally inside your intranet. One that comes to mind is dpaste.

BryanH
  • 5,826
  • 3
  • 34
  • 47
Noufal Ibrahim
  • 71,383
  • 13
  • 135
  • 169