summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@also>2011-07-22 15:25:04 +0200
committertv <tv@also>2011-07-22 15:25:04 +0200
commit8b225805bcffc476f8c7fce4c8391e8035ee1c9c (patch)
treebddaee871608c0985cd1fb4781bc9e5140ff05c6
parent2719c0b478d9a0ff780acbde95489ff6995ae884 (diff)
parentda7814f9fd0678823ec3107a8843c97f91714bf3 (diff)
Merge branch 'toaster'
-rw-r--r--doc/cholerab1
-rwxr-xr-xinfest/bin/make-patch4
-rwxr-xr-xutil/bin/google.suggest8
3 files changed, 11 insertions, 2 deletions
diff --git a/doc/cholerab b/doc/cholerab
new file mode 100644
index 00000000..2500ba6b
--- /dev/null
+++ b/doc/cholerab
@@ -0,0 +1 @@
+see krebscode/cholerab
diff --git a/infest/bin/make-patch b/infest/bin/make-patch
index e2ef0ca0..1051c1aa 100755
--- a/infest/bin/make-patch
+++ b/infest/bin/make-patch
@@ -1,7 +1,7 @@
#! /bin/sh
-t="`tempfile`"
-p="`tempfile`"
+t="`mktemp`"
+p="`mktemp`"
trap "test -e $t && rm $t; test -e $p && rm $p" EXIT INT
f=/etc/passwd
diff --git a/util/bin/google.suggest b/util/bin/google.suggest
new file mode 100755
index 00000000..9bde17dc
--- /dev/null
+++ b/util/bin/google.suggest
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+uri="http://google.com/complete/search?output=json&q=$*"
+
+curl -sS "$uri" | sed -n '
+ s:^window.google.ac.h(\|)$::gp
+'
+echo