Skip to content

Instantly share code, notes, and snippets.

@moul
Last active October 7, 2019 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moul/aa5e556280763727eab9d6dcd77e2110 to your computer and use it in GitHub Desktop.
Save moul/aa5e556280763727eab9d6dcd77e2110 to your computer and use it in GitHub Desktop.
poor man's ipfs pin
export IPFS_HASH=QmZXiDQny5yzxCB3kVFEh8ftBgT9nd4nNb5JVZnwkwgT9Z
for url in $(curl -s https://ipfs.github.io/public-gateway-checker/gateways.json | jq -r '.[]' | sed "s/:hash/$IPFS_HASH/"); do
(curl --max-time 10 $url > /dev/null &)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment