News for hackers. Stuff that matters.
Re:Drift. A self-hostable open-source Gist clone by codetrotter on Tuesday March 29, 2022 @10:00AM (#30842614)
Can you git clone and git push a drift same way you can git clone and git push a gist?
Re:Drift. A self-hostable open-source Gist clone by zokier on Tuesday March 29, 2022 @11:03AM (#30843492)
This. Git integration is the major differentiating feature of gist from all other pastebins.
Re:Drift. A self-hostable open-source Gist clone by petepete on Tuesday March 29, 2022 @02:57PM (#30846863)
I've used gists since the beginning and didn't even realise you could treat it like a git repo.
Re:Drift. A self-hostable open-source Gist clone by c0balt on Tuesday March 29, 2022 @01:41PM (#30845902)
While a lot heavier but also good, GitLab CE/ EE have "snippets", basically gists, that are backed by git repositories. Same UI as GitHub gists, same comment/ visibility/ share system.
Re:Drift. A self-hostable open-source Gist clone by emilyst on Tuesday March 29, 2022 @03:26PM (#30847200)
There are plenty of other systems to do this with. Gist's value proposition seems orthogonal to its Git integration—more to do with its UX.
Re:Drift. A self-hostable open-source Gist clone by MaxLeiter on Tuesday March 29, 2022 @02:50PM (#30846787)
no, but once API tokens are implemented (probably this week) you'll be able to write up scripts that can do similar. I definitely plan to have a VSCode extension for sharing files / snippets.
Re:Drift. A self-hostable open-source Gist clone by KindAndFriendly on Tuesday March 29, 2022 @04:09PM (#30847736)
Hi Max,

Great effort! Minor feedback:

- When I click on the "+ New" icon on the left, I would expect to be able to create a new text snippet. But I'm stuck on the "Welcome to Drift" page (I'm on Safari). - When I click "Add A File" I get another entire instance of the editing window.

Re:Drift. A self-hostable open-source Gist clone by MaxLeiter on Tuesday March 29, 2022 @04:25PM (#30847910)
Fixed, thanks!
Re:Drift. A self-hostable open-source Gist clone by wsatb on Tuesday March 29, 2022 @11:36AM (#30843990)
Feature request: ephemeral drifts. This is a major missing feature of gist in my opinion.
Re:Drift. A self-hostable open-source Gist clone by nodesocket on Tuesday March 29, 2022 @12:07PM (#30844373)
Yes, the ability to set an expiration time on a drift would be huge.
Re:Drift. A self-hostable open-source Gist clone by MaxLeiter on Wednesday March 30, 2022 @11:27PM (#30863538)
In case you see this, I've added basic support for expiring posts.
Re:Drift. A self-hostable open-source Gist clone by nodesocket on Thursday March 31, 2022 @12:23AM (#30863795)
Fantastic.
Re:Drift. A self-hostable open-source Gist clone by emilyst on Tuesday March 29, 2022 @03:27PM (#30847215)
This seems like a neat idea! I like it too.
Re:Drift. A self-hostable open-source Gist clone by crecker on Tuesday March 29, 2022 @03:56PM (#30847568)
Wished to have it with Golang! One binary to build and deploy to all my clients websites. There are a lot of people that want their self hosted Gist clone just to keep the notes internally.
Re:Drift. A self-hostable open-source Gist clone by chrisweekly on Tuesday March 29, 2022 @10:20AM (#30842863)
Naming things is hard. Drift is already a few other things including a popular website contact widget company.
Re:Drift. A self-hostable open-source Gist clone by MaxLeiter on Tuesday March 29, 2022 @03:35PM (#30847308)
But now you can say "catch my drift"

(more seriously, it's also a synonym of Gist, see https://twitter.com/emilyst/status/1499860458207014912 for the origin)

Re:Drift. A self-hostable open-source Gist clone by chockchocschoir on Tuesday March 29, 2022 @12:11PM (#30844431)
Naming things is indeed hard, using multiple keywords for searching is not (both Google and DuckDuckGo supports this). "Drift pastebin" turns up two hits that would lead me to this project. This HN submission will make the repository score even better for those keywords, so expect it to be even easier to find in a day or two.
Re:Drift. A self-hostable open-source Gist clone by nanomonkey on Tuesday March 29, 2022 @04:18PM (#30847828)
I was expecting Uber for drift cars...like a gig economy for get-away vehicles and fast rides.
Re:Drift. A self-hostable open-source Gist clone by kerblang on Tuesday March 29, 2022 @03:07PM (#30846970)
> Internal Server Error

Boo

Re:Drift. A self-hostable open-source Gist clone by nextaccountic on Tuesday March 29, 2022 @03:10PM (#30847025)
It's pretty normal for a website to go down when hitting HN frontpage. But here it seems up
Re:Drift. A self-hostable open-source Gist clone by kerblang on Tuesday March 29, 2022 @05:03PM (#30848333)
It's up but whenever I try to make a page it internal-server-errors me.

I'm not unappreciative I was just hoping maybe the author would say, hey I saw your booboo in my log and fixed it for you or something.

Instead cometh the downvote army... also, boo.

Re:Drift. A self-hostable open-source Gist clone by MaxLeiter on Tuesday March 29, 2022 @08:20PM (#30850084)
Someone opened an issue here https://github.com/MaxLeiter/Drift/issues/53 and I just pushed the fix a few minutes ago. In short, 500 errors in production were being stripped of the message so I switched to sending 400s for certain errors (which I should have been doing all along).

Thanks!

Re:Drift. A self-hostable open-source Gist clone by kerblang on Tuesday March 29, 2022 @08:33PM (#30850184)
Ah good I shall try it again