summaryrefslogtreecommitdiffstats
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
commit71ccb7fed4904e118d08830a1b08a4cbc6b06e0b (patch)
tree408d0dd69584527ace57f44904e09b9a2e2f6dfe
parentf5d5daf256e6b973a2f068eb9869016b4be507b9 (diff)
parent9b36bf4e4de683514a2ad3a34bf1177163e369b1 (diff)
Merge branch 'master' of github.com:/krebscode/painload
Conflicts: evan/satz-liste
-rw-r--r--evan/satz-liste2
-rwxr-xr-xutil/bin/wiki.firstpar23
2 files changed, 24 insertions, 1 deletions
diff --git a/evan/satz-liste b/evan/satz-liste
index e14a175a..663aa572 100644
--- a/evan/satz-liste
+++ b/evan/satz-liste
@@ -8,6 +8,6 @@ muelltrennung bringt gutes karma
dokumentiere deine projekte
werbe neue mitglieder
fnord
-bewässere die Pfalnzen
+bewässere die Pflanzen
Öffne ein Fenster
wische die tische
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