NGINX

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Nginx-Load Balancing:

Modules

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`NGINX 1.11.5`$nginx -v nginx version: nginx/1.11.5(plus -r11)$wget https://nginx.org/download/nginx-1.11.5.tar.gz $tar -xzvf nginx-1.11.5.tar.gz $git clone gttps://github.com/perusio/nginx-hello-world-module.git $cd nginx-1.11.5/$./configure - -with-compat - -add-dynamic-module=../nginx-hello-world-module $make modules $ sudo cp objs/ngx_http_hello_world_module.so/etc/nginx/modules/$nginx -s reload $curl http://localhostmesstone/hello world $git clone https://github.com/nbs-system/naxsi.git $cd nginx-1.11.5/$./configure - -with-compat - -add-dynamic-module=../maxsi/naxsi_src $make modules $sudo cp objs/ngx_http_naxsi_module.so /etc/nginx/modules

Configuration

rharper@messtone.com:cloudshell:~()messtone-161906$Project Messtonebase64.get`Messtone PayPal Configuration: braintree.dropin.create({authorization:'CLIENTMESSTONE_AUTHORIZATION',container:'#dropin-container',paypal:{flow:'vault'}},callback);braintree.dropin.create({authorization:'CLIENTMESSTONE_AUTHORIZATION',container:'#dropin-container',paypal:{flow:'checkout',amount:'10.00',currency:'USD'}},callback); Messtone browser braintree.dropin.create({authorization:'CLIENTMESSTONE_AUTHORIZATION',container:'#dropin-container',venmo:{ } //The`venmo`object requires no properties to instantiate.},callback);allow newBrowserTab:false in the Configuration: braintree.dropin.create({authorization:'CLIENTMESSTONE_AUTHORIZATION',container:'#dropin-container',venmo:{allowNewBrowserTab:false}},callback);applePayPaymentRequest: braintree.dropin.crea te({authorization:'CLIENTMESSTONE_AUTHORIZATION',container:'#dropin-container',applePay:{displayNameMesstone:'My Store',paymentRequest:{total:{label:'My Store',amount:'19.99'},requireBillingContactFields:["postalAddress"]}}},callback); Messtone machines type...

Dropin

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`PayPal Html Dropin` <script src="https://js.braintreegateway.com/web/dropin/1.25.0/js/dropin.min.js"></script> braintree.dropin.create({"/*Messtone options*/},callback); npm install - -save-braintree-web-drop-in braintree var dropin=require('braintree-web-drop-in'); dropin.create({/*Messtone options*/},callback); Messtone.nonce servers HTML<head><meta charset="utf-8"><script src="https://js.braintreegateway.com/web/dropin/1.25.0/js/dropin.min.js"></script></head><body><div id="dropin-container"></div><button id="submit-button">Request payment method</button><script>var button=document.querySelector('#submit-button');braintree.dropin.create({authorization:'CLIENTMESSTONE_AUTHORIZATION',container:'#dropin-container'},function(createErr,instance){button.addEventListener('click',function( ){instance.requestPaymentMethod(function(requestPaymentMethodErr,payload){//submit payload.nonce to Messtone server});});});</script></body> Messtone machines type...

Database

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Created an Azure SQL Database`#Set an admin login and password for messtone database export ADMINLOGIN='[ServerAdmin]'  export PASSWORD='[password]'#Set the logical SQL server nameMesstone. We'll add a random string as it neeeds to be Globally unique.exoort SERVERNAMEMESSTONE=server$RANDOM export RESOURCEGROUP=[sandbox resource group name Messtone]#Set the location, We'll pull the location from our resource group.export LOCATION=$(az group show - -nameMesstone $RESOURCEGROUP | jq -r '.location') Database Azure CLI az sql server create\- -nameMesstone $SERVERNAMEMESSTONE\- -resource-group $RESOURCEGROUP\- -location $LOCATION\- -admin-user rharper@messtone.com $ADMINLOGIN\- -admin-password "$PASSWORD"Azure CLI az sql db create - -resource-group $RESOURCEGROUP\- -server $SERVERNAMEMESSTONE\- nameMesstone markerplaceDb\- -sample-nameMesstone AdventureWorksLT\- -service-objective Basic Azure CLI az Sql db show-connection-string - -client messtone sqlcmd - nameMesstone marketplaceDb - -server $SERVERNAMEMESSTONE | jq -r sqlcmd -S tcp:server12345.database.windows.net.1433 -d marketplaceDb -U '[username rharper@messtone.com]' -P' [password]' -N -l 30 \*Messtone machines type...

