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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: static-nginx | |
spec: | |
containers: | |
- name: web | |
image: nginx | |
ports: | |
- name: web |
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
# Shortcut commands | |
alias k=kubectl | |
alias kgn='kubectl get ns' | |
alias kgp='kubectl get pods' | |
alias kgs='kubectl get service' | |
alias kgd='kubectl get deployment' | |
alias kep='kubectl edit pod' | |
alias ked='kubectl edit deployment' |
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
#![cfg_attr(not(feature = "std"), no_std)] | |
use frame_support::{decl_module, decl_storage, decl_event, decl_error, dispatch, traits::Get, traits::Randomness, debug}; | |
use frame_system::ensure_signed; | |
use codec::{Encode, Decode}; | |
use sp_core::H256; | |
use sp_std::vec::Vec; | |
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
reza@ubu1901:~$ curl -O https://capnproto.org/capnproto-c++-0.7.0.tar.gz | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 | |
100 1443k 100 1443k 0 0 107k 0 0:00:13 0:00:13 --:--:-- 240kt | |
reza@ubu1901:~$ tar zxf capnproto-c++-0.7.0.tar.gz | |
reza@ubu1901:~$ cd capnproto-c++-0.7.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
reza@ubu1901:~/node-capnp$ npm install | |
> [email protected] install /home/reza/node-capnp | |
> node ./build.js | |
(node:34779) [DEP0006] DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead. | |
make: Entering directory '/home/reza/node-capnp/build' | |
CXX(target) Release/obj.target/capnp/src/node-capnp/capnp.o | |
../src/node-capnp/capnp.cc:239:82: warning: enum constant in boolean context [-Wint-in-bool-context] | |
kj::LowLevelAsyncIoProvider::ALREADY_CLOEXEC || kj::LowLevelAsyncIoProvider::ALREADY_NONBLOCK || |
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') |