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 | |
DEFAULT_KUBECONFIG_FILE="$HOME/.kube/config" | |
if test -f "${DEFAULT_KUBECONFIG_FILE}" | |
then | |
export KUBECONFIG="$DEFAULT_KUBECONFIG_FILE" | |
fi | |
# Your additional kubeconfig files should be inside ~/.kube/configs | |
ADD_KUBECONFIG_FILES="$HOME/.kube/configs" | |
mkdir -p "${ADD_KUBECONFIG_FILES}" |
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
source <(kubectl completion bash) | |
complete -F __start_kubectl k | |
alias k='kubectl' | |
alias kgd='k get deploy' | |
alias kgp='k get pods' | |
alias kgn='k get nodes' | |
alias kgs='k get svc' | |
alias kge="k get events — sort-by='.metadata.creationTimestamp' |tail -" |
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
====== Admin API ===== | |
{badge}That feature available only for PRO or higher editions{badge} | |
~~TOC~~ | |
Sorry, this page is not finished yet. You can see all entry points by using cli.php: | |
<code bash> | |
$ php bin/cli.php admin_api:routes | |
+--------+-------------------------------------------------+------------------------------------+ | |
| Method | Route | Description | |
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
cd /tmp | |
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz | |
tar zxvf ioncube_loaders_lin_x86-64.tar.gz | |
PHP_CONFD=$(/opt/php71/bin/php --ini | grep "Scan for" | grep -oE "(\/.*)") | |
PHP_VERSION=$(/opt/php71/bin/php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;") | |
PHP_EXT_DIR=$(/opt/php71/bin/php-config --extension-dir) | |
cp "ioncube/ioncube_loader_lin_${PHP_VERSION}.so" $PHP_EXT_DIR | |
echo "zend_extension = ${PHP_EXT_DIR}/ioncube_loader_lin_${PHP_VERSION}.so" > "${PHP_CONFD}/00-ioncube.ini" | |
echo "zend_extension = ${PHP_EXT_DIR}/ioncube_loader_lin_${PHP_VERSION}.so" > "${PHP_CONFD}/../../fpm/conf.d/00-ioncube.ini" 2> /dev/null | |
echo "zend_extension = ${PHP_EXT_DIR}/ioncube_loader_lin_${PHP_VERSION}.so" > "${PHP_CONFD}/../../cgi/conf.d/00-ioncube.ini" |
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
cd /tmp | |
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz | |
tar zxvf ioncube_loaders_lin_x86-64.tar.gz | |
PHP_CONFD=$(/opt/php70/bin/php --ini | grep "Scan for" | grep -oE "(\/.*)") | |
PHP_VERSION=$(/opt/php70/bin/php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;") | |
PHP_EXT_DIR=$(/opt/php70/bin/php-config --extension-dir) | |
cp "ioncube/ioncube_loader_lin_${PHP_VERSION}.so" $PHP_EXT_DIR | |
echo "zend_extension = ${PHP_EXT_DIR}/ioncube_loader_lin_${PHP_VERSION}.so" > "${PHP_CONFD}/00-ioncube.ini" | |
echo "zend_extension = ${PHP_EXT_DIR}/ioncube_loader_lin_${PHP_VERSION}.so" > "${PHP_CONFD}/../../fpm/conf.d/00-ioncube.ini" 2> /dev/null | |
echo "zend_extension = ${PHP_EXT_DIR}/ioncube_loader_lin_${PHP_VERSION}.so" > "${PHP_CONFD}/../../cgi/conf.d/00-ioncube.ini" |
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
cd /tmp | |
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz | |
tar zxvf ioncube_loaders_lin_x86-64.tar.gz | |
PHP_CONFD=$(php --ini | grep "Scan for" | grep -oE "(\/.*)") | |
PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;") | |
PHP_EXT_DIR=$(php-config --extension-dir) | |
cp "ioncube/ioncube_loader_lin_${PHP_VERSION}.so" $PHP_EXT_DIR | |
echo "zend_extension = ${PHP_EXT_DIR}/ioncube_loader_lin_${PHP_VERSION}.so" > "${PHP_CONFD}/00-ioncube.ini" | |
echo "zend_extension = ${PHP_EXT_DIR}/ioncube_loader_lin_${PHP_VERSION}.so" > "${PHP_CONFD}/../../fpm/conf.d/00-ioncube.ini" 2> /dev/null | |
echo "zend_extension = ${PHP_EXT_DIR}/ioncube_loader_lin_${PHP_VERSION}.so" > "${PHP_CONFD}/../../cgi/conf.d/00-ioncube.ini" |
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
$('.load-diff').click() |
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
module nginx 1.0; | |
require { | |
type var_run_t; | |
type user_home_dir_t; | |
type httpd_log_t; | |
type httpd_t; | |
type user_home_t; | |
type httpd_sys_content_t; | |
type initrc_t; |
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
--- | |
- hosts: all | |
sudo: true | |
vars: | |
php_version: 'php56' | |
swap_space: 1000 | |
db: | |
username: tds | |
dbname: tds | |
password: 012e-f23rh2e |
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
check process mariadb with pidfile /var/run/mariadb/mariadb.pid | |
start program = "/bin/systemctl start mariadb" | |
stop program = "/bin/systemctl stop mariadb" |
NewerOlder