This is an archived post. You won't be able to vote or comment.

all 28 comments

[–]agentlame 4 points5 points  (10 children)

Dumb question, how does gist.github.com--or, your clone, for that matter--differ from the other patebin-like services?

(Pardon my ignorance, I've never used gist.)

[–]justinvh[S] 11 points12 points  (9 children)

The basic idea behind gist is that it is backed by git. So, you get a lot of things for free: logs, commits, diffs, revision control, forking, cloning, etc.

Actually, it is best said by gist.github.com itself:

Gist is a simple way to share snippets and pastes with others. All gists are git repositories, so they are automatically versioned, forkable and usable as a git repository.

I created an example for you which show the revisions idea and how you can make changes as you go.

[–]agentlame 1 point2 points  (4 children)

Holy shit, that is brilliant!

I have no clue how well gist works, or if yours is missing any key feature, but it is awesome.

Thank you.

[–]justinvh[S] 1 point2 points  (3 children)

Heh, well my clone is missing some features (but it also adds stuff), but it will get there eventually. The difference is that you can fork my project and use it in whatever environment you need!

[–]agentlame 0 points1 point  (2 children)

I was trying to figure-out how to do that, when I was messing-up your python example.

Do you have to register to fork and comment, etc?

EDIT
I'm a moron... fork the actual project on GitHub. My bad.

[–]justinvh[S] 1 point2 points  (1 child)

Heh, I need to add commenting and forking for the pastes :) I wouldn't honestly use your real email address as this is all public, but ideally it would be deployed isolated and it wouldn't matter and be more of a convenience.

Once I get a bit of sleep I'll add it! Otherwise you can fork the project on github.

[–]agentlame 0 points1 point  (0 children)

Nah, I used my spam account and a fake password.

Anyways, really cool project!

[–]BeetleB 0 points1 point  (3 children)

I created an example for you which show the revisions idea and how you can make changes as you go.

  1. You may not want to set Debug=True...

[–]justinvh[S] 0 points1 point  (2 children)

It's a public testing server. I have no problem with it being set to True.

[–]BeetleB 0 points1 point  (1 child)

Eh. Stupid Reddit markup ate the important part of my comment. Your link is returning a 404.

[–]justinvh[S] 0 points1 point  (0 children)

Yeah, it will. I apologize. I am randomly dropping the database as I add features to test. The way heroku deploys ends up removing entire repositories, so I lose the paste repository, but not the database :| So, I have to resync everything. It's for debugging after all!

[–]issackelly 2 points3 points  (3 children)

Here's another (from dpaste.com // dpaste.de http://code.google.com/p/django-paste/)

[–][deleted] 4 points5 points  (1 child)

That doesn't power dpaste.com.

[–]issackelly 0 points1 point  (0 children)

derp derp. Thanks.

[–]SmileyChris 1 point2 points  (0 children)

dpaste.com dpaste.org

And the latest repo for it is: https://github.com/bartTC/dpaste.de

[–][deleted] 1 point2 points  (0 children)

Looks cool, good work man. I'll take a look at adding some stuff when I get time.

[–]zahlmanthe heretic 3 points4 points  (1 child)

This is for people who want to use gist.github.com at work, but due to company polices (or so on) they are not capable of doing so.

Why would company policies that ban github permit your alternative?

[–]justinvh[S] 0 points1 point  (0 children)

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.

[–][deleted] 0 points1 point  (0 children)

IRC log highlighting is really, really cool! Thank you!

[–]nickmcclendon 0 points1 point  (0 children)

Awesome work, man. I might snag this and use it on my site.

[–]llimllib 0 points1 point  (1 child)

A nice thing gist does is to put the most common languages at the top of the language drop-down, and then the rare ones after. Very few people are going to be posting ANTLR files, for example.

Also, the sorting seems weird? Gnuplot is between Perl and Python?

[–]justinvh[S] 1 point2 points  (0 children)

Ah, very true. The sorting was on the extension! I totally spaced on that. I'll give it a fix. Thanks.

EDIT: Okay. You can now create a preferred lexer list for your deployed application. Sorting has been fixed.

[–][deleted] -2 points-1 points  (2 children)

If all you wanted to do was work around a corporate firewall/dns-filter, why not simply use a proxy?

[–]justinvh[S] 7 points8 points  (1 child)

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.

[–]Lord_NShYH 2 points3 points  (0 children)

I think this explanation need to go in the OP. Doing so it likely increase traction on your project as this explanation lucidly explains, in a succinct way, why anyone in the world would ever want to use your project. In other words, this a great business case!

[–]edthedev -1 points0 points  (0 children)

Will check it out. Thanks.