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 Register and add json file both was required | |
https://blog.airdesk.com/2017/10/windows-containers-portainer-gui.html |
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
docker run -p 8081:80 --name wp1 -it -d nanoserver/iis-mysql-php-wordpress | |
docker run -p 8082:80 --name wp2 -it -d nanoserver/iis-mysql-php-wordpress | |
docker run -p 8083:80 --name wp3 -it -d nanoserver/iis-mysql-php-wordpress | |
docker run -p 8084:80 --name wp4 -it -d nanoserver/iis-mysql-php-wordpress | |
docker run -p 8085:80 --name wp5 -it -d nanoserver/iis-mysql-php-wordpress | |
docker run -p 8086:80 --name wp6 -it -d nanoserver/iis-mysql-php-wordpress | |
docker exec -it wp1 ipconfig | |
docker exec -it wp2 ipconfig | |
docker exec -it wp3 ipconfig |
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
#[derive(Copy, Clone, Debug)] | |
struct Label<'a> { | |
number: u32, | |
check: u32, | |
name: &'a str | |
} | |
fn main() { | |
let _args: Vec<String> = std::env::args().collect(); |
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
# Running mode in no console mode | |
java -jar corda.jar -n | |
# Running node in no console with ssh enabled | |
java -jar corda.jar -n --sshd --sshd-port=12222 | |
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
import argparse | |
import sys | |
import boto3 | |
from netaddr import IPNetwork | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--vpc-id', required=True) | |
parser.add_argument('--region', default='us-east-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
# replace all print with logging module | |
import logging | |
logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(asctime)s: %(message)s') | |
logging.info('Sample logging') | |
logging.error('Sample logging') | |
logging.critical('Sample logging') |
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
# On Docker Repo Server - Run docker.io/repository:latest (docker version) | |
mkdir -p /docker_data/images # Docker images | |
mkdir -p /docker_data/certs # Repository SSL Certificate | |
# Get the hostname fqdn | |
hostname -f | |
# creating selfsign certificate | |
cd /docker_data/certs |
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
# Getting list of available updates | |
yum updateinfo list | |
# Only security patches | |
yum updateinfo list security all | |
# Update only security patches | |
yum -y update --security | |
# Update for sepcific CVE |
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 | |
BUCKET_NAME="soevm" | |
RAW_FILE_BASE="win2k-soe" | |
RAW_FILE="win2k-soe.raw" | |
UPLOAD_PAC="upload.json" | |
PARTS=7 | |
# For example for Windows 2016 iso 6.5 GB ---> 7 * 1GB | |
for i in {1..$PARTS}; do dd if=$RAW_FILE of=$RAW_FILE_BASE-$i.raw bs=1024k skip=$[i*1024 - 1024] count=1024; done |
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
# https://hub.docker.com/r/cordite/cordite/ | |
docker run -it \ | |
--memory=2048m \ | |
--cpus=2 \ | |
-e MY_LEGAL_NAME="O=Cordite-example,L=Berlin,C=DE" \ | |
-e MY_PUBLIC_ADDRESS="cordite.example.com" \ | |
-e MY_EMAIL_ADDRESS="noreply@cordite.foundation" \ | |
-e NETWORK_MAP_URL="https://localhost" \ | |
-v $(pwd):/opt/corda/certificates \ |