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 | |
if [ "$1" != "" ] | |
then | |
dir=$1 | |
else | |
dir=$GIST_PWD | |
fi | |
cd "$dir" |
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 | |
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 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 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 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 | |
##### UNINSTALL ##### | |
if [ -f /etc/ld.so.conf.d/freerdp_devel.conf ] | |
then | |
read -p "uninstall git-version ? [y/N] " do_uninstall | |
if [ "$do_uninstall" == "Y" ] || [ "$do_uninstall" == "y" ] | |
then | |
echo "do-uninstall!" | |
rm -rf /opt/remmina_build/ |
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 |
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 | |
robomongo_dir="/opt/$(ls /opt/ | grep robomongo-)" | |
echo "RoboMongo DIR: $robomongo_dir" | |
robomongo_dir_version=$(echo $robomongo_dir | awk -F/ '{print $(NF)}' | sed s/'robomongo-'//) | |
echo "RoboMongo DIR Version: $robomongo_dir_version" | |
# get current url | |
robomongo_url=$(curl -s https://robomongo.org/download/ | sed 's/<a/\n<a/g' | grep '\.tar\.gz' | grep -v 'days for public availability' | head -n1 | sed 's/.*http/http/g' | cut -d"\"" -f1) |
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 | |
# deprecated MongoChef | |
depr_dir="/opt/$(ls /opt/ | grep mongochef-)" | |
if [ -d "$depr_dir" ] && [ "$depr_dir" != "/opt/" ] | |
then | |
echo "Found deprecated MongoChef [$depr_dir]" | |
rm -rf "$depr_dir" | |
if [ -h /opt/mongochef ] | |
then |