Skip to content

Instantly share code, notes, and snippets.

Dennis Koot koter84

Block or report user

Report or block koter84

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View update_blynkserver.sh
#!/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"
View keybase.md

Keybase proof

I hereby claim:

  • I am koter84 on github.
  • I am koter84 (https://keybase.io/koter84) on keybase.
  • I have a public key ASDZJWDpPFXQHZhJsXzw_GjzQgTzlbAXMWcsE90S1UiL_wo

To claim this, I am signing this object:

@koter84
koter84 / remmina_password_updater.sh
Last active Dec 6, 2017
update the password for each connection with the same username
View remmina_password_updater.sh
#!/bin/bash
# import read_ini()
source ./~~read_ini.sh
count=0
for file in $HOME/.local/share/remmina/*.remmina
do
read_ini $file
if [ "${INI__remmina__domain}" != "" ]
@koter84
koter84 / update_eagle.sh
Last active Sep 20, 2017
update eagle pcb designer
View update_eagle.sh
#!/bin/bash
# get current dir
prog_dir="/opt/$(ls /opt/ | grep eagle | grep -v tar)"
echo "DIR: $prog_dir"
prog_dir_version=$(echo $prog_dir | awk -F- '{ print $2 }')
echo "DIR Version: $prog_dir_version"
# get current url
prog_url=$(curl --head -s https://www.autodesk.com/eagle-download-lin | grep Location | awk '{ print $2 }' | sed s/"\r"/""/ | sed s/"\n"/""/)
@koter84
koter84 / update_easyscreencast.sh
Created Apr 18, 2017
easyscreencast gnome extension
View update_easyscreencast.sh
#!/bin/bash
# check version
prog_dir_version=$(grep \"version\" ~/.local/share/gnome-shell/extensions/EasyScreenCast@iacopodeenosee.gmail.com/metadata.json | awk '{ print $2 }' | sed s/,//g)
echo "DIR Version: $prog_dir_version"
prog_url="https://raw.githubusercontent.com/EasyScreenCast/EasyScreenCast/master/metadata.json"
prog_url_version=$(curl -s $prog_url | grep \"version\" | awk '{ print $2 }' | sed s/,//g)
echo "URL Version: $prog_url_version"
@koter84
koter84 / update_etcher.sh
Last active Aug 31, 2018
updater for etcher.io
View update_etcher.sh
#!/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
@koter84
koter84 / update_topiconsplus.sh
Created Feb 7, 2017
Updater for Gnome Shell Extension TopIcons-Plus
View update_topiconsplus.sh
#!/bin/bash
# check version
prog_dir_version=$(grep \"version\" ~/.local/share/gnome-shell/extensions/TopIcons@phocean.net/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"
@koter84
koter84 / update_fwbuilder.sh
Last active Apr 3, 2019
updater for fwbuilder
View update_fwbuilder.sh
#!/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
@koter84
koter84 / update_mqttfx.sh
Last active Apr 23, 2017
updater for MQTTfx
View update_mqttfx.sh
#!/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)
@koter84
koter84 / update_gitkraken.sh
Last active Apr 16, 2019
updater for GitKraken
View update_gitkraken.sh
#!/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 ]
You can’t perform that action at this time.