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
#!/usr/bin/env bash | |
function status { | |
docker inspect $1 | grep Status | awk '{print $2}' | |
} | |
cont="nginx-srv registry-web registry-srv" | |
get_regex="^.*running.*$" | |
for i in $cont |
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
#!/usr/bin/env bash | |
echo "Enter domain name:" | |
read domain_name | |
domain=`echo ${domain_name} | cut -d "." -f 1` | |
echo "Enter mysql pass:" | |
read mysql_pass | |
echo "Enter admin user name:" |
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
function FindProxyForURL(url, host) { | |
PROXY = "PROXY 1.2.3.4" | |
// Apple.com via proxy | |
if (shExpMatch(host,"*.apple.com")) { | |
return PROXY; | |
} | |
// Everything else directly! | |
return "DIRECT"; | |
} |
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
S3KEY="" | |
BUCKET="" | |
REGION="s3" | |
S3SECRET="" | |
file=$1 | |
resource="/${BUCKET}/${file}" | |
contentType="application/x-compressed-tar" | |
dateValue=`date -R` | |
stringToSign="DELETE\n\n${contentType}\n${dateValue}\n${resource}" |
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 | |
# Took me awhile to figure out how to install utserver on Centos 7 x86_64... Especially with the new systemd subsystem. None of the builds I saw support it - but it will work with a couple symlinks and compatibility packages. | |
yum install glibc libgcc openssl krb5-libs libcom_err zlib keyutils-libs libselinux glibc glibc.i[36]86 libgcc libgcc.i[36]86 openssl openssl.i[36]86 krb5-libs krb5-libs.i[36]86 libcom_err libcom_err.i[36]86 zlib zlib.i[36]86 keyutils-libs keyutils-libs.i[36]86 libselinux libselinux.i[36]86 openssl098e-0.9.8e-29.el7.centos.2.i686 -y | |
ln -s /usr/lib/libssl.so.0.9.8e /lib/libssl.so.0.9.8 | |
ln -s /usr/lib/libcrypto.so.0.9.8e /lib/libcrypto.so.0.9.8 | |
mkdir /var/utserver | |
wget -O /var/utserver/utorrent-server-3.0-25053.tar.gz http://download.utorrent.com/linux/utorrent-server-3.0-25053.tar.gz | |
cd /var/utserver/ | |
tar zxf utorrent-server-3.0-25053.tar.gz | |
mv /var/utserver/utorrent-server-v3_0/* /var/utserver/ |
NewerOlder