summaryrefslogtreecommitdiffstats
path: root/util/bin
diff options
context:
space:
mode:
authorroot <root@krebs>2011-08-05 21:15:53 +0200
committerroot <root@krebs>2011-08-05 21:15:53 +0200
commit7adc117f1a7693f2693c845460d43170b97efc57 (patch)
tree190fa82be91902c9a8be9076c121ce29e71bd494 /util/bin
parent0be2076bde83797ac0161274dd23110f94f4f8b0 (diff)
parent0be7d52bfbfacb6bc8586a64842d879380761a46 (diff)
Merge branch 'master' of github.com:/krebscode/painload
Conflicts: evan/satz-liste
Diffstat (limited to 'util/bin')
-rwxr-xr-xutil/bin/wiki.firstpar23
1 files changed, 23 insertions, 0 deletions
diff --git a/util/bin/wiki.firstpar b/util/bin/wiki.firstpar
new file mode 100755
index 00000000..df66f707
--- /dev/null
+++ b/util/bin/wiki.firstpar
@@ -0,0 +1,23 @@
+#! /bin/sh
+set -euf
+
+A=Mozilla
+
+pwd="$(dirname "$(readlink -f "$0")")"
+
+for x in \
+ "$pwd/../../submodules/github/tmpvar" \
+ "$pwd/../../submodules/github/mikeal" \
+ "$pwd/../../submodules/github/NV" \
+ "$pwd/../../submodules/github/tautologistics" \
+; do
+ export NODE_PATH="`readlink -f "$x"`${NODE_PATH+:$NODE_PATH}"
+done
+
+# ensure query is ready
+#(cd "$pwd/../.." && git submodule update --init)
+
+query() {
+ node "$(readlink -f "$pwd/../../submodules/github/visionmedia/query")" "$@"
+}
+curl -sS -A "\${A-Mozilla}" "$1" | query 'p' 'first' | w3m -T text/html -dump