this script has been moved to its own github repo and can now be found on https://github.com/koter84/HomeAssistant_Blueprints_Update/
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 | |
links=( | |
"http://mirror.nl.leaseweb.net/speedtest/1000mb.bin" | |
"http://download.xs4all.nl/test/1GB.bin" | |
"http://ftp.snt.utwente.nl/pub/test/1000M" | |
"http://www.colocenter.nl/speedtest/1000mb.bin" | |
"http://speed.transip.nl/1000mb.bin" | |
"http://mirror.widexs.nl/ftp/pub/speed/1000mb.bin" | |
"http://mirror.nforce.com/pub/speedtests/1000mb.bin" |
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 | |
if [ -d /opt/fwbuilder-5.1.0.3599 ] | |
then | |
echo "removing deprecated version" | |
rm -rf /opt/fwbuilder-5.1.0.3599 | |
fi | |
if [ ! -d /opt/fwbuilder/build ] | |
then |
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 | |
############################ | |
## Methods | |
############################ | |
prefix_to_bit_netmask() { | |
prefix=$1; | |
shift=$(( 32 - prefix )); | |
bitmask="" |
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 | |
TTDir="$1" | |
MountDir="$2" | |
if [ "$TTDir" == "" ]; then | |
echo "empty ttdir" | |
exit | |
fi | |
if [ "$MountDir" == "" ]; then |
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 | |
# get current dir | |
phpstorm_dir="/opt/$(ls /opt/ | grep PhpStorm)" | |
echo "PHPStorm DIR: $phpstorm_dir" | |
phpstorm_dir_version=$(echo $phpstorm_dir | awk -F/ '{print $NF}' | sed 's/PhpStorm-//') | |
echo "PHPStorm DIR Version: $phpstorm_dir_version" | |
# get current url | |
phpstorm_url=$(curl -s https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program | sed 's/<a/\n<a/g' | grep 'href' | sed 's/.*http/http/g' | cut -d"\"" -f1 | grep '\.tar\.gz' | grep -v 'sha256') |
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 | |
# get current dir | |
prog_dir="/opt/$(ls /opt/ | grep gitkraken | grep -v tar)" | |
if [ "$prog_dir" == "/opt/" ] | |
then | |
prog_dir="" | |
fi | |
echo "DIR: $prog_dir" | |
if [ -f $prog_dir/gitkraken ] |
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 | |
# get current dir | |
prog_dir="/opt/blynkserver" | |
if [ -d "$prog_dir" ] | |
then | |
prog_dir_version=$(ls "$prog_dir" | grep jar | sed s/"server-"/""/ | sed s/"\.jar"/""/) | |
fi | |
echo "DIR: $prog_dir" | |
echo "DIR Version: $prog_dir_version" |
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 | |
# get current dir | |
prog_dir="/opt/$(ls /opt/ | grep etcher | grep -v zip)" | |
echo "DIR: $prog_dir" | |
prog_dir_version=$(echo $prog_dir | awk -F/ '{ print $3 }' | awk -F- '{ print $2 }') | |
if [ "$prog_dir_version" == "electron" ] | |
then | |
prog_dir_version=$(echo $prog_dir | awk -F/ '{ print $3 }' | awk -F- '{ print $3 }') | |
fi |
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 | |
# set the major version | |
komodo_major_version="11" | |
# check for older version | |
if [ -d "/opt/Komodo-Edit-9" ] | |
then | |
old_version="9" | |
fi |
NewerOlder