- Install certificate tools : https://gist.github.com/afym/1137acfd75e6c225ca04e99c91bbd6a1
- Managing certificates : https://gist.github.com/afym/2fc368426fada6b4c590e74d42e08ca2
- Install K8S in Centos 7 : https://gist.github.com/afym/982c8315d79f55c9a5ffd5fbcba56bdd
This file contains hidden or 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
import os | |
import sys | |
import hcl2 | |
def update_modules_in_file(file_path, new_source_base): | |
with open(file_path, "r") as f: | |
original_content = f.read() | |
f.seek(0) | |
parsed = hcl2.load(f) |
In this lab you will install the command line utilities required to complete this tutorial: cfssl, cfssljson, and kubectl.
The cfssl
and cfssljson
command line utilities will be used to provision a PKI Infrastructure and generate TLS certificates.
Download and install cfssl
and cfssljson
from the cfssl repository:
This file contains hidden or 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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-RemoteDesktop | |
cinst jdk8 | |
cinst git.install | |
cinst intellijidea-ultimate | |
cinst datagrip | |
cinst keepass.install | |
cinst Microsoft-Hyper-V-All -source windowsFeatures |
This file contains hidden or 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/sh | |
# 0. Some constants to re-define to match your environment | |
ES_HOST=localhost:9200 | |
ES_INDEX=bookingmotor/hotels | |
JSON_FILE_IN=/home/angel/personal/elasticsearch/result-14-v1.json | |
JSON_FILE_OUT=/home/angel/personal/elasticsearch/result-14-bulk-v1.json | |
# 1. Python code to transform your JSON file |
This file contains hidden or 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
$ terraform init | |
$ terraform get | |
$ terraform env list | |
$ terraform env new test | |
$ terraform env select test | |
$ terraform plan -var-file=variables/sydney.tfvars | |
$ terraform apply -var-file=variables/sydney.tfvars |
This file contains hidden or 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
# run a server using php | |
php -S localhost:8000 -t /var/foo/php_demo/ |
This file contains hidden or 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/sh | |
TOOL_NAME=$1 | |
ZIP_URL=$2 | |
mkdir /tmp/$TOOL_NAME | |
cd /tmp/$TOOL_NAME | |
curl -sS $ZIP_URL > $TOOL_NAME.zip | |
unzip $TOOL_NAME.zip | |
sudo cp $TOOL_NAME /usr/local/bin/$TOOL_NAME | |
rm -rf /tmp/$TOOL_NAME | |
echo "$TOOL_NAME :: is installed successfully" |