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
export http_proxy=http://proxy.intra.bt.com:8080/ | |
export HTTP_PROXY=$http_proxy | |
export https_proxy=$http_proxy | |
export HTTPS_PROXY=$http_proxy | |
export HOST_IP=`hostname -i` | |
printf -v pool '%s,' 192.168.0.{1..253} | |
printf -v service '%s,' 10.96.0.{1..253} | |
export no_proxy="127.0.0.1,localhost,${HOST_IP,},${service%,},${pool%,},127.0.0.1"; | |
export NO_PROXY=$no_proxy |
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 fixproxy.sh | |
cat <<EOF > /etc/yum.repos.d/kubernetes.repo | |
[kubernetes] | |
name=Kubernetes | |
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 | |
enabled=1 | |
gpgcheck=1 | |
repo_gpgcheck=1 |
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
ErrorDocument 404 / | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !(^/wp-.*) |
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
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
iptables -t nat -F | |
iptables -t mangle -F | |
iptables -F | |
iptables -X |
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
Edit the daemon configuration file: | |
``` | |
$ vim /etc/docker/daemon.json | |
``` | |
Add the following lines to file: | |
``` | |
{ |
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
# Build, anonymize config, deploy, zip, commit, push in one shot | |
param ( | |
[string]$solution = "OracleDashboard.sln", | |
[string]$zipname = "OracleDashboard.zip", | |
[string]$compressor = "c:\Program Files\7-Zip\7z.exe", | |
[string]$folder = "OracleDashboard", | |
[string]$deployPath = "..\Binary", | |
[string]$commitFrom = "..", | |
[Parameter(Mandatory=$true)][string]$comment | |
) |
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
################### Filebeat Configuration Example ######################### | |
############################# Filebeat ###################################### | |
filebeat: | |
# List of prospectors to fetch data. | |
prospectors: | |
# Each - is a prospector. Below are the prospector specific configurations | |
- | |
# Paths that should be crawled and fetched. Glob based paths. | |
# To fetch all ".log" files from a specific level of subdirectories |
OlderNewer