git.slaskete.net
/
einar-bin
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
The ugly oneliner version of the imgur game
[einar-bin]
/
imgurgame-oneliner.bash
1
while
true
;
do
url
=
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