git.slaskete.net
/
einar-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3d33c5a
)
Terser version
author
Einar Jørgen Haraldseid
<einar@haraldseid.net>
Sun, 1 Jun 2014 22:35:16 +0000
(
00:35
+0200)
committer
Einar Jørgen Haraldseid
<einar@haraldseid.net>
Sun, 1 Jun 2014 22:35:16 +0000
(
00:35
+0200)
imgurgame-oneliner.bash
patch
|
blob
|
history
diff --git
a/imgurgame-oneliner.bash
b/imgurgame-oneliner.bash
index a95705c7257645fa76bb8eb4d0278970f91bea63..d1bacdfde3a992ab4c162c06b25ede3e59e86fd5 100644
(file)
--- a/
imgurgame-oneliner.bash
+++ b/
imgurgame-oneliner.bash
@@
-1
+1
@@
-while true; do u
rl=http://i.imgur.com/$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 5 | head -n 1).jpg;if [[ $(curl -s -o /dev/null -I -w "%{http_code}" ${url}) == "200" ]]; then echo "Found ${url}"; fi
; done
+while true; do u
=http://i.imgur.com/$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 5 | head -n 1).jpg;[ `curl -s -o /dev/null -I -w %{http_code} $u` == 200 ] && echo $u
; done