Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
see shy jo
@joeyh@sunbeam.city  ·  activity timestamp 3 months ago

testing new #gitAnnex feature that lets it be used with just about any P2P network that supports socket-like connections. yggdrasil, fowl, iroh, etc. Expanding on tor hidden services that git-annex already supports.

My test script simulates such a network using socket files with this absurdly small shell script.

It was pretty cool when "git pull" and "git-annex get" just worked over this on the 1st try.

#!/bin/sh
if [ "$1" = address ]; then
        date +%s
else
        if [ -z "$2" ]; then
                socat - UNIX-CONNECT:"/tmp/$1"
        else
                ln -sf $(realpath "$socketfile") "/tmp/$1"
        fi
fi
#!/bin/sh if [ "$1" = address ]; then date +%s else if [ -z "$2" ]; then socat - UNIX-CONNECT:"/tmp/$1" else ln -sf $(realpath "$socketfile") "/tmp/$1" fi fi
#!/bin/sh if [ "$1" = address ]; then date +%s else if [ -z "$2" ]; then socat - UNIX-CONNECT:"/tmp/$1" else ln -sf $(realpath "$socketfile") "/tmp/$1" fi fi
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login