From 3d33c5a7512044d3dafaedab7ba7bc26f82efece Mon Sep 17 00:00:00 2001 From: =?utf8?q?Einar=20J=C3=B8rgen=20Haraldseid?= Date: Mon, 2 Jun 2014 00:13:49 +0200 Subject: [PATCH 1/1] The ugly oneliner version of the imgur game --- imgurgame-oneliner.bash | 1 + 1 file changed, 1 insertion(+) create mode 100644 imgurgame-oneliner.bash diff --git a/imgurgame-oneliner.bash b/imgurgame-oneliner.bash new file mode 100644 index 0000000..a95705c --- /dev/null +++ b/imgurgame-oneliner.bash @@ -0,0 +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 -- 2.30.2