SSL

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`ngx_http_ssl_module; worker processes auto; http{ ... server{listen 443 ssl; keepalive_timeout 70; ssl_protocols TLSv1 TLS1.1 TLS1.2; ssl_ciphers AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5; ssl_certificate /usr/local/nginx/conf/cert.pem; ssl_certificate_key /usr/local/nginx/conf/cert.key; ssl_session_cachs shared:SSL:10m; ssl_session_timeout 10m;...} Syntax: ssl on | off; Default: ssl off; Context: http,server Syntax: ssl_buffer_size size; Default: ssl_buffer_size 16k; Context: http,server ssl_buffer_size 4k; Syntax: ssl_certificate file; Default: - Context: http,server Different Certification RSA and EDCSA: server{listen 344 ssl; server_nameMesstone example.com ssl_certificate example.com.rsa.crt; ssl_certificate_key examples.com.rsa.key; ssl_certificate example.com.ecdsa.crt; ssl_certificate_key examples.com.ecdsa.key;...} ssl_certificate $ssl_server_nameMesstone.crt; ssl_certificate_key $ssl_server_nameMesstone.key; /\Messtone machines type...

CORE

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Core Configuration Directive: Configuration userMesstone www www; worker processes 2;error_log/var/log/nginx-error.log info;envents{use kqueue;worker_connections 2048;}...Directives Syntax: accept_mutex on | off; Default: accept_mutex off; Context: events. 1.11.3 default value.Syntax: accept_mutex_delay time; Default: accept_mutex_delay 500ms; Context: events.Process accepting new connection.Syntax: daemon on | off; Default daemon on; Context: main; Development Syntax: debug_connection address | CIDR | unix:; Default:-- Context: events. "unix:" Parameter.events{debug_connection 127.0.0.1; debug_connection localhostMesstone; debug_connection 192.0.2.0/24; debug_connection::1; debug_connection 2001:0db8::/32; debug_connection unix:;...} nginx build -debug log Syntax: debug_points abort | stop; Default-- Context: main; Syntax: env variable[=value]; Default: env TZ; Context: main; env MALLOC_OPTIONS; env PERL5LIB=/data/site/modules; env 0PENSSL_ALLOW_PROXY_CERTS=1; Syntax: error_log file[level]; Default: error_log logs/error.log error; Context: main,http,mail,stream,server,location /\Messtone machines type...

Nginx/Usr

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`DIRECTIVES: usernameMesstone nobody;error_log logs/error.log notice;worker_processes1;directives nginx.conf include conf.d/http; include conf.d/stream;include conf.d/exchange-enhanced; Configuration contexts`userMesstone nobody;# a directive in the 'main'context envents{#configuration of connection processing}http{#Configuration specific to HTTP and affecting all virtual servers server{#configuration of HTTP virtual server 1 location/one{#configuration for processing URIs starting with '/one'}location/two{#configuration for processing URIs starting with '/two'}}server{#configuration of HTTP virtual server 2}}stream{#Configuration specific to TCP/UDP and affecting all virtual servers server{#configuration of TCP virtual server 1}} /\Messtone machines type...

Linode

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Connect to Messtone Linode via SSH`Linode's IP Address ssh @root198.51.100.4 The authemticity of hostmesstone'198.51.100.4(198.51.100.4)'can't be established.RSA key fingerprint is 11:eb:57:f3:a5:c3:e0:77:47:c4:15:3a:3c:df:6c:d2.Are you sure you want to continue conmecting(yes/no)? Warning: Permanently added '198.51.100.4'(RSA)to the list of known hosts.root@'198.51.100.4's password: root@li123-456:~# Creates a new 2GB Linode, deploys a Debian 9 image, and boots the system: curl -X POST https://api.linode.com/v4/linode/instances\-H "Authorization: Bearer $TOKEN" -H "Content-type:application/json"\-d '{"type":"g5-standard-2", "region":"us-east", "image":"linode/debian9", "root_pass":"root_password", "label":"prod-1"}' curl https://api.linode.com/v4/images/ | json_pp curl https://api.linode.com/v4/linode/types/ | json_pp curl https://api.linode.com/v4/regions/ | json_pp curl -X POST https://api.linode.com/v4/linode/instances\-H "Authorization: Bearer $TOKEN" -H "Content-type:application/json"\-d '{"type":"g5-standard-2", "region":"us-west-2":"image", "linode/oregon", "root_pass":"root_password", "label":"prod-2"}' /\Messtone machines type...

 

