This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "f5409b74bf753a05", | |
"type": "tab", | |
"label": "Tibber", | |
"disabled": false, | |
"info": "", | |
"env": [] | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo df -h before run | |
df -h | |
# Remove old versions of snap no longer used | |
set -eu | |
snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
#echo "$snapname" "$revision" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
#echo "$snapname" "$revision" | |
snap remove "$snapname" --revision="$revision" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#"password" should be replaced with your password | |
#"database1" and "database2" should be replaced with the names of your databases. | |
TIMESTAMP=$(date +%Y-%m-%d_%H%M%S) | |
mysqldump -u root -ppassword database1 | gzip > database1_$TIMESTAMP.dump.sql.gz | |
mysqldump -u root -ppassword database2 | gzip > database2_$TIMESTAMP.dump.sql.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
inputPeriod=$1 | |
runCommand=$2 | |
RUN_TIME=60 | |
RUN_TIME_LEFT=1 | |
error="no" | |
SECONDS=0 | |
if [ 'x'"$runCommand" != 'x' ] |