From db1bd874aa518536f81d170facefd75e661afe30 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 28 Aug 2011 17:23:45 +0200 Subject: =?UTF-8?q?knut:=20add=20Error=20#1=20=E2=88=A7=20Pro-Tip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cholerab/knut/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cholerab') diff --git a/cholerab/knut/index.js b/cholerab/knut/index.js index 9c536006..b8951f1d 100755 --- a/cholerab/knut/index.js +++ b/cholerab/knut/index.js @@ -12,6 +12,16 @@ var spawn = require('child_process').spawn; var plugs = process.argv.slice(2); +if (plugs.length === 0) { + console.error('Error 1: You are made of stupid!' + + '\nPro-Tip: ' + + require('path').basename(process.argv[1]) + ' PLUG' + + ' # PLUG ∈ {' + + require('fs').readdirSync(__dirname + '/plugs').join(',') + + '}^n, n ≥ 1'); + process.exit(23); +}; + http.createServer(function (req, res) { return slurp(req, function (data) { try { -- cgit v1.2.3 From 8c521570fe1ff45c22aa1a4c7f93538841fc1665 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 28 Aug 2011 17:25:18 +0200 Subject: cholerab cnot: bail out on bad response With this commit the curl_flags environmental variable is used to override the default flags to curl (which are -fsS ATM). --- cholerab/knut/clients/cnot/index | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cholerab') diff --git a/cholerab/knut/clients/cnot/index b/cholerab/knut/clients/cnot/index index f276dd25..fcbef73e 100755 --- a/cholerab/knut/clients/cnot/index +++ b/cholerab/knut/clients/cnot/index @@ -11,7 +11,7 @@ port=42101 params="$*" -flags=-sS +flags=${curl_flags--fsS} if test "${verbose-no}" != no; then flags="${flags+$flags }-v" -- cgit v1.2.3 From 77d4efad2e89fe9357b10b1bd173fbded82468fe Mon Sep 17 00:00:00 2001 From: Momo Date: Mon, 29 Aug 2011 15:35:03 +0200 Subject: sascha, moritz -> -j --- cholerab/shirts/bestellliste | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cholerab') diff --git a/cholerab/shirts/bestellliste b/cholerab/shirts/bestellliste index f775514e..cfb28888 100644 --- a/cholerab/shirts/bestellliste +++ b/cholerab/shirts/bestellliste @@ -16,8 +16,8 @@ Jan 1 2 jj /* bezahlt an makefu */ Zitrone waere leckerer gewesen Ronny 1 M jj /* bezahlt an pfleidi */ Marc 1 L -- Lotho 1 X -- -Sascha 1 X -- -Moritz 1 M -- +Sascha 1 X -j +Moritz 1 M -j RIPE 1 X -- kh 1 L jj gute Verarbeitung, guter Gesamteindruck, passt wie angegossen miefda 1 L jj -- cgit v1.2.3