dsilverz

joined 1 week ago
[–] [email protected] 2 points 6 hours ago* (last edited 6 hours ago) (1 children)

@scott I'm looking for something alternative to Github Gists, so I could quit it and go to a decentralized platform. Not the GitHub itself, but Github Gists, which is more like a multi-file "pastebin".

Something decentralized, federated, something akin to Writefreely where posts outside Writefreely (e.g., when seen from Mastodon) shows up as a shortened/summarized version, but tailored for code sharing, allowing for syntax highlighting, proper Markdown rendering and allowing for multiple text files within the same publication ("parts" within the "whole", each one having their own filename; by "files", I mean text files and source code such as .mjs, .js, .rb, .md, .txt, .csv, etc... not binary files such as images or movie-clips or audio or executables or zip/tarball/rar archives). Something that I could choose between hosting it myself (i.e., having my own instance) or using an existent instance, with the possibility of migration between instances (similar to Mastodon's Export feature, but also allowing for importing exported publications).

The closest thing would be @Daeraxa suggestion, Distbin (sorry Daeraxa for not getting to reply your comment yet, Friendica didn't deliver it to me yet, but I saw your comment through Lemmy and I tested Distbin here). Sadly, as Daeraxa mentioned, that project is abandoned, with the last commit dating back from 6 years ago. Also, there are several issues (publications are anonymous because there's no account system, publications can't deal with multiple "files", no deletion mechanism, etc). It's the closest thing, but not the thing.

Software forges (such as Vervis, Gitea and Forgejo) are really good for full projects. However, while I sometimes create full projects (where software forges, branches and forks, pull requests, CI/CD pipelines and source versioning would apply), the majority of my dev portfolio is composed of small-to-medium-sized code snippets experimenting with Node.js/Javascript, Python, Ruby and Shellscript, sometimes one-liner code snippets, and wrapping them up within full repos is overkill.

Maybe I'm going to do a solution myself in the future, I'm not sure, it's not exactly a plan or a promise. The core functionality seems simple to develop (looking at the Distbin's source, it seems really simple) but integrating with ActivityPub and relaying info about multiple files within a publication in a format that's compatible with other fediverse platforms (Mastodon, Friendica, etc) is a whole other story, in parts because I'm yet to learn about the technicalities of ActivityPub (i.e. how it really works behind the scenes beyond the /api/v1 calls).

[–] [email protected] 3 points 9 hours ago* (last edited 9 hours ago) (3 children)

I'm replying directly on the thread because one of the comments didn't arrive in Friendica, yet (I'm seeing only 3 of 4 comments here on Friendica, I only could see the fourth comment through Lemmy).

The suggested Forgejo (with public "instances" such as Codeberg) and Vervis seem good and promising. While they're not exactly what I'm looking for (as Github Gists and Opengists are less than a software forge and more like a "Pastebin/Ghostbin", they're meant to allow sharing "repoless" code (they also have some Git integration, but there are no such things as branches, CI/CD, issue tracking, etc)), they're useful to me, too, thanks everyone for suggesting them.

 

Do any fediverse alternative(s) for GitHub Gists exist?

There are lots of platforms connected together through the ActivityPub. Since I discovered the fediverse, I've used Mastodon, Lemmy, Pleroma, Writefreely, Mitra and Friendica, definitely leaving the centralized platforms for good.

However, as a developer, I've still been using centralized services, such as GitHub and, more specifically, GitHub Gists. Recently, I discovered a project called Opengist which allows for a self-hosted "GitHub Gists" alternative. While it allows for some integrations with centralized servers (e.g., integrated login using GitHub, GitLab, Atlassian Bitbucket, among others), it doesn't seem to allow for ActivityPub integrations.

And this leads me to my question: are there any "fediverse GitHub Gists", where developers could publish code snippets (e.g., P5.js snippets, GLSL shaders and fragments, mathematical experimentation, and so on), while allowing for federation? I imagine they'd be pushed to Mastodon and Friendica similarly as how Writefreely pushes posts to the fediverse, as a truncated text followed by a direct link to the Writefreely article.

[–] [email protected] 9 points 1 week ago

@rimu @Bronzebeard On the one hand, when Deep Seek "doesn't know" about a thing (i.e., something not present the training data), it'll state it clearly (I'm not sure if the image will be sent as I'm not using Lemmy directly to reply this):

The context of the image is the following: I asked DeepSeek about "Abnukta", an obscure and not-so-much-known Enochian term that is used during one of the invocations of Lilith, and DeepSeek replied the following:

"Abnukta is a term that does not have a widely recognized or established meaning in mainstream English dictionaries or common usage. It could potentially be a misspelling, a neologism, or a term from a specific dialect, jargon, or cultural context. If you have more context or details about where you encountered the term, I might be able to provide a more accurate explanation. Alternatively, it could be a name or a term from a specific field or community that is not widely known".

So, the answer that the user Rimu received is not regarding something "unknown" to the LLM (otherwise it'd be clearly stated as that, as per my example), but something that triggered moderation mechanisms. So, in a sense, yes, the LLM refused to answer...

However... On the other hand, western LLMs are full of "safeguards" (shouldn't we call these as censorship, too?) regarding certain themes, so it's not an exclusivity of Chinese LLMs. For example:
- I can't talk about demonolatry (the worshiping of daemonic entities, as present in my own personal beliefs) with Claude, it'll ask me to choose another subject.
- I can't talk with Bing Copilot about some of my own goth drawings.
- Specifically regarding socio-economics-politics subjects, people can't talk with ChatGPT and Google Gemini about a certain person involved in a recent US event, whose name is the same as a video-game character known for wearing a green hat and being the brother of another character that enters pipes and seeks to set free a princess.
- GitHub Copilot refuses (in a blatant Scumthorpe Problem) to reply or suggest completion for code containing terms such as "trans" or "gender" (it's an open and known issue on GitHub, so far unanswered why or how to make Copilot answer).

But yeah, west is the land of the freedom /s