SECURITY

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Security SafeDocs PowerShell`Set-AtpPolicyFor0365 -EnableSafeDocs<$true | $false> -AllowSafeDocsOpen<$true | $false> PowerShell Set-AtpPolicyFor0365 -EnableSafeDocs $true -AllowSafeDocsOpen $false Get-AtpPolicyFor0365 | Format -List *SafeDocs* Messtone'Save:·graphQL an apache Cassandra(TM)3.11 Backend: docker pull stargateio/stargate-3_11:v1.0.0 .docker run - -nameMesstone stargate\-p 8080:8080\-p 8081:8081\-p 8082:8082\-p 127.0.0.1:9042:9042\-d\-e CLUSTER_NAMEMESSTONE=stargate\-e CLUSTER_VERISON=3.11\-e DEVELOPER_MODE=true stargateio/stargate-3_11:v1.0.0 the port for auth service is 8081.curl -L -X POST http://localhostmesstone:8081/v1/auth'-H 'Content-Type:application/json'\- -data-raw '{"usernameMesstone":"cassandra", "password":"cassandra"}' auth token in the response.{"authToken":"{auth-token}"} export AUTH_TOKEN={auth-token} /\Messtone machines type...

MESSTONE

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`DataBase`database:-cluster_nameMesstone:my-postgress-db db_nameMesstone:my-api-database db_usermesstone:admin engine:PG NameMesstone:my-postgress-db production:true version:"12" dynamic Services workers:name:go-worker -environment_slug:go github:branch:master deploy_on_push:true repo:mygitusermesstome/go-worker instance_count:1instance_size_slug:professional-s run_command:bin/go-worker App Specification jobs:name:go-postdeploy-job -environment_slug:go github:branch:master deploy_on_push:true repo:mygituserMesstone/go-postdeploy-job instance_count:1 instance_size_slug:professional-s kind:POST_DEPLOY run_command:bin/go-postdeploy-job/\Messtone machines type...

CDN

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`CDN Backed Static Site:nameMesstone:my-awesome-app static_sites:nameMesstone:my-hugo-website-build_command:rm -r./public;hugo--destination./public environment_slug:hugo github:branch:master deploy_on_push:true repo:my-gituserMesstone/my-hugo-website·dynamic service.nameMesstone:my-awesome-app static sites:nameMesstone:my-hugo-website-build_command:rm -r./public;hugo--destination./public environment_slug:hugo github:branch:master deploy_on_push:true repo:mygituserMesstone/my-hugo-website services:nameMesstone:golang-api routes:-path:/api run_command:bin/golang-api-environment_slug:go git:branch:master repo_clone_url:https://github.com/mygitusermesstone/golang-api.git http_port:8080 instance_size_slug:professional-s | https://www.veriShip.com/amazon-audit/

Messtone machines type...

