Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
the config files and scripts for this year
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Van der Jeugt committed Apr 29, 2014
1 parent ba5d2bc commit df06947
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boxxy/src/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
exports.BOXXY_HOSTNAME = 'live.12urenloop.be';
exports.BOXXY_HOSTNAME = 'localhost';
exports.BOXXY_PORT = 8080;
exports.BOXXY_USER = 'count-von-count';
exports.BOXXY_PASSWORD = 'tetten';
13 changes: 13 additions & 0 deletions tools/boxxy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

send() {
curl -XPUT localhost:8080/state \
-H 'Content-Type: application/json' \
-u 'count-von-count:tetten' \
-d "$1"
}

case $1 in
"freeze") send '{"frozen": true}';;
"melt") send '{"frozen": false}';;
"notify") send '{"notification": "'$2'"}';;
esac
5 changes: 5 additions & 0 deletions tools/copy_to_all_gyrids.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

for i in 1 2 3 4 5; do
scp "$1" root@gyrid$i:"'$2'"
done

5 changes: 5 additions & 0 deletions tools/do_on_all_gyrids.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

for i in 1 2 3 4 5; do
ssh root@gyrid$i "$1" &
done

11 changes: 10 additions & 1 deletion tools/heartbeat.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#!/bin/bash
### BEGIN INIT INFO
# Provides: heartbeat
# Required-Start: $local_fs $remote_fs $network $syslog bluetooth network-manager gyrid
# Required-Stop: $local_fs $remote_fs $network $syslog bluetooth network-manager gyrid
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop Gyrid Bluetooth scanner
### END INIT INFO-
#

SIHEMO="count:8002"
SIHEMO="10.1.2.100:8002"
GROUP=$(hostname)
ALIVE="30"

Expand Down

0 comments on commit df06947

Please sign in to comment.