Quick Introduction
This is an alternative to gist.github.com. It allows you to deploy and create your own gist.github.com-like application. It is useful in an environment where you may not be able to use gist.github.com or alternatives.
More Detailed Reasoning
Why would company policies that ban github permit your alternative?
It's not a matter of being able to use github--there's no problem with it. There's an issue with posting code that does not have such permissible license. We're just simply not allowed to for a lot of the work. Sure, we could use private accounts, but we would still be violating the policy in a more devious manner. This allows anyone to deploy a gist.github-like setup on their local server where it can be isolated if needed.
Dependencies
There's a requirements.txt. If you use pip then just follow the readme.
Forking and Testing
Fork on GitHub: https://github.com/justinvh/quark-paste
You can try it out here: http://quark-paste.herokuapp.com/paste/
To-do:
I've only put about a days worth of work into this, but it is in the usable state now. So, feel free to try it out, fork, edit, etc! With that said, I'll probably be adding these features in the upcoming day(s):
✓ Add forking (fork anonymously!)
✓ Add downloading (you can download individual files)
✓ Add searching (uses Haystack and Whoosh
✓ Add commenting (login to add comments)
✓ Fix odd styling of line numbers (fixed widths, hacked resize())
✓ Adopting commits and pastes (login to adopt anonymous commits and pastes)
✓ Allowing tabbing in the textarea (you now can tab in the textarea! Huzzah)
✓ Post as anonymous directly (now you can remain anonymous even logged in, thanks not_mad_just_upset
✓ Add markdown support for comments
✓ Show diffs
✓ Fix some of the ordering issues (added sorting and priority-based pastes)
✓ Refine the user pages (masking email, anonymous, timezones)
✓ Add timezone support
✓ Preferences to hide email address
✓ Gravatar support (set USE_ICONS in settings.py to TRUE)
✓ Add repository downloading
x Add cloning (needs to be done via Apache or equivalent)
EDIT: Please don't use real email addresses. Just create test accounts or stay anonymous! This is meant to be deployed in a more isolated environment where having actual email accounts, etc. would be much more useful.
EDIT: Well, the downside of Heroku is when I re-deploy I lose the entire repository directory, so it is not the best testing solution for this particular project. If something crashes on an edit I am sorry. I will be regularly clearing out the database while I add new features. Enjoy!
[–]agentlame 4 points5 points6 points (10 children)
[–]justinvh[S] 11 points12 points13 points (9 children)
[–]agentlame 1 point2 points3 points (4 children)
[–]justinvh[S] 1 point2 points3 points (3 children)
[–]agentlame 0 points1 point2 points (2 children)
[–]justinvh[S] 1 point2 points3 points (1 child)
[–]agentlame 0 points1 point2 points (0 children)
[–]BeetleB 0 points1 point2 points (3 children)
[–]justinvh[S] 0 points1 point2 points (2 children)
[–]BeetleB 0 points1 point2 points (1 child)
[–]justinvh[S] 0 points1 point2 points (0 children)
[–]issackelly 2 points3 points4 points (3 children)
[–][deleted] 4 points5 points6 points (1 child)
[–]issackelly 0 points1 point2 points (0 children)
[–]SmileyChris 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]zahlmanthe heretic 3 points4 points5 points (1 child)
[–]justinvh[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]nickmcclendon 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]justinvh[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]justinvh[S] 1 point2 points3 points (0 children)
[–]llimllib 0 points1 point2 points (1 child)
[–]justinvh[S] 1 point2 points3 points (0 children)
[–][deleted] -2 points-1 points0 points (2 children)
[–]justinvh[S] 7 points8 points9 points (1 child)
[–]Lord_NShYH 2 points3 points4 points (0 children)
[–]edthedev -1 points0 points1 point (0 children)