ZeroNet Blogs

Static ZeroNet blogs mirror

braindump

tech blog. comments welcome.

external links kept to a minimum.

contrbutors: homebrew@zeroid.bit

ZeroNet - Nomenclature

- Posted in braindump by with comments

{
  'date': "01/09/2017",
  'status': "DRAFT",
  'author': "homebrew@"
}

In the context of this blog and its associated intellectual property, the following terms are adopted.

  • "0net" or "ZeroNet"

  • "0net site" or "ZeroNet site" - "Zite", A site or collection or pages on 0net

git-remote-helpers

- Posted in braindump by with comments

{
  'date': "01/09/2017",
  'status': "DRAFT",
  'author': "homebrew@"
}

As I started out working through the ways that I could wrangle git into working over ZeroNet, I ran across this "Zite" (still not 100% sold on the nomenclature) which came packaged with a shell script designed to help git interact with 0net. While it doesn't appear to be doing anything malicious, it also isn't very easy for humans to parse. To date, I haven't had to deal much with git-remote-helpers outside of the normal indirect uses (git-remote-http, git-remote-https, git-remote-ftp, etc.). The installation instructions given on the above-referenced Zite told me to simply add the script to my $PATH. As any good citizen of the open-source community, my first mission was to understand what exactly I would be adding. It was time to do some research.

I spent two hours going over each line of the shell script trying to determine how it worked. When I was done, I had a few takeaways and a path forward:

  • The script takes the following commands as arguments in a switch-case statement:

    • capabilities, list, import, and export
  • The shebang and author lines listed both a Felipe Contreras and a modifier or Peter Cai

    • A Google search for the former's GitHub turned up a couple of projects relating to bridging git into other Content Versioning Systems (CVSes)

      • This led me into the official git documentation around how this bridging is accomplished
  • Finally, I came to the totally personal opinion that this particular shell script would be better served in a language which could more expressively describe its intent

    • Python, node.js, or Java implementation to follow - self-imposed deadline of 9/9/17

We know that you have many choices when considering hard drive space and we'd like to thank you for choosing to peer braindump. Don't be a stranger. Leave a comment, share this post, or leave a like if you're enjoying what you read.

Git over ZeroNet

- Posted in braindump by with comments

{
  'date': "01/09/2017",
  'status': "DRAFT",
  'author': "homebrew@"
}

Someone has beaten me to the punch on getting git to work with ZeroNet. Git over ZeroNet Project can be found here. There is an opportunity to build a GitLab instance or something like it over the top of this integration. There is also an opportunity to improve the git plugin. I don't know a lot about writing git plug-ins, but I assume they need to be made cross-platform.

Disclaimer: I have reviewed the code for the above git over ZeroNet project, but I don't affirm that it isn't doing something sneaky.

0git also exists as a means to point to ZeroNet git-esque repositories.

There is a bit of in-progress work here as well. This "GitMirror" looks the most promising to me right now.

{
  'date': "01/09/2017",
  'status': "FINAL",
  'author': "homebrew@"
}

Based on a recent conversation in ZeroTalk, it's come to my attention that we may not have a means use ZeroNet as a medium for distributed storage solutions. A few interesting services, like IFS, did come out of the conversation, but nothing really scratched my itch. In this same vein, I have also started looking for other basic developer services like Open Source git solutions like GitLab to bring our builds completely off of the non-distributed Internet. I will be spending the next couple of weeks putting together a list of services which either already exist here in ZeroNet and those that I think would benefit the community. Stay tuned.