Last active
February 28, 2016 20:16
-
-
Save PotcFdk/e26129503797e6843a1b to your computer and use it in GitHub Desktop.
Revisions
-
PotcFdk revised this gist
Feb 28, 2016 . 1 changed file with 12 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,14 @@ while [ true ]; do while read line; do id=$(echo "$line" | grep Location | sed 's/^Location.*\/\/ipfs\.pics\/\([^#]*\).*$/\1/g') if [ -n "$id" ]; then echo -n " - " if grep -Fxq "$id" ipfs-pics-ids.txt; then echo ".. $id" else echo -n "++ " echo "$id" | tee -a ipfs-pics-ids.txt fi fi done < <( curl -sI $(printf 'https://ipfs.pics/random %.0s' {1..15}) ) done -
PotcFdk revised this gist
Feb 28, 2016 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,10 @@ while [ true ]; do id=$(curl -sI https://ipfs.pics/random | grep Location | sed 's/^Location.*\/\/ipfs\.pics\/\([^#]*\).*$/\1/') echo -n " - " if grep -Fxq "$id" ipfs-pics-ids.txt; then echo ".. $id" else echo -n "++ " echo "$id" | tee -a ipfs-pics-ids.txt fi done -
PotcFdk revised this gist
Feb 28, 2016 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,9 @@ while [ true ]; do id=$(curl -sI https://ipfs.pics/random | grep Location | sed 's/^Location.*\/\/ipfs\.pics\/\([^#]*\).*$/\1/') if grep -Fxq "$id" ipfs-pics-ids.txt; then echo "(DUP) $id" else echo -n "(ADD) " echo "$id" | tee -a ipfs-pics-ids.txt fi done -
PotcFdk revised this gist
Feb 28, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
Empty file. -
PotcFdk created this gist
Feb 28, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ while [ true ]; do id=$(curl -sI https://ipfs.pics/random | grep Location | sed 's/^Location.*\/\/ipfs\.pics\/\([^#]*\).*$/\1/') done