From 6f5dbc0cbc30b8461f48c2b904cc67267d8d24f4 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 21 Oct 2013 01:04:37 -0700 Subject: [PATCH] twitter crap --- sh/lol-twitter | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 sh/lol-twitter diff --git a/sh/lol-twitter b/sh/lol-twitter new file mode 100755 index 0000000..91cc292 --- /dev/null +++ b/sh/lol-twitter @@ -0,0 +1,7 @@ +#!/bin/zsh +#< /dev/urandom | tr -dc 'a-z0-9_' | fold -w 5 \ +#< /usr/share/dict/cracklib-small | grep -E '^\w{4}$' \ +while read -r; do + curl -s 'https://twitter.com/users/username_available' -d username=$REPLY \ + | grep -lq ',"valid":true,' && echo $REPLY || echo \#$REPLY +done