Compare commits

..

6 Commits

14 changed files with 50 additions and 2 deletions

View File

@@ -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
View 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

0
duply-backup-lenny.sh Executable file → Normal file
View File

0
kino/kino_an.sh Executable file → Normal file
View File

0
kino/kino_aus.sh Executable file → Normal file
View File

0
kino/truhe_an.sh Executable file → Normal file
View File

0
kino/truhe_aus.sh Executable file → Normal file
View File

0
mqtt/remove_retained_topic.sh Executable file → Normal file
View File

2
nummer5/hosts.conf Normal file
View File

@@ -0,0 +1,2 @@
hosts="pine01.wks pine02.wks pine03.wks pine04.wks pine05.wks adm01.wks ebin01.wks ebin02.wks"
domain="wks"

View 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
View 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

0
raspbmc-backup-fresh.sh Executable file → Normal file
View File

0
raspbmc-backup.sh Executable file → Normal file
View File

0
raspbmc-restore.sh Executable file → Normal file
View File