Skip to content

Instantly share code, notes, and snippets.

@kyledrake
Last active August 18, 2019 18:00
Show Gist options
  • Save kyledrake/e8e2a583741b3bb8237e to your computer and use it in GitHub Desktop.
Save kyledrake/e8e2a583741b3bb8237e to your computer and use it in GitHub Desktop.
IPFS replication service with one line of unix shell code!
#!/bin/bash
# First, install ncat: http://nmap.org/ncat/
# Usually comes with the 'nmap' package on distributions.
ncat -k -v -l -p 5555 -c 'ipfs refs local | gzip'
# To retrieve on the client machine:
# nc 127.0.0.1 5555 | gunzip | ipfs pin add -r
@whyrusleeping
Copy link

👏 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment