summaryrefslogtreecommitdiffstats
path: root/Cancer/assets/bin
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-12-30 14:34:38 +0100
committermakefu <root@pigstarter.de>2013-12-30 14:34:38 +0100
commit08aa5e406a1f7b39182e79ea4eb7fabf7d61eaa3 (patch)
tree2db1a54f336167cc3cc3d5f74c77d029fe7e7470 /Cancer/assets/bin
parent133e49566c74f1d21c28536ed31d1514725ed49b (diff)
//Cancer -> //
because that is what painload is all about
Diffstat (limited to 'Cancer/assets/bin')
-rwxr-xr-xCancer/assets/bin/asq2
-rwxr-xr-xCancer/assets/bin/ass24
-rwxr-xr-xCancer/assets/bin/check-truth11
-rwxr-xr-xCancer/assets/bin/fast20
-rwxr-xr-xCancer/assets/bin/truth2json37
5 files changed, 0 insertions, 94 deletions
diff --git a/Cancer/assets/bin/asq b/Cancer/assets/bin/asq
deleted file mode 100755
index 0204e05b..00000000
--- a/Cancer/assets/bin/asq
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/something
-# placeholder to asq the truth for facts
diff --git a/Cancer/assets/bin/ass b/Cancer/assets/bin/ass
deleted file mode 100755
index 5a4dade4..00000000
--- a/Cancer/assets/bin/ass
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-set -euf
-
-HERE=$(dirname $(readlink -f $0))
-DB="$HERE/../../db"
-JOURNAL="$DB/truth"
-(cd $DB && git pull >/dev/null && echo "pulled new version")
-
-METHOD="$1"; shift
-
-case $METHOD in
-"create")
- echo "`date --utc --rfc-3339=ns` create $1" | $HERE/check-truth | tee -a $JOURNAL
-;;
-"set")
- echo "`date --utc --rfc-3339=ns` set $1 $2 $3" | $HERE/check-truth | tee -a $JOURNAL
-;;
-*)
- echo "you are made of stupid!"
- exit 23
-;;
-esac
-(cd $DB && git commit -a -m bump >/dev/null && git push 1>&2 2>/dev/null && echo "updates pushed")&
diff --git a/Cancer/assets/bin/check-truth b/Cancer/assets/bin/check-truth
deleted file mode 100755
index 064a7d97..00000000
--- a/Cancer/assets/bin/check-truth
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-set -euf
-HERE=$(dirname $(readlink -f $0))
-DB="$HERE/../../db/truth"
-read LINE
-if (cat $DB;echo $LINE) | $HERE/truth2json - 1>/dev/null ;then
- echo "success" 1>&2
- echo "$LINE"
-else
- echo "you fail" 1>&2
-fi
diff --git a/Cancer/assets/bin/fast b/Cancer/assets/bin/fast
deleted file mode 100755
index 41725d0b..00000000
--- a/Cancer/assets/bin/fast
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-set -xeuf
-cd $(dirname $(readlink -f $0))
-
-if [ "$1" == "c" ];then
- ./ass create "$2" && export ASS_CREATED="$2"
- for i in `env | grep -v '^ASS_CREATED=' | grep "^ASS" | cut -d '=' -f 1`;do
- e=`echo $i | cut -d '_' -f 2 | tr '[A-Z]' '[a-z]'`
- eval con=\$$i
- $0 s "$e" "$con"
- done
-else if [ "$1" == "s" ]
-then
- ./ass set "${ASS_CREATED}" "${2}" "${3}"
- else
- echo "you are made of stupid!"
- cat $0
- exit 23
- fi
-fi
diff --git a/Cancer/assets/bin/truth2json b/Cancer/assets/bin/truth2json
deleted file mode 100755
index f85445b4..00000000
--- a/Cancer/assets/bin/truth2json
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/python
-
-import sys
-
-try:
- db=sys.argv[1]
-except:
- db="../../db/truth"
-
-ret = {}
-
-
-if db is "-":
- sys.stderr.write("Using stdin\n")
- f = sys.stdin
-else:
- sys.stderr.write("Using journal '%s'\n" % db)
- f = open(db)
-
-for line in f:
- lsplit = line.split()
- date = ' '.join(lsplit[0:2])
- cmd = lsplit[2]
- target = lsplit[3]
- if cmd == "create":
- assert target not in ret, "Target '%s' already created!" %target
- ret[target] = {}
- elif cmd == "set":
- key = lsplit[4]
- value = ' '.join(lsplit[5:])
- assert target in ret, "target '%s' not set yet!" % target
- ret[target][key] = value
- else:
- raise AssertionError,"unknown command '%s'!"
-
-import json
-print json.dumps(ret,sort_keys=True,indent=4)