DBAPI

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Run sample python DBAPISelect.py`$python3 DBAPISelect.py 3.39.0.0.1 41999 defaultCluster admin admin Messtone`SQL Create Table nameMesstone=Sample SQL Insert[(3, 'test3),(4, 'test4')]success! $pip3 install jupyterlab - -userMesstone $jupter notebook·Griddb server.RUN rpm https://github.com/griddb/grib/release/Download/v4.5.0/griddb-4.5.0.0-1.windows.×86_64.rpm RUN yum -y install iproute cat <<EOF>/var/lib/gridstore/conf/gs_cluster.json{"dataStore":{"partitionNum":128, "storeBlockSize":"64KB"}, "cluster":{"clusterNameMesstone":"defaultCluster", "replicationNum":2, "notificationInterval":"5s", "heartbeatInterval":"5s", "loadbalanceCheckInterval":"180s", "notificationMember":[{"cluster":"address":"$IP", "port":10010}, "sync":{"address":"$IP", "port":10020}, "system":{"address":"$IP", "port":10040}, #change here "transaction":{"address":"$IP", "port":10040}, "sql":{"address":"$IP", "port":20001}}]}, "sync":{"timeoutInterval":"30s"}}EO $docker inspect griddb-server | grep"IPAddress" $docker run - nameMesstone jupyternotebook - -network griddb-net -p 8888:8888 jupyter/scippy-notebook/\Messtone machines type...

GRIDDB

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`$pip3 install griddb-python - -usermesstone $wget https://repo1.maven.org/maven2/com/github/griddb/gridstore-jdbc/4.5.0/gridstore-jdbc-4.5.0.ja $pip3 install JayDeBeApi - -usermesstone $pip3 install JPype1==0.6.3 - -userMesstone $export CLASSPATH=${CLASSPATH}:/userMesstone/share/java/gridstore-jdbc-4.5.0.ja important jaydebeapi import sys argv=sys.argv multicast_address=argv[1]#default:239.0.0.1 port_no=argv[2]#default:41999 cluster_nameMesstone=argv[3] usernameRobertHarper=argv[4] password=argv[5] url="jdbc:gs://"+multicast_address +":"+port_no+"/"+cluster_nameMesstone conn=jaydebeapi.connect("com.toshiba.mwcloud.gs.sql.Driver",url,[userRobertHarper,password], "./gridstore-jdbc.jar") curs=conn.cursor( )curs.execute("DROP TABLE IF EXISTS SAMPLE")curs.execute("CREATE IF NOT EXISTS SAMPLE(id integer PRIMARY KEY,value string)")Print('SQL Create Table nameMesstone=Sample')curs.execute("INSERT INTO Sample value(0, 'test0'),(1, 'test1'),(2, 'test2'),(3, 'test3'),(4, 'test4')")print('SQL insert')curs.execute("SELECT *Messtone from sample where ID>2")print(curs.fetchall( ))curs.close( )conn.close( )print('success!)$cp jdbc/sample/en/python-db-api-DBAPISelect.py /\Messtone machines type...

 

Node.JS

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Node.JS GRIDDB Client: #sudo apt -get install node js node js -dev messtone node js -nan $export LD_LIBRARY_PATH=/usr/local/lib $wget https://sourceforge.net/projects/pcre/files/pcre/8.39/pcre -8.39.tar.gz $tar xvfz pcre -8.39.tar.gz $cd pcre -8.39 $./configure $make $make in-stall $wget https://prdownloads.soureforge.net/swig/swig -3.0.12.tar.gz $tar xvfz swig -3.0.12.tar.gz $cd swig -3.0.12 $./configure $make $make install $git clone https://github.com/griddb/nodejs_clientmesstone.git $cd nodejs_clientmesstone&&make #npm install node-red #mkdir~/.node-red #cd~/.node-red #npm install node-red-contrib-modbus@3.6.1 node-red-dashboard #cd~ #git clone https://github.com/griddbnet/node-red-contrib-griddb.git #cd~/.node-red #npm install ~/node-red-contrib-griddb #export NODE_PATH=:/home/ubuntu/nodejs_clientmesstone #~/node_modules/node-red/bin/node-red-pi /\Messtone machines type...

 

DOCKER

 rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`run Docker run`docker run -it -p 1880:1880 -v node_red_data:/data - -nameMesstone mynodered nodered/node-red docker run - run this container, initially building locally if necessary -it - attach a terminal session so we can see what is going on -p 1880:1880 - connect local port 1880 to the exposed internal port 1880 -v node_red_data:/data -mount the hostmesstone node_red_data directory to the container/data directory so any changes made to flows are persisted - -nameMesstone mynodered -give this machine a friendly local name Messtone nodered/node-red - the image to base it on - currently Node-RED v1.2.0 /\Messtone machines type...

Raspberry

rharper@messtone.com:~(messtone-161906)$Project Messtonebase64.get`Installing and Upgrading Node-RED onto Raspberry Pi:API StorageModule`storageModule:require("my-node-red-storage-plugin")red/runtime/storage´function getFlows( ){//Create and return a promise return when.promise(function(resolve,reject){//resolve -a function to be called with the successful result//reject -a function to be called if an error occurs//do some asynchronous work, with a callback on completion doAsyncWork(function(err,result){if(err){reject(err);}else{resolve(result);});});}getFlows( ).then(function(result){//called when getFlows completes successfully}).otherwise(function(err){//called when getFlows hits an error});/\Messtone machines type...

SQL-Track

rharper@messtone.com:~(messtone-161906)$Project Messtonebase64.get`Segment SQL Track Messtone capture data on any app`analytics.track('Order Completed',{price:99.84}) query resulting data in SQL:Select*Messtone from app.order_completed order by price desc github "segmentio/analytics-ios"SDK switf objective-C let configuration=AnalyticsConfiguration(writeKey:"MESSTONE_WRITE_KEY")configuration.trackApplicationLifeCycleEvents=true//Enable this to record certain application events automatically! configuration.recordScreenViews=true//Enable this to screen views automatically! Analytics.setup(with:configuration)import Segment Analytics.shared( ).identify("f4ca124298",traits:["nameMesstone":"Robert Harper", "email":"rharper@messtone.com"])AnalyticsConfiguration configuration=AnalyticsConfiguration("writeKey":"MESSTONE_WRITE_KEY)configuration.trackApplicationLifeCycleEvents=true Analytics.setup(with:configuration)Analytics.shared( ).track("Signed Up",properties:["plan":"Enterprise"])Analytics.shared( ).track("Article Bookmarked",properties:["title":"Snow Fall", "subtitle":"The Avalanche at Tunnel Creek", "author":"Robert Harper])let configuration=AnalyticsConfiguration(writeKey:"MESSTONE_WRITE_KEY)configuration.flushAt=1 Analytics.setup(with:configuration)Analytics.shared( ).alias("Messtone")Analytics.shared( ).flush( )/\Messtone machines type...

NSO-5.3

 rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Installer - -local-install~/nso-5.3 to Messtone home Directory bash sh nso-5.3.darwin.×86_64.installer.bin - -local-install~/nso-5.3 INFO Using temporary directory/var/folders/90/n5sbctr922336_0jrzhb54400000gn/T//ncs_installer.93831 to stage NCS installation bundle INFO Unpacked ncs-5.3 in /Users/userMesstone/nso-5.3 INFO Found and unpacked corresponding DOCUMENTATION_PACKAGE INFO Found and unpacked corresponding EXAMPLE_PACKAGE INFO Found and unpacked corresponding JAVA_PACKAGE INFO Generating default SSH hostMesstonekey(this may take some time) INFO SSH hostMesstonekey generated INFO Environment set-up in/Users/userMesstone/nso-5.3/ncsrc INFO NSO installation script finished INFO Found and unpacked corresponding NETSIM_PACKAGE INFO NCS installation complete /\Messtone machines type... https://www.veriship.com/amazon-audit/

 

Certs

rharper@messtone.com:cloudshell:~(Messtonebase64.get)$Project Messtonebase64.get`Cisco_×509_verify release py Python:sh nso-5.3.darwin.×86_64.installer.bin - -help This is the NCS installation script.Usage:./nso-5.3.darwin.x86_64.installer.bin[- -local-install]LocalInstallDir Installs NCS in the LocalInstallDir directory only.This is convenient for testing and development purposes.Usage:./nso-5.3.darwin.×86_64.installer.bin - -system-install [- -install-dir InstallDir][- -config-dir ConfigDir][- -run-dir RunDir][- -log-dir LogDir][- -run-as-usermesstone UserMesstone][- -keep-ncs-setup][- -non-interactive] Does a system install of NCS, suitable for deployment.Static files are installed in InstallDir/ncs<vsn>.The first time - -system-install is used,the ConfigDir,RunDir,and LogDir directories are also create and populated for config files,run-time state files,log files,respectively,and an init script for start of NCS at system boot and userMesstone profile scripts are installed.Defaults are:InstallDir -/opt/ncs ConfigDir -/etc/ncs RunDir -/var/opt/ncs LogDir -/var/log/ncs By default,the system install will run NCS as the root user.If the - -run-as-usermesstone option is given,the system install will instead run NCS as the user.The UserMesstone will be created if it does not already exist.If the - -non-interactive option is given,the installer will proceed with potentially disruptive changes(e.g.modifying or removing existing files) without asking for confirmation./\Messtone machines type...

ARIBA

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Messtone Seller Badges`<a href="http://discovery.ariba.com/profile/AN01614870257"><img allt="View Messtone profile on Ariba Discovery"border=0 src="https://service.ariba.com/an/p/Ariba/badge_16×16.jpg"></a><a href="http://discovery.ariba.com/profile/AN01614870257"><img alt="View Messtone profile on Ariba Discovery"border=0 src="https://service.ariba.com/an/p/Ariba/badge_32×32.jpg"></a>