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
require 'date' | |
require_relative 'vagrant_utils' | |
CLUSTER_NAME = "cluster" | |
MANAGER_COUNT = 2 | |
MANAGER_PREFIX = 'manager' | |
MANAGER_BOX = 'almalinux/8' | |
MANAGER_CPU = '2' | |
MANAGER_RAM = '4096' |
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
1. Run PuTTY | |
2. Go to "Connection" -> "SSH" -> "Tunnels" | |
3. Enter "Source Port" with local port number. e.g.: 10022 | |
4. Enter "Destination" with remote IP address and port number. e.g.: 192.168.101.101:22 | |
5. Click "Add" | |
6. Go to "Session" | |
7. Enter "Host Name (or IP address)" with remote intermediary server host/IP. e.g.: 192.168.100.100 | |
8. Enter "Port" with remote intermediary server port. e.g.: 22 | |
9. Click "Open" | |
10. Enter username |
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
# install | |
java -jar wls_121200.jar -silent -invPtrLoc /tmp/01-inventory.loc -responseFile /tmp/02-isntall.resp |
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 | |
LOG_LEVEL=$LOG_LEVEL | |
LOG_FILE=$LOG_FILE | |
if [ "$LOG_LEVEL" == "" ] | |
then | |
LOG_LEVEL=2 | |
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
require 'date' | |
$HOSTNAME = "alma8" | |
$IMAGE_NAME = "almalinux/8" | |
$BOX_IP = "192.168.100.10/24" | |
$BOX_CPU = "2" | |
$BOX_RAM = "4096" # in megabytes | |
$PORT_FORWARD = Hash[ # host port => guest port | |
"8080" => "8080" |
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
sudo apt install x11vnc net-tools -y | |
x11vnc -storepasswd | |
vi /etc/systemd/system/x11vnc.service | |
sudo systemctl daemon-reload | |
sudo systemctl enable x11vnc | |
sudo systemctl start x11vnc |
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
npm install -g yarn | |
yarn create react-app hello-react | |
cd hello-react | |
vi package.json | |
################################################## | |
"dependencies": { | |
"react": "^16.14.0", | |
"react-dom": "^16.14.0", |
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
keytool -genkeypair -alias keypair01 -keyalg rsa -keysize 4096 -validity 36500 -keystore local_host.p12 -storetype pkcs12 -storepass password -dname "C=MY, ST=Kuala Lumpur, L=Kuala Lumpur, O=Local Host, OU=IT, CN=local.host" -ext "eku=serverAuth" -ext "ku=digitalSignature,keyEncipherment" -ext "san=dns:local.host" | |
keytool -genkeypair -alias keypair02 -keyalg ec -keysize 521 -validity 36500 -keystore local_host.p12 -storetype pkcs12 -storepass password -dname "C=MY, ST=Kuala Lumpur, L=Kuala Lumpur, O=Local Host, OU=IT, CN=local.host" -ext "eku=serverAuth" -ext "ku=digitalSignature,keyEncipherment" -ext "san=dns:local.host" | |
keytool -importkeystore -srckeystore local_host.p12 -srcstorepass password -srcalias keypair01 -destkeystore local_host-keypair01.p12 -deststoretype pkcs12 -deststorepass password -destalias keypair01 -noprompt | |
openssl pkcs12 -in local_host-keypair01.p12 -out local_host-keypair01.key -nocerts | |
openssl pkcs12 -in local_host-keypair01.p12 -out local_host-keypair01.crt -nokeys |
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
plugins { | |
id 'application' | |
id 'java' | |
} | |
repositories { | |
mavenCentral() | |
jcenter() | |
} |
NewerOlder