From 6759a56648bd23cc0f013b7f87221f9f268e049e Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 00:56:37 +0200 Subject: assimilator: add git-clone-into --- Refactory/bin/git-clone-into | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 Refactory/bin/git-clone-into diff --git a/Refactory/bin/git-clone-into b/Refactory/bin/git-clone-into new file mode 100755 index 00000000..67e820e6 --- /dev/null +++ b/Refactory/bin/git-clone-into @@ -0,0 +1,48 @@ +#! /bin/sh +# +# usage: git-clone-into repository directory +# +set -euf + +tempdir() { + set -- `tempnam $1` + mkdir $1 + echo $1 +} + +## [prefix] -> tempnam +tempnam() { + until set -- $1 ${1-}`candnam` && ! test -e $2; do :; done + echo $2 +} + +candnam() { + uuidgen 2>/dev/null || date +%s%N +} + + + + tmp_remote=`candnam` + tmp_branch=`candnam` + + subdir=$2 + if test -e $subdir; then + echo 'You are made of stupid!' >&2 + exit 23 + fi + tmpdir=`tempdir /tmp/tempdir-` + #trap "test -d $tmpdir && rm -vfR $tmpdir" EXIT + trap "test -d $tmpdir && rm -fR $tmpdir" EXIT + repository="${1-$repository}" + git clone "$repository" $tmpdir + (cd $tmpdir + subdir="$subdir" git filter-branch --tree-filter ' + if ! test -d $subdir; then + mkdir -p $subdir + git ls-tree -z --name-only $GIT_COMMIT | xargs -I. --null mv . $subdir + fi + ' + git checkout -b $tmp_branch) + git remote add $tmp_remote $tmpdir + git fetch $tmp_remote + git merge $tmp_remote/$tmp_branch # TODO configurable branch -- cgit v1.2.3 From d5670d181fc8f0369fa4a56ffbabfffa280e7143 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 00:56:37 +0200 Subject: assimilator: add git-clone-into --- Refactory/bin/git-clone-into | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 Refactory/bin/git-clone-into diff --git a/Refactory/bin/git-clone-into b/Refactory/bin/git-clone-into new file mode 100755 index 00000000..67e820e6 --- /dev/null +++ b/Refactory/bin/git-clone-into @@ -0,0 +1,48 @@ +#! /bin/sh +# +# usage: git-clone-into repository directory +# +set -euf + +tempdir() { + set -- `tempnam $1` + mkdir $1 + echo $1 +} + +## [prefix] -> tempnam +tempnam() { + until set -- $1 ${1-}`candnam` && ! test -e $2; do :; done + echo $2 +} + +candnam() { + uuidgen 2>/dev/null || date +%s%N +} + + + + tmp_remote=`candnam` + tmp_branch=`candnam` + + subdir=$2 + if test -e $subdir; then + echo 'You are made of stupid!' >&2 + exit 23 + fi + tmpdir=`tempdir /tmp/tempdir-` + #trap "test -d $tmpdir && rm -vfR $tmpdir" EXIT + trap "test -d $tmpdir && rm -fR $tmpdir" EXIT + repository="${1-$repository}" + git clone "$repository" $tmpdir + (cd $tmpdir + subdir="$subdir" git filter-branch --tree-filter ' + if ! test -d $subdir; then + mkdir -p $subdir + git ls-tree -z --name-only $GIT_COMMIT | xargs -I. --null mv . $subdir + fi + ' + git checkout -b $tmp_branch) + git remote add $tmp_remote $tmpdir + git fetch $tmp_remote + git merge $tmp_remote/$tmp_branch # TODO configurable branch -- cgit v1.2.3 From 74ba8501a55a2065ea95fa56182adbfba9edb972 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 00:59:46 +0200 Subject: cholerab README: add conflicts --- cholerab/README | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cholerab/README b/cholerab/README index d6149751..7b53aeaa 100644 --- a/cholerab/README +++ b/cholerab/README @@ -61,3 +61,12 @@ - i.e. to start automatically at KREBS - the last stream should be playbacked - should be controlable by noise [see NOISE-STREAM-MODULE] + + +## merge conflicts below +view.py: contains view classes for cholerab +cholerab.py: main file + +start with : +python cholerab.py + -- cgit v1.2.3 From a8eb7d8634e7722592b5d2e02df2124a7d15e0c0 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 00:59:46 +0200 Subject: cholerab README: add conflicts --- cholerab/README | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cholerab/README b/cholerab/README index d6149751..7b53aeaa 100644 --- a/cholerab/README +++ b/cholerab/README @@ -61,3 +61,12 @@ - i.e. to start automatically at KREBS - the last stream should be playbacked - should be controlable by noise [see NOISE-STREAM-MODULE] + + +## merge conflicts below +view.py: contains view classes for cholerab +cholerab.py: main file + +start with : +python cholerab.py + -- cgit v1.2.3 From 729ecb1acee5419a0a223bec1b3170e4b65adf8f Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Aug 2011 01:27:55 +0200 Subject: Fixed the Makefile and renamed conditions.pl to conditions --- kachelmann/Makefile | 5 +++-- kachelmann/conditions | 7 +++++++ kachelmann/weather.xml | 1 - 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100755 kachelmann/conditions delete mode 100644 kachelmann/weather.xml diff --git a/kachelmann/Makefile b/kachelmann/Makefile index 277a5421..813f4dec 100644 --- a/kachelmann/Makefile +++ b/kachelmann/Makefile @@ -1,5 +1,6 @@ .PHONY: infect -INSTALL_DIR = /root/bin +INSTALL_DIR = /root/bin/ infect: mkdir -p /tmp/kachelmann/ - cp kachelmann ${INSTALL_DIR} + cp conditions ${INSTALL_DIR} + chmod +x ${INSTALL_DIR}conditions diff --git a/kachelmann/conditions b/kachelmann/conditions new file mode 100755 index 00000000..6d8b5541 --- /dev/null +++ b/kachelmann/conditions @@ -0,0 +1,7 @@ +#!/usr/bin/perl +use XML::Simple; +system("w3m -dump \"http://www.google.com/ig/api?weather=70327-stuttgart&hl=de\" > /tmp/kachelmann/weather.xml"); +my $xml = new XML::Simple; +my $data = $xml->XMLin("/tmp/kachelmann/weather.xml"); +my $sentence = "Die Wetterkondition ist: $data->{weather}->{current_conditions}->{condition}->{data}\n bei $data->{weather}->{current_conditions}->{temp_c}->{data} Grad Celsius\n"; +system("espeak \"$sentence\""); diff --git a/kachelmann/weather.xml b/kachelmann/weather.xml deleted file mode 100644 index 8a785308..00000000 --- a/kachelmann/weather.xml +++ /dev/null @@ -1 +0,0 @@ - -- cgit v1.2.3 From ac9d560478c4eeb43bd73ad53b8bca72c63de2eb Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Aug 2011 01:27:55 +0200 Subject: Fixed the Makefile and renamed conditions.pl to conditions --- kachelmann/Makefile | 5 +++-- kachelmann/conditions | 7 +++++++ kachelmann/weather.xml | 1 - 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100755 kachelmann/conditions delete mode 100644 kachelmann/weather.xml diff --git a/kachelmann/Makefile b/kachelmann/Makefile index 277a5421..813f4dec 100644 --- a/kachelmann/Makefile +++ b/kachelmann/Makefile @@ -1,5 +1,6 @@ .PHONY: infect -INSTALL_DIR = /root/bin +INSTALL_DIR = /root/bin/ infect: mkdir -p /tmp/kachelmann/ - cp kachelmann ${INSTALL_DIR} + cp conditions ${INSTALL_DIR} + chmod +x ${INSTALL_DIR}conditions diff --git a/kachelmann/conditions b/kachelmann/conditions new file mode 100755 index 00000000..6d8b5541 --- /dev/null +++ b/kachelmann/conditions @@ -0,0 +1,7 @@ +#!/usr/bin/perl +use XML::Simple; +system("w3m -dump \"http://www.google.com/ig/api?weather=70327-stuttgart&hl=de\" > /tmp/kachelmann/weather.xml"); +my $xml = new XML::Simple; +my $data = $xml->XMLin("/tmp/kachelmann/weather.xml"); +my $sentence = "Die Wetterkondition ist: $data->{weather}->{current_conditions}->{condition}->{data}\n bei $data->{weather}->{current_conditions}->{temp_c}->{data} Grad Celsius\n"; +system("espeak \"$sentence\""); diff --git a/kachelmann/weather.xml b/kachelmann/weather.xml deleted file mode 100644 index 8a785308..00000000 --- a/kachelmann/weather.xml +++ /dev/null @@ -1 +0,0 @@ - -- cgit v1.2.3 From dc3e359842dd3a7cde81435b7d20b5694d15ad41 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Aug 2011 01:31:44 +0200 Subject: Mde the Makefile to rename conditions to kachelmann in /root/bin --- kachelmann/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kachelmann/Makefile b/kachelmann/Makefile index 813f4dec..7fa3ec2d 100644 --- a/kachelmann/Makefile +++ b/kachelmann/Makefile @@ -3,4 +3,6 @@ INSTALL_DIR = /root/bin/ infect: mkdir -p /tmp/kachelmann/ cp conditions ${INSTALL_DIR} - chmod +x ${INSTALL_DIR}conditions + mv ${INSTALL_DIR}conditions ${INSTALL_DIR}kachelmann + chmod +x ${INSTALL_DIR}kachelmann + -- cgit v1.2.3 From 0f494f83a322b190593aef08a6e504c70e23baff Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Aug 2011 01:31:44 +0200 Subject: Mde the Makefile to rename conditions to kachelmann in /root/bin --- kachelmann/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kachelmann/Makefile b/kachelmann/Makefile index 813f4dec..7fa3ec2d 100644 --- a/kachelmann/Makefile +++ b/kachelmann/Makefile @@ -3,4 +3,6 @@ INSTALL_DIR = /root/bin/ infect: mkdir -p /tmp/kachelmann/ cp conditions ${INSTALL_DIR} - chmod +x ${INSTALL_DIR}conditions + mv ${INSTALL_DIR}conditions ${INSTALL_DIR}kachelmann + chmod +x ${INSTALL_DIR}kachelmann + -- cgit v1.2.3 From 8f406a437577b66093bdffe86c1ed9f37f651eb1 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Aug 2011 01:34:09 +0200 Subject: Made kachelmann speak german --- kachelmann/conditions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kachelmann/conditions b/kachelmann/conditions index 6d8b5541..9880b397 100755 --- a/kachelmann/conditions +++ b/kachelmann/conditions @@ -4,4 +4,4 @@ system("w3m -dump \"http://www.google.com/ig/api?weather=70327-stuttgart&hl=de\" my $xml = new XML::Simple; my $data = $xml->XMLin("/tmp/kachelmann/weather.xml"); my $sentence = "Die Wetterkondition ist: $data->{weather}->{current_conditions}->{condition}->{data}\n bei $data->{weather}->{current_conditions}->{temp_c}->{data} Grad Celsius\n"; -system("espeak \"$sentence\""); +system("espeak -v de \"$sentence\""); -- cgit v1.2.3 From b3a2a0f0810a19d8c2803600a3e3e01caa2f7102 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Aug 2011 01:34:09 +0200 Subject: Made kachelmann speak german --- kachelmann/conditions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kachelmann/conditions b/kachelmann/conditions index 6d8b5541..9880b397 100755 --- a/kachelmann/conditions +++ b/kachelmann/conditions @@ -4,4 +4,4 @@ system("w3m -dump \"http://www.google.com/ig/api?weather=70327-stuttgart&hl=de\" my $xml = new XML::Simple; my $data = $xml->XMLin("/tmp/kachelmann/weather.xml"); my $sentence = "Die Wetterkondition ist: $data->{weather}->{current_conditions}->{condition}->{data}\n bei $data->{weather}->{current_conditions}->{temp_c}->{data} Grad Celsius\n"; -system("espeak \"$sentence\""); +system("espeak -v de \"$sentence\""); -- cgit v1.2.3 From 41bd333aedc01c479591f90d914d0c0667d6f8ea Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Aug 2011 01:36:29 +0200 Subject: Edited the output so espeak can pronounce it --- kachelmann/conditions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kachelmann/conditions b/kachelmann/conditions index 9880b397..1a798e42 100755 --- a/kachelmann/conditions +++ b/kachelmann/conditions @@ -3,5 +3,5 @@ use XML::Simple; system("w3m -dump \"http://www.google.com/ig/api?weather=70327-stuttgart&hl=de\" > /tmp/kachelmann/weather.xml"); my $xml = new XML::Simple; my $data = $xml->XMLin("/tmp/kachelmann/weather.xml"); -my $sentence = "Die Wetterkondition ist: $data->{weather}->{current_conditions}->{condition}->{data}\n bei $data->{weather}->{current_conditions}->{temp_c}->{data} Grad Celsius\n"; +my $sentence = "Die Wetterkondition ist: $data->{weather}->{current_conditions}->{condition}->{data}\n bei $data->{weather}->{current_conditions}->{temp_c}->{data} Grad Zelsius\n"; system("espeak -v de \"$sentence\""); -- cgit v1.2.3 From cc4cce3ddbd0b028b39eefa3e463a403f82dc52e Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Aug 2011 01:36:29 +0200 Subject: Edited the output so espeak can pronounce it --- kachelmann/conditions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kachelmann/conditions b/kachelmann/conditions index 9880b397..1a798e42 100755 --- a/kachelmann/conditions +++ b/kachelmann/conditions @@ -3,5 +3,5 @@ use XML::Simple; system("w3m -dump \"http://www.google.com/ig/api?weather=70327-stuttgart&hl=de\" > /tmp/kachelmann/weather.xml"); my $xml = new XML::Simple; my $data = $xml->XMLin("/tmp/kachelmann/weather.xml"); -my $sentence = "Die Wetterkondition ist: $data->{weather}->{current_conditions}->{condition}->{data}\n bei $data->{weather}->{current_conditions}->{temp_c}->{data} Grad Celsius\n"; +my $sentence = "Die Wetterkondition ist: $data->{weather}->{current_conditions}->{condition}->{data}\n bei $data->{weather}->{current_conditions}->{temp_c}->{data} Grad Zelsius\n"; system("espeak -v de \"$sentence\""); -- cgit v1.2.3 From d88fd9f7744141c92dc320c4a37546902963fc5a Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 01:50:40 +0200 Subject: infest skel motd: use krebs-v2f --- infest/skel/etc/motd.tail | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/infest/skel/etc/motd.tail b/infest/skel/etc/motd.tail index 0e685c01..0b5dfcff 100644 --- a/infest/skel/etc/motd.tail +++ b/infest/skel/etc/motd.tail @@ -1,10 +1,14 @@ KREBS PAINLOAD (MORE COBRA) - x x x x - xx xx xx xx xx xx - xx xx xx xx xx xx - xxx x x xxx - x xxxxxxxxxxxx x - xxxxxxxxxxxxxxxx - x xxxxxxxxxxxx x - x x x x x x - x x x x x x +             +                          +                          +                     +                          +                      +                            +                +                        +              +                   +                   +                        -- cgit v1.2.3 From 84f68849df30b02d611e59033ac555b992824efe Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 01:50:40 +0200 Subject: infest skel motd: use krebs-v2f --- infest/skel/etc/motd.tail | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/infest/skel/etc/motd.tail b/infest/skel/etc/motd.tail index 0e685c01..0b5dfcff 100644 --- a/infest/skel/etc/motd.tail +++ b/infest/skel/etc/motd.tail @@ -1,10 +1,14 @@ KREBS PAINLOAD (MORE COBRA) - x x x x - xx xx xx xx xx xx - xx xx xx xx xx xx - xxx x x xxx - x xxxxxxxxxxxx x - xxxxxxxxxxxxxxxx - x xxxxxxxxxxxx x - x x x x x x - x x x x x x +             +                          +                          +                     +                          +                      +                            +                +                        +              +                   +                   +                        -- cgit v1.2.3 From 12aa7de50175af04091b2785b9d48d81994de9e5 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Aug 2011 02:05:36 +0200 Subject: beep.lol: final commit --- beep.lol | 1 - 1 file changed, 1 deletion(-) delete mode 100755 beep.lol diff --git a/beep.lol b/beep.lol deleted file mode 100755 index f9c29dba..00000000 --- a/beep.lol +++ /dev/null @@ -1 +0,0 @@ -beep -l 350 -f 392 -D 100 --new -l 350 -f 392 -D 100 --new -l 350 -f 392 -D 100 --new -l 250 -f 311.1 -D 100 --new -l 25 -f 466.2 -D 100 --new -l 350 -f 392 -D 100 --new -l 250 -f 311.1 -D 100 --new -l 25 -f 466.2 -D 100 --new -l 700 -f 392 -D 100 --new -l 350 -f 587.32 -D 100 --new -l 350 -f 587.32 -D 100 --new -l 350 -f 587.32 -D 100 --new -l 250 -f 622.26 -D 100 --new -l 25 -f 466.2 -D 100 --new -l 350 -f 369.99 -D 100 --new -l 250 -f 311.1 -D 100 --new -l 25 -f 466.2 -D 100 --new -l 700 -f 392 -D 100 --new -l 350 -f 784 -D 100 --new -l 250 -f 392 -D 100 --new -l 25 -f 392 -D 100 --new -l 350 -f 784 -D 100 --new -l 250 -f 739.98 -D 100 --new -l 25 -f 698.46 -D 100 --new -l 25 -f 659.26 -D 100 --new -l 25 -f 622.26 -D 100 --new -l 50 -f 659.26 -D 400 --new -l 25 -f 415.3 -D 200 --new -l 350 -f 554.36 -D 100 --new -l 250 -f 523.25 -D 100 --new -l 25 -f 493.88 -D 100 --new -l 25 -f 466.16 -D 100 --new -l 25 -f 440 -D 100 --new -l 50 -f 466.16 -D 400 --new -l 25 -f 311.13 -D 200 --new -l 350 -f 369.99 -D 100 --new -l 250 -f 311.13 -D 100 --new -l 25 -f 392 -D 100 --new -l 350 -f 466.16 -D 100 --new -l 250 -f 392 -D 100 --new -l 25 -f 466.16 -D 100 --new -l 700 -f 587.32 -D 100 --new -l 350 -f 784 -D 100 --new -l 250 -f 392 -D 100 --new -l 25 -f 392 -D 100 --new -l 350 -f 784 -D 100 --new -l 250 -f 739.98 -D 100 --new -l 25 -f 698.46 -D 100 --new -l 25 -f 659.26 -D 100 --new -l 25 -f 622.26 -D 100 --new -l 50 -f 659.26 -D 400 --new -l 25 -f 415.3 -D 200 --new -l 350 -f 554.36 -D 100 --new -l 250 -f 523.25 -D 100 --new -l 25 -f 493.88 -D 100 --new -l 25 -f 466.16 -D 100 --new -l 25 -f 440 -D 100 --new -l 50 -f 466.16 -D 400 --new -l 25 -f 311.13 -D 200 --new -l 350 -f 392 -D 100 --new -l 250 -f 311.13 -D 100 --new -l 25 -f 466.16 -D 100 --new -l 300 -f 392.00 -D 150 --new -l 250 -f 311.13 -D 100 --new -l 25 -f 466.16 -D 100 --new -l 700 -f 392 -- cgit v1.2.3 From 62c1ef9f90d5bd403a4e979b7e99c2793d3ffc18 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Aug 2011 02:05:36 +0200 Subject: beep.lol: final commit --- beep.lol | 1 - 1 file changed, 1 deletion(-) delete mode 100755 beep.lol diff --git a/beep.lol b/beep.lol deleted file mode 100755 index f9c29dba..00000000 --- a/beep.lol +++ /dev/null @@ -1 +0,0 @@ -beep -l 350 -f 392 -D 100 --new -l 350 -f 392 -D 100 --new -l 350 -f 392 -D 100 --new -l 250 -f 311.1 -D 100 --new -l 25 -f 466.2 -D 100 --new -l 350 -f 392 -D 100 --new -l 250 -f 311.1 -D 100 --new -l 25 -f 466.2 -D 100 --new -l 700 -f 392 -D 100 --new -l 350 -f 587.32 -D 100 --new -l 350 -f 587.32 -D 100 --new -l 350 -f 587.32 -D 100 --new -l 250 -f 622.26 -D 100 --new -l 25 -f 466.2 -D 100 --new -l 350 -f 369.99 -D 100 --new -l 250 -f 311.1 -D 100 --new -l 25 -f 466.2 -D 100 --new -l 700 -f 392 -D 100 --new -l 350 -f 784 -D 100 --new -l 250 -f 392 -D 100 --new -l 25 -f 392 -D 100 --new -l 350 -f 784 -D 100 --new -l 250 -f 739.98 -D 100 --new -l 25 -f 698.46 -D 100 --new -l 25 -f 659.26 -D 100 --new -l 25 -f 622.26 -D 100 --new -l 50 -f 659.26 -D 400 --new -l 25 -f 415.3 -D 200 --new -l 350 -f 554.36 -D 100 --new -l 250 -f 523.25 -D 100 --new -l 25 -f 493.88 -D 100 --new -l 25 -f 466.16 -D 100 --new -l 25 -f 440 -D 100 --new -l 50 -f 466.16 -D 400 --new -l 25 -f 311.13 -D 200 --new -l 350 -f 369.99 -D 100 --new -l 250 -f 311.13 -D 100 --new -l 25 -f 392 -D 100 --new -l 350 -f 466.16 -D 100 --new -l 250 -f 392 -D 100 --new -l 25 -f 466.16 -D 100 --new -l 700 -f 587.32 -D 100 --new -l 350 -f 784 -D 100 --new -l 250 -f 392 -D 100 --new -l 25 -f 392 -D 100 --new -l 350 -f 784 -D 100 --new -l 250 -f 739.98 -D 100 --new -l 25 -f 698.46 -D 100 --new -l 25 -f 659.26 -D 100 --new -l 25 -f 622.26 -D 100 --new -l 50 -f 659.26 -D 400 --new -l 25 -f 415.3 -D 200 --new -l 350 -f 554.36 -D 100 --new -l 250 -f 523.25 -D 100 --new -l 25 -f 493.88 -D 100 --new -l 25 -f 466.16 -D 100 --new -l 25 -f 440 -D 100 --new -l 50 -f 466.16 -D 400 --new -l 25 -f 311.13 -D 200 --new -l 350 -f 392 -D 100 --new -l 250 -f 311.13 -D 100 --new -l 25 -f 466.16 -D 100 --new -l 300 -f 392.00 -D 150 --new -l 250 -f 311.13 -D 100 --new -l 25 -f 466.16 -D 100 --new -l 700 -f 392 -- cgit v1.2.3 From 27dcf84d4d08ffe45a5ca10ccbfa25607e48e79d Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:31:31 +0200 Subject: git-eternal-move: add to wrong location --- Refactory/bin/git-eternal-move | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 Refactory/bin/git-eternal-move diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move new file mode 100755 index 00000000..075748fd --- /dev/null +++ b/Refactory/bin/git-eternal-move @@ -0,0 +1,11 @@ +#! /bin/sh +# +# git-eternal-move FROM TO +# +set -euf +git filter-branch --tree-filter " + set -euf + if test -e '$1'; then + mkdir -p '`dirname "$2"`' + mv '$1' '$2' + fi" -- cgit v1.2.3 From 1cb2d0b3ee4c629b3f3d25dd50c44667a73e14ed Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:31:31 +0200 Subject: git-eternal-move: add to wrong location --- Refactory/bin/git-eternal-move | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 Refactory/bin/git-eternal-move diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move new file mode 100755 index 00000000..075748fd --- /dev/null +++ b/Refactory/bin/git-eternal-move @@ -0,0 +1,11 @@ +#! /bin/sh +# +# git-eternal-move FROM TO +# +set -euf +git filter-branch --tree-filter " + set -euf + if test -e '$1'; then + mkdir -p '`dirname "$2"`' + mv '$1' '$2' + fi" -- cgit v1.2.3 From 4158e76aa4c439cabf5bc779959f52346f2186ce Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:31:31 +0200 Subject: git-eternal-move: add to wrong location --- Refactory/bin/git-eternal-move | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 Refactory/bin/git-eternal-move diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move new file mode 100755 index 00000000..075748fd --- /dev/null +++ b/Refactory/bin/git-eternal-move @@ -0,0 +1,11 @@ +#! /bin/sh +# +# git-eternal-move FROM TO +# +set -euf +git filter-branch --tree-filter " + set -euf + if test -e '$1'; then + mkdir -p '`dirname "$2"`' + mv '$1' '$2' + fi" -- cgit v1.2.3 From 78af5630b579a78bf9689cd315e24dc4b8374601 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:31:31 +0200 Subject: git-eternal-move: add to wrong location --- Refactory/bin/git-eternal-move | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 Refactory/bin/git-eternal-move diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move new file mode 100755 index 00000000..075748fd --- /dev/null +++ b/Refactory/bin/git-eternal-move @@ -0,0 +1,11 @@ +#! /bin/sh +# +# git-eternal-move FROM TO +# +set -euf +git filter-branch --tree-filter " + set -euf + if test -e '$1'; then + mkdir -p '`dirname "$2"`' + mv '$1' '$2' + fi" -- cgit v1.2.3 From 2e26536f8ab7c89730c46b0de864348672014b53 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:37:54 +0200 Subject: git-eternal-move: check $# --- Refactory/bin/git-eternal-move | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move index 075748fd..bcf79501 100755 --- a/Refactory/bin/git-eternal-move +++ b/Refactory/bin/git-eternal-move @@ -3,9 +3,12 @@ # git-eternal-move FROM TO # set -euf -git filter-branch --tree-filter " +if test $# -ne 2; then + echo 'Error 1: You are made of stupid!' >&2 + exit 23 +fi +exec git filter-branch --tree-filter " set -euf if test -e '$1'; then - mkdir -p '`dirname "$2"`' mv '$1' '$2' fi" -- cgit v1.2.3 From e339a3b8d9a253c8ee077238263a41742ee2fd4f Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:37:54 +0200 Subject: git-eternal-move: check $# --- Refactory/bin/git-eternal-move | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move index 075748fd..bcf79501 100755 --- a/Refactory/bin/git-eternal-move +++ b/Refactory/bin/git-eternal-move @@ -3,9 +3,12 @@ # git-eternal-move FROM TO # set -euf -git filter-branch --tree-filter " +if test $# -ne 2; then + echo 'Error 1: You are made of stupid!' >&2 + exit 23 +fi +exec git filter-branch --tree-filter " set -euf if test -e '$1'; then - mkdir -p '`dirname "$2"`' mv '$1' '$2' fi" -- cgit v1.2.3 From 218b5cffc5f630504ca08fd301042ab9ef39f4b1 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:37:54 +0200 Subject: git-eternal-move: check $# --- Refactory/bin/git-eternal-move | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move index 075748fd..bcf79501 100755 --- a/Refactory/bin/git-eternal-move +++ b/Refactory/bin/git-eternal-move @@ -3,9 +3,12 @@ # git-eternal-move FROM TO # set -euf -git filter-branch --tree-filter " +if test $# -ne 2; then + echo 'Error 1: You are made of stupid!' >&2 + exit 23 +fi +exec git filter-branch --tree-filter " set -euf if test -e '$1'; then - mkdir -p '`dirname "$2"`' mv '$1' '$2' fi" -- cgit v1.2.3 From 79a8357195f52b34de6cf6a1930cf263bca7d95c Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:37:54 +0200 Subject: git-eternal-move: check $# --- Refactory/bin/git-eternal-move | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move index 075748fd..bcf79501 100755 --- a/Refactory/bin/git-eternal-move +++ b/Refactory/bin/git-eternal-move @@ -3,9 +3,12 @@ # git-eternal-move FROM TO # set -euf -git filter-branch --tree-filter " +if test $# -ne 2; then + echo 'Error 1: You are made of stupid!' >&2 + exit 23 +fi +exec git filter-branch --tree-filter " set -euf if test -e '$1'; then - mkdir -p '`dirname "$2"`' mv '$1' '$2' fi" -- cgit v1.2.3 From 0f84d7e8f10aaf9a5f1797f82a844f7b4cdfb055 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:38:50 +0200 Subject: git-eternal-move: $2 is interpreted as dir --- Refactory/bin/git-eternal-move | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move index bcf79501..50361e7b 100755 --- a/Refactory/bin/git-eternal-move +++ b/Refactory/bin/git-eternal-move @@ -1,6 +1,6 @@ #! /bin/sh # -# git-eternal-move FROM TO +# git-eternal-move FROM TO-DIRECTORY # set -euf if test $# -ne 2; then @@ -10,5 +10,6 @@ fi exec git filter-branch --tree-filter " set -euf if test -e '$1'; then + mkdir -p '$2' mv '$1' '$2' fi" -- cgit v1.2.3 From 40b63a2c69fac86dc68b6957ff4f2ab7a7836434 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:38:50 +0200 Subject: git-eternal-move: $2 is interpreted as dir --- Refactory/bin/git-eternal-move | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move index bcf79501..50361e7b 100755 --- a/Refactory/bin/git-eternal-move +++ b/Refactory/bin/git-eternal-move @@ -1,6 +1,6 @@ #! /bin/sh # -# git-eternal-move FROM TO +# git-eternal-move FROM TO-DIRECTORY # set -euf if test $# -ne 2; then @@ -10,5 +10,6 @@ fi exec git filter-branch --tree-filter " set -euf if test -e '$1'; then + mkdir -p '$2' mv '$1' '$2' fi" -- cgit v1.2.3 From 9ec87595db9bd95350871ecf51e5c799da643d0b Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:38:50 +0200 Subject: git-eternal-move: $2 is interpreted as dir --- Refactory/bin/git-eternal-move | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move index bcf79501..50361e7b 100755 --- a/Refactory/bin/git-eternal-move +++ b/Refactory/bin/git-eternal-move @@ -1,6 +1,6 @@ #! /bin/sh # -# git-eternal-move FROM TO +# git-eternal-move FROM TO-DIRECTORY # set -euf if test $# -ne 2; then @@ -10,5 +10,6 @@ fi exec git filter-branch --tree-filter " set -euf if test -e '$1'; then + mkdir -p '$2' mv '$1' '$2' fi" -- cgit v1.2.3 From edfab3865f6da40724d14b1e46929abc049fd323 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 02:38:50 +0200 Subject: git-eternal-move: $2 is interpreted as dir --- Refactory/bin/git-eternal-move | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Refactory/bin/git-eternal-move b/Refactory/bin/git-eternal-move index bcf79501..50361e7b 100755 --- a/Refactory/bin/git-eternal-move +++ b/Refactory/bin/git-eternal-move @@ -1,6 +1,6 @@ #! /bin/sh # -# git-eternal-move FROM TO +# git-eternal-move FROM TO-DIRECTORY # set -euf if test $# -ne 2; then @@ -10,5 +10,6 @@ fi exec git filter-branch --tree-filter " set -euf if test -e '$1'; then + mkdir -p '$2' mv '$1' '$2' fi" -- cgit v1.2.3 From e2cc01764dfae0c8b27c8e7c7c75a87f7e24a8e9 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 03:00:03 +0200 Subject: assimilator: and it's gone --- assimilator/bin/git-clone-into | 48 ------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100755 assimilator/bin/git-clone-into diff --git a/assimilator/bin/git-clone-into b/assimilator/bin/git-clone-into deleted file mode 100755 index 67e820e6..00000000 --- a/assimilator/bin/git-clone-into +++ /dev/null @@ -1,48 +0,0 @@ -#! /bin/sh -# -# usage: git-clone-into repository directory -# -set -euf - -tempdir() { - set -- `tempnam $1` - mkdir $1 - echo $1 -} - -## [prefix] -> tempnam -tempnam() { - until set -- $1 ${1-}`candnam` && ! test -e $2; do :; done - echo $2 -} - -candnam() { - uuidgen 2>/dev/null || date +%s%N -} - - - - tmp_remote=`candnam` - tmp_branch=`candnam` - - subdir=$2 - if test -e $subdir; then - echo 'You are made of stupid!' >&2 - exit 23 - fi - tmpdir=`tempdir /tmp/tempdir-` - #trap "test -d $tmpdir && rm -vfR $tmpdir" EXIT - trap "test -d $tmpdir && rm -fR $tmpdir" EXIT - repository="${1-$repository}" - git clone "$repository" $tmpdir - (cd $tmpdir - subdir="$subdir" git filter-branch --tree-filter ' - if ! test -d $subdir; then - mkdir -p $subdir - git ls-tree -z --name-only $GIT_COMMIT | xargs -I. --null mv . $subdir - fi - ' - git checkout -b $tmp_branch) - git remote add $tmp_remote $tmpdir - git fetch $tmp_remote - git merge $tmp_remote/$tmp_branch # TODO configurable branch -- cgit v1.2.3 From 667ab0d85b4214f3298e998bffe79bc1a32d50ca Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 03:00:03 +0200 Subject: assimilator: and it's gone --- assimilator/bin/git-clone-into | 48 ------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100755 assimilator/bin/git-clone-into diff --git a/assimilator/bin/git-clone-into b/assimilator/bin/git-clone-into deleted file mode 100755 index 67e820e6..00000000 --- a/assimilator/bin/git-clone-into +++ /dev/null @@ -1,48 +0,0 @@ -#! /bin/sh -# -# usage: git-clone-into repository directory -# -set -euf - -tempdir() { - set -- `tempnam $1` - mkdir $1 - echo $1 -} - -## [prefix] -> tempnam -tempnam() { - until set -- $1 ${1-}`candnam` && ! test -e $2; do :; done - echo $2 -} - -candnam() { - uuidgen 2>/dev/null || date +%s%N -} - - - - tmp_remote=`candnam` - tmp_branch=`candnam` - - subdir=$2 - if test -e $subdir; then - echo 'You are made of stupid!' >&2 - exit 23 - fi - tmpdir=`tempdir /tmp/tempdir-` - #trap "test -d $tmpdir && rm -vfR $tmpdir" EXIT - trap "test -d $tmpdir && rm -fR $tmpdir" EXIT - repository="${1-$repository}" - git clone "$repository" $tmpdir - (cd $tmpdir - subdir="$subdir" git filter-branch --tree-filter ' - if ! test -d $subdir; then - mkdir -p $subdir - git ls-tree -z --name-only $GIT_COMMIT | xargs -I. --null mv . $subdir - fi - ' - git checkout -b $tmp_branch) - git remote add $tmp_remote $tmpdir - git fetch $tmp_remote - git merge $tmp_remote/$tmp_branch # TODO configurable branch -- cgit v1.2.3 From d0ba20271209f7bb80cec787f9d22b22844ff696 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 03:09:45 +0200 Subject: ${btc-stuff} -> btc/ --- btcguild/index.js | 20 -------- mining/CONFIGURE | 8 --- mining/Makefile | 20 -------- mining/README | 9 ---- mining/TODO | 2 - mining/bin/archlinux-cruise-control | 70 --------------------------- mining/bin/ati_temper | 5 -- mining/bin/cleanup_tmp | 4 -- mining/bin/ensure-router | 36 -------------- mining/bin/ensure-wlan0 | 41 ---------------- mining/poll_btcguild | 2 - mining/user/.config/autostart/startup.desktop | 6 --- mining/user/mining.ovdr | 16 ------ mining/user/startup.sh | 13 ----- mtgox/mtgox.getDepth | 3 -- mtgox/mtgox.getTrades | 3 -- mtgox/mtgox.ticker | 4 -- 17 files changed, 262 deletions(-) delete mode 100644 btcguild/index.js delete mode 100644 mining/CONFIGURE delete mode 100644 mining/Makefile delete mode 100644 mining/README delete mode 100644 mining/TODO delete mode 100755 mining/bin/archlinux-cruise-control delete mode 100755 mining/bin/ati_temper delete mode 100755 mining/bin/cleanup_tmp delete mode 100755 mining/bin/ensure-router delete mode 100755 mining/bin/ensure-wlan0 delete mode 100644 mining/poll_btcguild delete mode 100644 mining/user/.config/autostart/startup.desktop delete mode 100644 mining/user/mining.ovdr delete mode 100755 mining/user/startup.sh delete mode 100755 mtgox/mtgox.getDepth delete mode 100755 mtgox/mtgox.getTrades delete mode 100755 mtgox/mtgox.ticker diff --git a/btcguild/index.js b/btcguild/index.js deleted file mode 100644 index 1f33db06..00000000 --- a/btcguild/index.js +++ /dev/null @@ -1,20 +0,0 @@ -api_key = process.env.api_key; - -var options = { - host: 'www.btcguild.com', - port: 80, - path: '/api.php?api_key=' + api_key -}; - -http = require('http'); -http.get(options, function(res) { - var data = ''; - res.on('data', function (chunk) { - data += chunk; - }); - res.on('end', function () { - console.log(JSON.parse(data)); - }); -}).on('error', function(e) { - console.error('Error: ' + e.message); -}); diff --git a/mining/CONFIGURE b/mining/CONFIGURE deleted file mode 100644 index 299cbd53..00000000 --- a/mining/CONFIGURE +++ /dev/null @@ -1,8 +0,0 @@ -How to Configure -=============== - -1. change the mining-url in ~/startup.sh -2. in KDE - 'AMDOverdriveCtrl - configure profile -3. in KDE-Autostart - activate the startup script -2. sudo /etc/init.d/gdm restart - diff --git a/mining/Makefile b/mining/Makefile deleted file mode 100644 index 8701920f..00000000 --- a/mining/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -.PHONY: all format install configure -select-target: - @echo "You are made of stupid!" - echo "look here" - @cat Makefile -format: - cat README -fix-linucCoin: configure - apt-get install --yes lm-sensors tmux - echo '#!/bin/bash' > /usr/bin/ati_license - echo '#!/bin/sh' > /etc/init.d/live-boot - echo 'wall "going down"' >> /etc/init.d/live-boot - chmod 755 /etc/init.d/live-boot - echo 'sudo tar xvf /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz -C /' >> /usr/bin/ati_license - cp -r user /home -configure: - yes '' | sensors-detect - @cat CONFIGURE -archlinux: - bin/archlinux-cruise-control diff --git a/mining/README b/mining/README deleted file mode 100644 index ad8c3468..00000000 --- a/mining/README +++ /dev/null @@ -1,9 +0,0 @@ -What to do: -format the usb-stick: -Device Boot Start End Blocks Id System -/dev/sda1 * 1 254 976345 c W95 FAT32 (LBA) -/dev/sda2 255 1017 2932972 83 Linux - -1. install coinlinux live system on sda1. -2. mkfs.ext3 /dev/sda2 -L live-rw -3. install grub on /dev/sda diff --git a/mining/TODO b/mining/TODO deleted file mode 100644 index bafaa72a..00000000 --- a/mining/TODO +++ /dev/null @@ -1,2 +0,0 @@ -- fix the sed script in "make archlinux" to replace only the first occurrence -- test the amdoverdrive stuff from the home dir (user) diff --git a/mining/bin/archlinux-cruise-control b/mining/bin/archlinux-cruise-control deleted file mode 100755 index de5a0fa4..00000000 --- a/mining/bin/archlinux-cruise-control +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash -set -euf -export EDITOR=vim -echo "!! ARCHLINUX Cruise Control Mining installer !!" -echo "** adding main network profile" -cp /etc/network.d/examples/ethernet-dhcp /etc/network.d/main -echo 'POST_UP="sed -i \"1i nameserver 8.8.8.8\" /etc/resolv.conf"' >> /etc/network.d/main -echo "** adding worker account" -grep -q worker /etc/passwd || adduser worker -gpasswd -a worker wheel -gpasswd -a worker tty -gpasswd -a worker audio -gpasswd -a worker video -gpasswd -a worker network -gpasswd -a worker power - -echo "** adding archlinuxfr to pacman.conf" -grep -q archlinuxfr /etc/pacman.conf || echo "[archlinuxfr]" >> /etc/pacman.conf && echo "Server = http://repo.archlinux.fr/x86_64" >> /etc/pacman.conf -echo "** installing all the required parts" -pacman --needed --noconfirm -Syu rsync git openssh yajl sudo tmux lm_sensors vim yaourt kernel26-headers beep -echo "** doing some tweaks" -rm /usr/bin/python -f -ln -s /usr/bin/python2 /usr/bin/python -echo "syntax on" > /home/worker/.vimrc -echo "syntax on" > /root/.vimrc -echo "** installing tinc" -[ "`yaourt -Q tinc`" ] || yaourt -S --noconfirm tinc -sed -i -e 's/.*\%wheel.*/%wheel ALL=(ALL) NOPASSWD: ALL/1' /etc/sudoers -echo "** Installing ATI drivers" -[ "`yaourt -Q catalyst-utils`" ] || yaourt -S --noconfirm catalyst-utils -[ "`yaourt -Q catalyst-hook`" ] || yaourt -S --noconfirm catalyst-hook -[ "`yaourt -Q amdstream`" ] || yaourt -S --noconfirm amdstream -echo "** installing X" -pacman --needed -S --noconfirm xorg-server xorg-apps xorg-appres xorg-xinit xautolock xlockmore xorg-fonts xorg-xhost xorg-xauth xterm rxvt-unicode fluxbox slim -echo "** editing slim configuration" -sed -i 's/.*default_user.*/default_user worker/' /etc/slim.conf -sed -i 's/.*auto_login.*/auto_login yes/' /etc/slim.conf -echo "** Installing mining tools and overclocking stuff" -[ "`yaourt -Q phoenix-miner-svn`" ] || yaourt -S --noconfirm phoenix-miner-svn -echo "!! warning, you might need to adjust the version number of AMDOverdriveCTRL !!" -[ "`yaourt -Q amdoverdrivectrl`" ] || yaourt -S amdoverdrivectrl -echo "** copying bin folder" -cp -r $(readlink -f `dirname $0`)/ /home/worker -echo "** creating new .Xauthority for worker" -sudo -u worker /home/worker/bin/newkey.sh -mkdir -p /home/worker/.fluxbox -cp /krebs/mining/user/startup.sh /home/worker/startup.sh -chmod a+x /home/worker/startup.sh -cp /krebs/mining/user/startup.sh /home/worker/.fluxbox/startup -chmod a+x /home/worker/.fluxbox/startup -cp /krebs/mining/user/mining.ovdr /home/worker/ -chown -R worker:users /home/worker -echo "configuring X" -echo "!! ACTION REQUIRED, write down the first number of your ATI Graphics Adapter." -echo "!! i will open /etc/X11/xorg.conf for you, change the BusID of every Device to the numbers you see here" -echo "!! press enter to continue" -lspci|grep VGA -read -aticonfig --initial=dual-head -vim /etc/X11/xorg.conf -echo "** creating xinitrc and start x" -echo 'setxkbmap -option terminate:ctrl_alt_bksp' > /home/worker/.xinitrc -echo 'xautolock -corners +-+- -locker "xlock -mode blank"&' >> /home/worker/.xinitrc -echo '/home/worker/startup.sh &' >> /home/worker/.xinitrc -echo 'xterm &' >> /home/worker/.xinitrc -echo 'exec fluxbox' >> /home/worker/.xinitrc -echo '!! start x with `xinit `' -echo 'add "x:5:respawn:/usr/bin/slim >/dev/null 2>&1" to /etc/inittab to start slim" - - diff --git a/mining/bin/ati_temper b/mining/bin/ati_temper deleted file mode 100755 index 283a6024..00000000 --- a/mining/bin/ati_temper +++ /dev/null @@ -1,5 +0,0 @@ -#displays: CARD1TEMP CARD2TEMP CPUTEMP OUTSIDE -echo -n "`DISPLAY=:0 aticonfig --adapter=1 --od-gettemperature | grep Temperature | sed -n 's/.*Temperature - \([0-9.]*\) C/\1/;p'` " -echo -n "`DISPLAY=:0 aticonfig --adapter=2 --od-gettemperature | grep Temperature | sed -n 's/.*Temperature - \([0-9.]*\) C/\1/;p'` " -echo -n "`sensors | grep temp1 | sed -e 's/temp1: *+\([0-9.]*\).*/\1/'` " -echo "`temper`" diff --git a/mining/bin/cleanup_tmp b/mining/bin/cleanup_tmp deleted file mode 100755 index e1395b19..00000000 --- a/mining/bin/cleanup_tmp +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/sh -ls -lAtr /tmp/ | sed -rn ' - /\.so$/{$!{s/.* ([A-Za-z0-9]+\.so)$/rm -v \/tmp\/\1/p}} -' | sudo sh diff --git a/mining/bin/ensure-router b/mining/bin/ensure-router deleted file mode 100755 index 5eedabc9..00000000 --- a/mining/bin/ensure-router +++ /dev/null @@ -1,36 +0,0 @@ -#! /bin/sh - -if test "${nosudo-false}" != true -a `id -u` != 0; then - echo "we're going sudo..." >&2 - exec sudo "$0" "$@" - exit 23 # go to hell -fi - -if=eth2 - -rc() { - for x in /etc/init.d/$1 /etc/rc.d/$1; do - if test -x $x; then - $x restart - break - fi - done -} - -if ! ifconfig $if | grep -q 'inet addr'; then - beep -l 50 -f 2500; ifconfig $if 0.0.0.0 down || : - beep -l 50 -f 2500; ifconfig $if 23.0.0.1/8 up || : - beep -l 50 -f 2500; rc dnsmasq restart - beep -l 50 -f 2500; iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE - beep -l 50 -f 2500; iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE - if ifconfig $if | grep -q 'inet addr'; then - beep -l 50 -f 2500 -n -l 100 -f 3000 - else - beep -l 50 -f 2500 -n -l 100 -f 1000 - fi -else - case "${1-}" in - (--quiet) : ;; - (*) beep -l 50 -f 2500 -n -l 100 -f 2500 ;; - esac -fi diff --git a/mining/bin/ensure-wlan0 b/mining/bin/ensure-wlan0 deleted file mode 100755 index fa92c4f5..00000000 --- a/mining/bin/ensure-wlan0 +++ /dev/null @@ -1,41 +0,0 @@ -#! /bin/sh - -if test "${nosudo-false}" != true -a `id -u` != 0; then - echo "we're going sudo..." >&2 - exec sudo -E "$0" "$@" - exit 23 # go to hell -fi - -has_internet() { - curl -sS google.com >/dev/null -} - -if test "${force-false}" = true || ! has_internet; then - - ## get rid of the fuckers - for fucker in NetworkManager nm-applet; do - pkill -9 $fucker - (IFS=:; for dir in $PATH; do rm -vf $dir/$fucker; done) - done - - beep -l 50 -f 2000; pkill wpa - beep -l 50 -f 2000; rm -vf /var/run/wpa_supplicant/* - beep -l 50 -f 2000; wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf & - while ! wpa_cli status | grep -q wpa_state=COMPLETED; do - beep -l 50 -f 2000 -D 50 -n -l 50 -f 2000 - sleep 1 - done - beep -l 50 -f 2000; dhcpcd -x wlan0 - beep -l 50 -f 2000; dhcpcd wlan0 - #echo nameserver 8.8.8.8 >/etc/resolv.conf - if has_internet; then - beep -l 50 -f 2000 -n -l 100 -f 3000 - else - beep -l 50 -f 2000 -n -l 100 -f 1000 - fi -else - case "${1-}" in - (--quiet) : ;; - (*) beep -l 50 -f 2000 -n -l 100 -f 2000 ;; - esac -fi diff --git a/mining/poll_btcguild b/mining/poll_btcguild deleted file mode 100644 index 92a02657..00000000 --- a/mining/poll_btcguild +++ /dev/null @@ -1,2 +0,0 @@ -API_KEY= -curl http://www.btcguild.com/api.php\?api_key\=${API_KEY} | python -mjson.tool diff --git a/mining/user/.config/autostart/startup.desktop b/mining/user/.config/autostart/startup.desktop deleted file mode 100644 index 67c35ef8..00000000 --- a/mining/user/.config/autostart/startup.desktop +++ /dev/null @@ -1,6 +0,0 @@ -[Desktop Entry] -Name=LXDE Autostart -Exec=/home/user/startup.sh -Terminal=true -Type=Application -Categories=Configuration diff --git a/mining/user/mining.ovdr b/mining/user/mining.ovdr deleted file mode 100644 index d6cf6fec..00000000 --- a/mining/user/mining.ovdr +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/mining/user/startup.sh b/mining/user/startup.sh deleted file mode 100755 index 6274a892..00000000 --- a/mining/user/startup.sh +++ /dev/null @@ -1,13 +0,0 @@ -sudo pkill tmux -sleep 5 -source ~/.profile -export DISPLAY=:0 -export URL="${URL-http://txgen_chinaman:lolwut@uk.btcguild.com:8332}" -#export URL="http://txgen:qJrXefWX@bitcoinpool.com:8334" -tmux start-server -tmux new-session -d -s mining -n mining -tmux new-window -t mining:1 'cd ~;AMDOverdriveCtrl -i 0 mining.ovdr' -tmux new-window -t mining:2 'cd ~;AMDOverdriveCtrl -i 3 mining.ovdr' -sleep 5 -tmux new-window -t mining:3 "cd /usr/src/phoenix-miner/; while sleep 1; do sudo ./phoenix.py -u $URL -k phatk DEVICE=0 VECTORS BFI_INT WORKSIZE=256 AGGRESSION=12 FASTLOOPS=false;done" -tmux new-window -t mining:4 "cd /usr/src/phoenix-miner/; while sleep 1; do sudo ./phoenix.py -u $URL -k phatk DEVICE=1 VECTORS BFI_INT WORKSIZE=256 AGGRESSION=12 FASTLOOPS=false;done" diff --git a/mtgox/mtgox.getDepth b/mtgox/mtgox.getDepth deleted file mode 100755 index 9a607979..00000000 --- a/mtgox/mtgox.getDepth +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/sh -# get mtgox market depth -$ curl -ksS https://mtgox.com/code/data/getDepth.php diff --git a/mtgox/mtgox.getTrades b/mtgox/mtgox.getTrades deleted file mode 100755 index 73e5a68d..00000000 --- a/mtgox/mtgox.getTrades +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/sh -# get mtgox last trades -$ curl -ksS https://mtgox.com/code/data/getTrades.phl diff --git a/mtgox/mtgox.ticker b/mtgox/mtgox.ticker deleted file mode 100755 index b24dfb35..00000000 --- a/mtgox/mtgox.ticker +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/sh -# get mtgox ticker data -set -euf -curl -ksS https://mtgox.com/code/data/ticker.php -- cgit v1.2.3 From 2b9904997b3d45732bd0560f13c2bf2b78962ece Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 03:30:20 +0200 Subject: gitignore a.out --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 0d20b648..6daa49cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +a.out *.pyc -- cgit v1.2.3 From 352ab13b308df24c70b4548c764397a8c67a1fd7 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 6 Aug 2011 03:35:50 +0200 Subject: COPYING: import the WTFPL version 2 --- COPYING | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 COPYING diff --git a/COPYING b/COPYING new file mode 100644 index 00000000..5a8e3325 --- /dev/null +++ b/COPYING @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + -- cgit v1.2.3