This file contains hidden or 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 hidden or 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 | |
arduino_dir="/opt/$(ls /opt/ | grep arduino | grep -v tar)" | |
if [ "$arduino_dir" == "/opt/" ] | |
then | |
arduino_dir="" | |
fi | |
echo "Arduino DIR: $arduino_dir" | |
arduino_dir_version=$(echo $arduino_dir | sed 's/.*arduino-//') |
This file contains hidden or 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 teamviewer | grep -v tar)" | |
if [ "$prog_dir" == "/opt/" ] | |
then | |
prog_dir="" | |
fi | |
echo "DIR: $prog_dir" | |
if [ -f $prog_dir/teamviewer ] |
This file contains hidden or 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 | |
awk 'BEGIN{ | |
s="/\\/\\/\\/\\/\\"; s=s s s s s s s s; | |
for (colnum = 0; colnum<77; colnum++) { | |
r = 255-(colnum*255/76); | |
g = (colnum*510/76); | |
b = (colnum*255/76); | |
if (g>255) g = 510-g; | |
printf "\033[48;2;%d;%d;%dm", r,g,b; |
This file contains hidden or 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 [ "$1" != "" ] | |
then | |
dir=$1 | |
else | |
dir=$GIST_PWD | |
fi | |
cd "$dir" |
This file contains hidden or 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 hidden or 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 MQTTfx)" | |
echo "DIR: $prog_dir" | |
prog_dir_version=$(grep 'app\.version' /opt/MQTTfx/app/MQTTfx.cfg | sed s/app.version=//) | |
echo "DIR Version: $prog_dir_version" | |
# get current url | |
prog_url=$(curl -s http://mqttfx.jensd.de/index.php/download | sed 's/<a/\n<a/g' | grep '^<a' | grep Version | head -n1 | sed 's/.*http/http/g' | cut -d'"' -f1) |
This file contains hidden or 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 hidden or 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 | |
# check version | |
prog_dir_version=$(grep \"version\" ~/.local/share/gnome-shell/extensions/[email protected]/metadata.json | awk '{ print $2 }' | sed s/,//g) | |
echo "DIR Version: $prog_dir_version" | |
prog_url="https://raw.githubusercontent.com/phocean/TopIcons-plus/master/metadata.json" | |
prog_url_version=$(curl -s $prog_url | grep \"version\" | awk '{ print $2 }' | sed s/,//g) | |
echo "URL Version: $prog_url_version" |
This file contains hidden or 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 |