Skip to content

Instantly share code, notes, and snippets.

@tzdybal
Created October 15, 2020 20:44
Show Gist options
  • Save tzdybal/ee567b06586135b5240b366a4bf89662 to your computer and use it in GitHub Desktop.
Save tzdybal/ee567b06586135b5240b366a4bf89662 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
gateways="ipfs.ink ipfs.io gateway.ipfs.io ipfs.best-practice.se cloudflare-ipfs.com ipfs.infura.io trusti.id ipfs.sloppyta.co 10.via0.com ipfs.mttk.net"
cid=$1
if [ "$cid" == "" ]; then
exit 1
fi
for gw in $gateways; do
curl "$gw/ipfs/$cid" -o /dev/null &
echo $gw
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment