JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
cleanup master
authorJason Woofenden <jason@jasonwoof.com>
Tue, 23 Dec 2014 16:10:47 +0000 (11:10 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 23 Dec 2014 16:10:47 +0000 (11:10 -0500)
four-words.coffee
purple-logs-word-frequency.bash [new file with mode: 0755]
word-frequency-here.bash [deleted file]

index 433ddbb..5124253 100644 (file)
@@ -16,6 +16,5 @@ async.parallel [
                password = []
                for i in [0..3]
                        random = rnd[i] << 16 | rnd[i+1] << 8 | rnd[i+2]
-                       console.log rnd[i], rnd[i+1], rnd[i+2], random
                        password.push words[random % words.length]
                console.log password.join ' '
diff --git a/purple-logs-word-frequency.bash b/purple-logs-word-frequency.bash
new file mode 100755 (executable)
index 0000000..958e75f
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+find "$HOME/.purple/logs/" -type f -print0 \
+       | xargs -0 grep -I --no-filename -v '(notice)' \
+       | sed -e 's/<[^>]*>//g; s/&nbsp;/ /g; s/&[nm]dash;/-/' \
+       | sed -ne "s/^(..:..:.. ..) [a-zA-Z0-9@ _.-]\{1,25\}: \(.*\)$/\1/p" \
+       | perl -0777 -p -e's/\s+/\n/mg' \
+       | grep -v '^&.*;$' \
+       | sed -e 's/^\W\+//g; s/\W\+$//g' \
+       | grep '^[a-z.'\''-]\{3,16\}$' \
+       | sort \
+       | uniq -c \
+       | sort -nr
diff --git a/word-frequency-here.bash b/word-frequency-here.bash
deleted file mode 100755 (executable)
index ee16c58..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-find . -type f -print0 \
-       | xargs -0 grep -I --no-filename -v '(notice)' \
-       | sed -e 's/<[^>]*>//g; s/&nbsp;/ /g; s/&[nm]dash;/-/' \
-       | sed -ne "s/^(..:..:.. ..) [a-zA-Z0-9@ _.-]\{1,25\}: \(.*\)$/\1/p" \
-       | perl -0777 -p -e's/\s+/\n/mg' \
-       | grep -v '^&.*;$' \
-       | sed -e 's/^\W\+//g; s/\W\+$//g' \
-       | grep '^[a-z.'\''-]\{3,16\}$' \
-       | sort \
-       | uniq -c \
-       | sort -nr