Compare commits
9 Commits
b41a97fd0a
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1863c264f8 | |||
| 4bbdd7cb3d | |||
| a4af7c430a | |||
| df1d3a83ac | |||
| 94382ef7c7 | |||
| 31274f3825 | |||
| 27d8ad95aa | |||
| 05fb5bfa77 | |||
| 8cc8efd81b |
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?eclipse-pydev version="1.0"?><pydev_project>
|
||||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
|
||||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
|
||||
|
||||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
|
||||
|
||||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
|
||||
|
||||
</pydev_project>
|
||||
|
||||
18
GoPro/TransferCreationTime.sh
Executable file
18
GoPro/TransferCreationTime.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
#find -type f -not -iname '*\ \(*' -name \*MP4 -exec stat -c '%y %Y %n' {} \;
|
||||
|
||||
#touch -m -a -t $(date -d @1754466694 +'%Y%m%d%H%M.%S') './GX010042 (1).mp4'
|
||||
|
||||
for F in $(find -type f -not -iname '*\ \(*' -name \*MP4); do
|
||||
FStrip=$(basename -s ".MP4" -- ${F})
|
||||
FEncoded="${FStrip} (1).mp4"
|
||||
if [ -e "${FEncoded}" ]; then
|
||||
MTIME=$(stat -c '%Y' ${F})
|
||||
MDate=$(date -d @${MTIME} +'%Y%m%d%H%M.%S')
|
||||
echo "$F $MTIME $MDate '${FEncoded}' "
|
||||
touch -m -a -t ${MDate} "${FEncoded}"
|
||||
else
|
||||
echo "Not Encoded: ${F}"
|
||||
fi
|
||||
done
|
||||
12
duply-backup-lenny.sh
Executable file → Normal file
12
duply-backup-lenny.sh
Executable file → Normal file
@@ -13,12 +13,12 @@ NOTIFYCMD="su - ${XUSER} DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user
|
||||
|
||||
for I in ${DIR}/lenny*; do
|
||||
BCKP=$(basename $I)
|
||||
${NOTIFYCMD} ${BCKP} "Starting Backup..."
|
||||
#${NOTIFYCMD} ${BCKP} "Starting Backup..."
|
||||
/usr/bin/duply $BCKP ${CMD} 2&>1 >${LOGDIR}/${BCKP}.log;
|
||||
FIN=$?
|
||||
if [ $FIN -eq 0 ]; then
|
||||
${NOTIFYCMD} --icon=sync-synchronizing ${BCKP} "Backup success."
|
||||
else
|
||||
${NOTIFYCMD} -u critical --icon=sync-error ${BCKP} "Done Backup Error: ${FIN}"
|
||||
fi
|
||||
#if [ $FIN -eq 0 ]; then
|
||||
# ${NOTIFYCMD} --icon=sync-synchronizing ${BCKP} "Backup success."
|
||||
#else
|
||||
# ${NOTIFYCMD} -u critical --icon=sync-error ${BCKP} "Done Backup Error: ${FIN}"
|
||||
#fi
|
||||
done
|
||||
|
||||
@@ -3,4 +3,4 @@ PWR_LEINI=2
|
||||
PWR_TRUHE=3
|
||||
LIRC_BEAMER_AN="Beamer KEY_POWER"
|
||||
LIRC_BEAMER_AUS="Beamer KEY_POWER2"
|
||||
MQTT=mqtt.chaos
|
||||
MQTT=mqtt
|
||||
0
kino/kino_an.sh
Executable file → Normal file
0
kino/kino_an.sh
Executable file → Normal file
0
kino/kino_aus.sh
Executable file → Normal file
0
kino/kino_aus.sh
Executable file → Normal file
2
kino/truhe_an.sh
Executable file → Normal file
2
kino/truhe_an.sh
Executable file → Normal file
@@ -5,4 +5,4 @@ MP=$(dirname "$ME")
|
||||
. ${MP}/kino.conf
|
||||
|
||||
#sispmctl -o ${PWR_TRUHE} #Truhe
|
||||
mosquitto_pub -h ${MQTT} -t homie/Truhe-switch/SYSTEM/gpio12/set -m 1
|
||||
mosquitto_pub -h ${MQTT} -t truhe_switch/switch/truhe_switch_power/command -m ON
|
||||
|
||||
2
kino/truhe_aus.sh
Executable file → Normal file
2
kino/truhe_aus.sh
Executable file → Normal file
@@ -6,4 +6,4 @@ MP=$(dirname "$ME")
|
||||
|
||||
#sispmctl -f ${PWR_TRUHE} #Truhe
|
||||
|
||||
mosquitto_pub -h ${MQTT} -t homie/Truhe-switch/SYSTEM/gpio12/set -m 0
|
||||
mosquitto_pub -h ${MQTT} -t truhe_switch/switch/truhe_switch_power/command -m OFF
|
||||
|
||||
0
mqtt/remove_retained_topic.sh
Executable file → Normal file
0
mqtt/remove_retained_topic.sh
Executable file → Normal file
2
nummer5/hosts.conf
Normal file
2
nummer5/hosts.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
hosts="pine01.wks pine02.wks pine03.wks pine04.wks pine05.wks adm01.wks ebin01.wks ebin02.wks"
|
||||
domain="wks"
|
||||
12
nummer5/nummer5-host-powercycle.sh
Executable file
12
nummer5/nummer5-host-powercycle.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
. hosts.conf
|
||||
|
||||
host=$1
|
||||
hostname=$(echo ${host} | sed s/\.${domain}//)
|
||||
MOSQ="mosquitto_pub -h mqtt.wks -t switch_cloud/switch/${hostname}/command -m"
|
||||
echo "${host} turning it off"
|
||||
${MOSQ} OFF
|
||||
sleep 2
|
||||
echo "${host} turning it on"
|
||||
${MOSQ} ON
|
||||
ping -W 1 ${host}
|
||||
13
nummer5/nummer5-hosts-alive.sh
Executable file
13
nummer5/nummer5-hosts-alive.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
. hosts.conf
|
||||
for host in $hosts; do
|
||||
if ping -c 1 -W 1 "$host" >/dev/null; then
|
||||
echo "$host is alive"
|
||||
else
|
||||
echo "$host is pining for the fjords"
|
||||
fi
|
||||
done
|
||||
echo ''
|
||||
nomad server members
|
||||
echo ''
|
||||
nomad node status
|
||||
4
osmc.wks/amp_aux.sh
Executable file
4
osmc.wks/amp_aux.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
irsend -d /var/run/lirc/lircd-lirc0 SEND_ONCE Yamaha_RAV207 AMP/AUX
|
||||
|
||||
3
osmc.wks/amp_power.sh
Executable file
3
osmc.wks/amp_power.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
irsend -d /var/run/lirc/lircd-lirc0 SEND_ONCE RAV207 KEY_POWER
|
||||
4
osmc.wks/amp_tuner.sh
Executable file
4
osmc.wks/amp_tuner.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
irsend -d /var/run/lirc/lircd-lirc0 SEND_ONCE Yamaha_RAV207 AMP/TUNER_INPUT
|
||||
|
||||
4
osmc.wks/amp_vaux.sh
Executable file
4
osmc.wks/amp_vaux.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
irsend -d /var/run/lirc/lircd-lirc0 SEND_ONCE Yamaha_RAV207 AMP/V_AUX
|
||||
|
||||
6
osmc.wks/amp_vol_down.sh
Executable file
6
osmc.wks/amp_vol_down.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
irsend -d /var/run/lirc/lircd-lirc0 SEND_START Yamaha_RAV207 AMP/VOL_DOWN
|
||||
sleep 1
|
||||
irsend -d /var/run/lirc/lircd-lirc0 SEND_STOP Yamaha_RAV207 AMP/VOL_DOWN
|
||||
|
||||
6
osmc.wks/amp_vol_up.sh
Executable file
6
osmc.wks/amp_vol_up.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
irsend -d /var/run/lirc/lircd-lirc0 SEND_START Yamaha_RAV207 AMP/VOL_UP
|
||||
sleep 1
|
||||
irsend -d /var/run/lirc/lircd-lirc0 SEND_STOP Yamaha_RAV207 AMP/VOL_UP
|
||||
|
||||
0
raspbmc-backup-fresh.sh
Executable file → Normal file
0
raspbmc-backup-fresh.sh
Executable file → Normal file
0
raspbmc-backup.sh
Executable file → Normal file
0
raspbmc-backup.sh
Executable file → Normal file
0
raspbmc-restore.sh
Executable file → Normal file
0
raspbmc-restore.sh
Executable file → Normal file
Reference in New Issue
Block a user