-
-
Save meeDamian/13944713dae3e25779e12f3b3206135a to your computer and use it in GitHub Desktop.
IPFS replication service with one line of unix shell code!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment