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 | |
ssh-keygen -t rsa -N "" -C travis -f ./travis_key | |
# i only tested the encrypting on Linux. | |
# on mac you need gsplit instead of split, but the rest should be mostly the same | |
# | |
# decryption works on both linux and mac travis-workers | |
echo "encrypt private" |
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 | |
# check commands | |
for cmd in 'bash' 'strongswan' | |
do | |
which $cmd > /dev/null 2>&1 | |
if [ "$?" != "0" ] | |
then | |
echo "Command not found: $cmd" | |
cmd_not_found="true" |
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
# strongSwan version | |
ss_version="5.3.2" | |
nm_version="1.3.1" | |
mkdir -p /tmp/strongswan_build/ | |
#sudo dnf install make automake gcc gcc-c++ kernel-devel gmp-devel openssl-devel NetworkManager-devel NetworkManager-glib-devel | |
sudo dnf install make gcc gcc-c++ gmp-devel openssl-devel NetworkManager-glib-devel gtk2-devel libgnomeui-devel intltool | |
# get the strongSwan tarball |
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 | |
# 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 |
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 | |
# 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 | |
##### 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/ |
OlderNewer