Maybe someone knows a good pastebin that I can use instead of github gists? I kind of wish that codeberg had something there, but it's just nice to have a place to post random code snippets and then be able to link to the highlighted version.

I would also like to be able to edit them, and have an account so that I would be able to see a list of my snippets as well.

#askFedi

GitHub - thomiceli/opengist: Self-hosted pastebin powered by Git, open-source alternative to Github Gist.

Self-hosted pastebin powered by Git, open-source alternative to Github Gist. - thomiceli/opengist

GitHub
YABin

@fbievan That's pretty nice, but I'm not quite sure how to register :)

@sotolf

Ahh— it seems registration has been disabled on that instance... notify me if you find anything

https://demo.opengist.io/

There's also that opengist thing... I may startup my own instance of the other one but idk

All gists - Opengist

@fbievan I like that one quite a bit, it has light mode as well, I prefer lightmode for working on code during the day :)
Parse_words.zig - Opengist

@fbievan Hehe, yeah, needed to test it out.

@sotolf

Pretty cool— better than yabin IMO since yabin is coded with js and node... However opengist is in go... Which is really cool :)

@sotolf

There is, of course, https://bin.benjaminhollon.com which is now running on my server instead of the laptop under my bed so it should be far more performant and reliable.

bin.

@sotolf
Oh but that’s not a long term storage place which I just realized you might be looking for. It’ll probably stay up for months at a time but eventually your posts will be deleted.
@amin yeah, and it doesn't have a login with listings of my snippets so that I can refer back to my older ones, which is something I am kind of interested in, since some times I have snippets of things that I want to share or build in to something else later, but isn't really something I feel is worth a git repository :)
@rl_dane @amin No syntax highlighting because garbage protocol :p

@sotolf @amin

Sticks and stones may break my bones, but LEAAAAVE GEMINI ALOOOONE cat millennial-2007-youtuber-meltdown.txt

Does anyone remember that? Leave Britney Alone? No? Good.

Cara Cunningham - Wikipedia

@rl_dane @sotolf @amin that would defeat the purpose as only half a dozen people would even be able to read it

@mirabilos @sotolf @amin

Oi, the wiseacres are sprouting up like weeds today.

@sotolf @amin make a “misc.git” then?

Or even CVS, as the files would be truly unrelated, and if ever needed later, you could move individual ones out and/or convert to a separate git branch.

@sotolf Honest question: Why do you use gists rather than a regular repo?
@sunarch I feel like much of the small experiments don't really need a whole repo, some are just a small bit of code that I think may come in handy in the future, some times it's part of a advent of code or something like that, I will kind of gather up some pieces of code that I find myself using again and again and gather them together in a utilities thing later maybe, and then it might be something that is worth putting in a repository, most of this is things that I find neat, and think may come in handy, but I'm not quite sure yet.
@sotolf That makes sense, I guess I just defaulted for one repo for AoC stuff, as bound by topic and not functionality.
@sunarch so, no division by year or anything? also are you keeping the input files out of the repo? or do you give them a special ending and gitignore them? since they are copyrighted, and you're not allowed to share them, and they probably don't match the licence of the rest of your repo either, it's just annoying to deal with :p
@sotolf Division by year and day, of course, since it's at least two files for each. The inputs are simple txt files, gitignored, yes.
@sotolf Previously I had my solutions checked via tests in the code, but I moved those out into a private little lookup tool.
@sunarch ah okay, I'm just too lazy then :p
@sotolf paste.sr.ht

@sotolf

  • multiple files per paste
  • private, unlisted, and public options
  • syntax highlighting
  • linked to account for management
  • also has an API

The caveats are that AFAIK pastes are immutable, and I don't remember if you can create them on a free source but account.

Example paste: https://paste.sr.ht/~dominicm/289c883036fb58eeed82b6253d29ffa72fba0935

@dominicm That is really pretty, clean and nice looking :) I did register, and with a contributer account (non-paid) I am able to post pastes:

https://paste.sr.ht/~sotolf/4e8abfdafa3eb5c211deb6b9a70f0c5fc9fa6914

It does look really nice, works well to, and loads super quick. I've had my problems with @drewdevault in the past, but he's one of the few people that promised to do better, and actually followed through with it, and that's something that I really do respect. So kudos to him too :)