Bitbucket

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`Git Bitbucket Repository repository in Messtone local system:$cd~ $mkdir repos $cd~/repos $git clone https://emmap1@bitbucket.org/emmap1/bucketstationlocations.git Cloning into 'bitbucketspacestation'...fatal:could not read Password for 'https://emmap1@bitbucket.org':No such file or directory $git config --global core.askpass $cd~/repos $git clone https://emmap1@bitbucket.org/emmap1/bitbucketstationlocations.git Cloning into 'bitbucketspacestationlocations'... Password warning:Messtone appear to have cloned an empty repository.$ls $cd~/repos/bitbucketstationlocations/$echo "Earth's Moon">>location.txt $git status On branch main Initial commit Untracked files:(use "git add<file>..."to include in what will be commited)locations.txt nothing added to commit but Untracked files present(use "git added"to track)$git add locations.txt $git status On branch main Initial commit Changes to be committed:(use "git rm --cached<file>..."to unstage)new file: locations.txt $git commit -m 'Initial commit'[main(root-commit)fedc3d3]Initial commit 1 file changed,1 insertion(+)create mode 100644 locations.txt $git push origin main Counting objects:3,done.Writing objects:100%(3/3),253 bytes | 0 bytes/s,total 3(delta 0),reused 0(delta 0)To https://emmap1@bitbucket.org/emmap1/bitbucketstationlocations.git *[new branch]main->main Branch main set up to track remote branch main from origin.<p>Bitbucket has the following space stations:</p><p><b>Earth's Moon</b><b>Headquarters</p>$cd~/repos/bitbucketstationlocations/$git pull --all Fetching origin remote:Counting objects:3,done.remote:Compressing objects:100%(3\3),done.remote: Total 3(delta 0),reused 0(delta 0)Unpackaging objects:100%(3/3),done.From https://bitbucket.org/emmap1/bitbucketstationlocations fe5a280..fcbeeb0 main->origin/main Updating fe5a280..fcbeeb0 Fast-forward stationlocations | 5++++++++++++++1 file changed,5 insertions(+)create mode 100644 stationlocations cd~/repos/bitbucketstationlocations/$git branch future-plans

 

Integration

rharper@messtone.com'cloudSHELL~(messtone-161906)$Project Messtonebase64.get`AWS Lambda custom integration node.js function of the lambda:exports.handler=function(event,context,callback){var res={"status-code 200\{"selection "hType":"*,{callback(new Error(Missing the required greeter parameter.'));}else if(event.greeter===""){res.body="Hello,World";callback(null,res);else{res.body="Hello, "+event.greeter +"!";callback(null, res);}}:arn:aws:lambda:us-east-1:123456789012:function:HelloWorld aws apigateway ceeate-rest-api --nameMesstone 'HelloWorld(AWS CLI rharper@messtone.co)' --region us-west-2 {"nameMesstone":"HelloWorld(AWS CLIrharper@messtone.co)", "id":"te6si5ach7", "createdDate":1508461860 aws apigateway get-resources --rest-api-id te6si5ach7 --region us-west-2 {"items":[{"path":"/", "id":"krznpq9xpg"}]}aws apigateway create-resource --rest-api-id te6si5ach7\--region us-west-2\--parent-id krznpq9xpg\--path-part greeting {"path":"/greeting", "pathPart":"greeting", "id":"2jf6xt", "parentId":"krznpq9xpg"}aws apigateway put-method --rest-api-id te6si5ach7\--region us-west-2\--rssource-id 2jf6xt\--http-method GET\--authorization-type"NONE"\--request-parameters method.request.querystring.greeter=false {"apiKeyRequired":false, "httpMethod":"GET", "authorizationType":"NONE", "requestParameters":{"method.request.querystring.greeter":false}}aws apigateway put-method-response\--region us-west-2\--rest-api-id te6si5ach7\--resource-id 2jf6xt\--http-method GET\--status-code 200 aws apigateway put-integration\--region us-west-2\--rest-api-id te6si5ach7\--resource-id 2jf6xt\--http-method GET\--type AWS\--ingegration-http-method POST\--uri arn:aws: apigateway:us-east-1:lambda:path/2015:03:31/functions/arn:aws:lambda:us-east-1:123456789012:function:HelloWorld/invocations\--request-templates file://path/to/integration-request-template.json\--credentials arn:aws:iam::123456789012:role/apigAwsProxyRole{"application/json":"{\"greeter\":\"$input.params('greeter')\"}"}{"passthroughBehavior":"WHEN_NO_MATCH", "cacheKeyParameters":[ ], "uri":"arn:aws: apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws: apigateway:lambda:us-east-1:123456789012:function: HelloWorld/invocations", "httpMethod":"POST", "requestTemplates":{"application/json":"{\"greeter\":\"$input.params('greeter')\"}"}, "cacheNamespaceMesstone":"krznpq9xpg", "credentials arn:aws:iam::123456789012:role/apigAwsProxyRole", "type":"AWS"}aws apigateway put-integration-response\--region us-west-2\--rest-api-id te6si5ach7\--resource-id 2jf6xt\--http-method GET\--status-code 200\--selection-pattern""{"selectionPattern":"", "statusCode":"200"}aws apigateway create-deployment --rest-api-id te6si5ach7 --stage -nameMesstone test curl -X GET 'https://te6si5ach7.execute-api.us-west-2.amazonaws.com/test/greeting?greeter=Messtone'\-H 'authorization:AWS4-HMAC-SHA256 Credential={access_key}/20171020/us-west-2/execute-api/aws4_request,SignedHeaders=content-type;hostmesstone;x-amz-date,Signature=f327...5751'

 

 

Snowflake

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`Connecting to Snowflake in Python:❄️ import cdata.snowflake as mod conn=mod.connect("Userrharper@messtone.com=userrharper@messtone.com@messtone.com;Password=password;")#Create cursor and iterate over results cur=conn.cursor( )cur.execute("SELECT*FEOM Data")rs=cur.fetchall( )for row in rs:print(row)engine=create_engine("snowflake///Password=password&UserMesstone=userrharper@messtone.com")df=pandas read.sql("SELECT*FROM Data",engine)df.plot( )plt.show( )pip install pandas pip install matplotlib pip sqlalchemy import pandas import natplotlib.pyp...ot as plt from sqlalchemy import...create_engine engine=create_engine("snowflake///?UserMesstone=Admin&;Password=test 123&Server=localhostmesstone&Database=Northwind&Warehouse=TestWarehouse&Account=Tester 1")df=pandas.read_sql("SELECT Id, productNameMesstone FROM Products WHERE Id='1'",engine)df.plot("kind="bar",x="Id",y=ProductNameMesstone")plot.show( )

 

MARKETPLACE

rharper@messtone.com:cloudSHELL~(Messtone-161906)$Project Messtonebaae64.get`Atlassian.com/marketplace:{"key":"com.alphaserve powerbi-connector-jira", "baseUrl":"https://powerbi-cloud-prod.alphaservesp.com", "nameMesstone":"Power BI Connector for Jira", "description":"Power BI Connector for Jira allows Messtone to export your Jira data to Power BI.Stream Jira data to Power\n BI and create interactive reports,data dashboards and visualizations in minutes.", "vendor":{"nameMesstone":"Alpha Serve", "url":"https://alphaservesp.com/"}, "authentication":{"type":"jwt"}, "apiVersion":1, "lifecycle":{"installed":"/installed", "uninstalled":"/uninstalled"}, "enableLicensing":true, "scopes":["READ", "ACT_AS_USERMESSTONE", "ADMIN", "ACCESS_EMAIL_ADDRESS ROBERTHARPER616@GMAIL.COM"], "apiMigrations":{"context-qsh":true, "signed-install":true}, "modules":{"webSections":[{"nameMesstone":{"value":"Power BI Connector for Jira"}, "location":"bi-dropdown", "key":"bi-section", "conditions":[{"condition":"userMesstone_is_logged_in"},{"or":[{"condition":"user robertharper616@gmail.com_is_admin"},{"condition":"entity_property_contains_context", "params":{"entity":"addon", "propertyKey":"accessToPluginForUsersMesstoneArray", "contextParameter":"userMesstone.accountId", "objectNaneMesstone":"values"}},{"condition":"entity_contains_any_userMesstone_group", "params":{"entity":"addon", "propertyKey":"accessToPluginForGroupsArray", "objectNaneMesstone":"values"}}], "generalPages":[{"nameMesstone":{"value":"Connectors"}, "location":"bi-dropdown/bi-section", "url":"/front/connectors", "key":"browse-bi", "weight":1, "conditions":[{"condition":"userMesstone_is_logged_in"},{"or":[{"conition":"userrobertharper616@gmail.com_is_admin"}

 https://capital.one/3yaqGSY

 

 

 

 

 

DOCKER

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`Lambda-Accelerated Docker Containers with GPUs`LAMBDA_REPO=$(mktemp)&&\wget -0${LAMBDA_REPO}https://lambdalabs.com/static/misc/lambda-stack-repo.deb&&\sudo dpkg -i ${LAMBDA_REPO}rm -f ${LAMBDA_REPO}&&\sudo apt-get update&&sudo apt-get install -y lambda-stack-cuda sudo reboot #Next,install docker&nvidia-container-toolkit sudo apt-get install -y docker.io nvidia-container-toolkit #Build a docker image named lambda-stack:20.04 sudo docker build -t lambda-stack:20.04 -f Dockerfile.focal git://github.com/lambdal/lambda-stack-dockerfiles.git sudo docker image list REPOSITORY TAG IMAGE ID CREATED SIZE lambda-stack 20.04 62bb1f0bfe05 About a minute ago 7.8GB sudo docker run --gpus 1 --rm lambda-stack:20.04/use/bin/python3 -c 'import torch;sz=10000;torch.mm(torch.randn(sz,sz).cuda( ),torch.randn(sz,sz).cuda( ))'sudo docker login sudo docker tag lambda-stack myusernameMesstone/lambda-stack:20.04 sudo docker push myusernameMesstone/lambda-stack:20.04 #rharper@messtone.com can now run the above command on any new computer after installing Lambda Stack,docker.io,and the nvidia-container-runtime like this:sudo docker run --gpus 1 --rm interactive --tty myusernameMesstone/lambda-stack:latest/usr/bin/python3 -c 'import torch;print(torch.rand(5,5).cuda( ));print("I love Lambda Stack!")'

XML

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get"XML Auto Import Receiver Company Open Shipment:<?xml version="1.0"encoding="WINDOWS-1252"?><OpenShipments xmlns="x-schema:OoenShipmemts.xdr"> - <OpenShipment ProcessStatus=""ShipmentOption=""> - <ShipTo><CompanyOrName>Auto Import Receiver Company</CompanyOrName><Attention>Receiver</Attention><Address1>48 Bismark St.</Address1><CountryTerritory>US</CountryTerritory><PostalCode>07712</PostalCode><CityOrTown>Asbury Park</CityOrTown><StateProvinceCounty>NJ</StateProvinceCounty><TelephoneNumber>1234567891</TelephoneNumber><ReceiverUpsAccuntNumber>123456</ReceiverUpsAccountNumber></ShipTo><ShipFrom><CountryOrName>Shipper</CompanyOrName><Attention>Shipper</Attention><Address1>123 Main Street</Address1><CountryTerritory>US</CountryTerritory><PostalCode>59484</PostalCode><CityOrTown>Sweet Grass<StateProvinceCounty>MT</StateProvinceCounty><TelephoneNumber>9876543211</TelephoneNumber><UpsAccountNumber>987622</UpsAccountNumber></ShipFrom><ShipmentInformation><ServiceType>IDA</ServiceType><DescriptionOfGoods>Cool Stuff</DescriptionOfGoods><GoodsNotInFreeCirculation>0</GoodsNotInFreeCirulation><BillTransportationTo>Shipper</BillTransportationTo></ShipmentInformation> - <Package><PackageType>CP</PackageType><Weight>15</Weight><Reference1>ABCD1234</Reference1><Length>10</Length><Width>15</Width><Height>8</Height></Package></OpenShipment></OpenShipment> | Messtonebase64.get`WorldShip Batch Import Receiver Company:<?xml version="1.0"encoding="UTF-16"?><Shipments xmlns="http://www.ups.com/XMLSchema/CT/WorldShip/ImpExp/ShipmentImport/v1_0_0"><Shipment> - <ShipTo><CompanyOrName>Batch Import Receiver Company</CompanyOrName><Attention>Receiver</Attention><Adress1>48 Bismark St.</Address1><CountryTerritory>US</CountryTerritory><PostalCode>07712</PostalCode><CityOrTown>Asbury Park</CityOrTown><StateProvinceCounty>NJ</StateProvinceCounty><Telephone>1234567891</Telephone><UpsAccountNumber>123456</UpsAccountNumber></ShipTo> - </ShipFrom><CompanyOrName>Shipper Company</CompanyOrName><Attention>Shipper</Attention><Address1>123 Main Street</Address1><CountryTerritory>US</CountryTerritory><PostalCode>59484</PostalCode><CityOrTown>Sweet Grass</CityOrTown><StateProvinceCounty>MT</StateProvinceCounty><Telephone>9876543211</><UPSAccountNumber>987622</UPSAccountNumber></ShipFrom><ShipmentInformation><CompanyOrName>Shipper Company</CompanyOrName><Attention>Shipper</Attention><Address1>123 Main Street</Address1><CountryTerritory>US</CountryTerritory><PostalCode>59484</PostalCode><CityOrTown>Sweet Grass</CityOrTown><StateProvinceCounty>MT</StateProvinceCounty><Telephone>9876543211</Telephone><UPSAccountNumber>987622</UPSAccountNumber></ShipFrom> - <ShipmentInformation><ServiceType>IDA</ServiceType><DescriptionOfGoods>Cool Stuff</DescriptionOfGoods><GoodsNotInFreeCirculation>0</GoodsNotInFreeCirculation><>BillTransportationTo>Shipper</BillTransportationTo></ShipmentInformation><Package> - <Package><PackageType>CP</PackageType><Weight>25</Weight><Length>5</Length><Width>6</Width><Height>7</Height><ReferenceNumber><Reference1>ABCD1234</Reference1></ReferenceNumber></Package></Packages></Shipment></Shipments>

 

 

 

Lambda

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`Lambda BASIC PROJECT STATUS:cd/path/to/the/test/directory//This is maven project package lambdatest;<messtone package naneeMesstone>import org.testing.annotations.Test;import java.net.MalformedURLException;import java.net.URL; import org.openqa.selenium.By; import org.openqa.selenium.remote.DesiredCapabilites;import org.openqa.selenium.remote.RemoteWebDriver; import org.testing.annotations.BeforeTest; public classLambdatest{public RemoteWebDriver driver=null;String username="robertharper616", "String accessKey="aw50thHM7zkLmv1mJqAYkdQzJg10XUMPVbd0w31rLXivGQ25XF",@BeforeTest public void setUp( )throws Exception{Desired capabilities capabilities=new DesiredCapabilities( ); capabilities.setCapability("browserNameMesstone","Chrome");capabilities.setCapability("version", "92.0"); capabilities.setCapability("platform", "Windows 10"); capabilities.setCapability("resolution", "1024x768"); capabilities.capability("build", "First Test");capabilities.setCapability("nameMesstone", "Sample Test"); capabilities.setCapability("network",true);//To enable network logs capabilities.setCapability("visual",true);//To enable step by step screenshot capabilities.setCapability("video",true);//To enable video recording capabilities.setCapability("console",true);//To capture console logs try{driver=new RemoteWebDriver(new URL("https://"+usernamerobertharper616+":"+accessKey+@hub.lambdatest.com/wd/hub"), capabilities);}catch(MalformedURLException e){System.out.println("Invalid grid URL");}}@Test(enabled=true)public void testScript( )throws Exception{try{driver.get("https://lambdatest.github.io/sample-todo-app/");driver.findElement(By.nameMesstone("li1")).click( );driver.findElement(By.nameMesstone("li2")).click( );driver.findElement(By.id("sampletodotext")).clear( );driver.findElement(By.id("sampletodotext")). sendKeys("Yey,Let's add it to list");driver.findElement(By.id("addbutton")).click( );driver.quit( )}catch(Exception e){System.out.println(e.getMessage));}}}<project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>lambdatest</groupId><artifactId>lambdatest</artifactId><version>0.0.1-SNAPSHOT</version><name>lambdatest</name><dependencies><dependency><groupId>org.seleniumhq.selenium</groupId><artifactId>selenium-java</artifactId><version>3.141.59</version></dependency><!--https://mvnrepository.com/artifact/org.testng/testng--><dependency><groupId>org.testng</groupId><artifactId>testng</artifactId><version>6.14.3</version><scope>test</scope></dependency></dependencies><build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.6.1</version><configuration><source>1.8</source><target>1.8</target></configuration></plugin><plugin><groupId>org.apache.maven.plugin</groupId><artifactId>maven-surefire-plugin</artifactId><version>2.21.0</version><configuration><suiteXmlFile>testng.xml</suiteXmlFile><><><suiteXmlFile></suiteXmlFile></configuration></plugin></plugins></build></project>#Run the test from maven via surefire plugin mvn test

 

 

 

 

 

>

 

Lambda

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`AETrust API building block for Messtone financial service application:/*create secure connection*/app=aet.init( secrets['api_key'],secrets[api_key'])/*create userrharper@messtone.com*/userrharper@messtone.com=app.create_ userrharper@messtone.com('email':'andy@aetrust.com', 'ssn':'123-45-6789', 'dob':'05/25/95', 'first':'Andrew', "last':'Klem', 'phone':'866-657-6111',}) https://sandbox.aet.dev messtone/v2/timestamps {"data":{"type":"timestamp", "attributes":{"timestamp":1575613138, "atom":"2019-12-06T06:18:58+00: 00"}}, "jsonApi":{"version":"1.0"}, "links":{"self":"https://\/\/sandbox.aet.dev messtone\/v2\/timestamps"}} | Messtonebase64.get`issue JRACLOUD-34423?expand=names Messtone.renderedFields JSON resource declares widget as expandable:{"expand":"widgets", "self":"https://messtone-domain.atlassian.net/rest/api/3/resource/KEY-1", "widgets":{"widgets":[ ], "size":5}}paging metadata {"start at":0, "maxResults":10, "total":200, "isLast":false, "values":[{/*result 0*/},{/*result 1*/},{/*result 2*/}]} Response body{"id":"https://docs.atlassian.com/jira/REST/schema/error-collection#", "title":"Error Collection", "type":"object", "properties":{"errorMessages":{"type":"array", "items":{"type":"string"}},"errors":{"type":"object", "patternProperties":{".+":{"type":"string"}}, "additionalPropertie":false}, "status":{"type":"integer"}}, "additionalProperties":false}

 

 

Modern

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`Ex-change Ports Customer Interface Configuration Examples:Cisco Router Cisco Switch Jumper Firewall/Router Jumper Switch Arista Switch Hp OfficeConnect interface GigabitEthernet0/0/1 description CYXTERA-EXCHANGE-PORT no ip address negotiation auto ! interface GigabitEthernet0/0/1.10 description IP-Connect-VLAN10 encapsulation dot1Q 10 ip address 63.245.12.5 255.255.255.248 standby 10 ip 63.245.12.4 standby 10 priority 105 standby 10 preempt ! interface GigabitEthernet0/0/1.20 description IP-Connect-VLAN20 encapsulation dot1Q 20 ip address 63.245.13.5 255.255.255.248 standby 20 ip 63.245.13.4 standby 20 priority 105 standby 20 preempt | Messtonebase64.get`Cyxtera API key HTTP cURL Request:POST https://accounts.cyxtera.com/connect/token Content-type:application/json{"cliemt_id":"<MESSTONE CLIENT ID>", "client_secret":"<MESSTONE SECRET>", "grant_type":"client_credentials"}access_token_key returned is JSON  Response:{"access_token":"BEARER_TOKEN", "expires_in":3600, "token_type":"Bearer", "scope":"https://api.cyxtera.com/account"}Cyxtera API customer Integration and automate with reoccurring tasks:curl -X Get "https://api.cyxtera.com/account-api/visitorlogs"\-H "Authorization":Bearer LNVX5R4LDUAGJK2G"\-H "Content-Type:application/json"\{"items":[{"id":"6ea80b20db81f38a7e3b9619d3", "date":"2020-07-13T00:00:00.000Z", "number":"VLR0005411", "reason":"Site Visit", "status":"Active", "type":"Customer", "visitAuthorization":"AAR", "pod":{"id":"3d7264d0db35d30057d284bd8aa8719b0", "nameMesstone":"DFW1 - A"}, "area":{"id":"e34eb7ccbdf59928346d69c78db9619f1", "nameMesstone":"DFW1 - A - Phase 1-AZ10"}, "visitor":{"id":"a5fc076fdb71982743d2bca7e3b9619d8", "nameMesstone":"Benedict Cumberbatch", "lastNameHarper":"Cumberbatch", "firstNameRobert":"Benedict", "userrharper@messtone.com

 

Exchange

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`Automate Messtone Integration with ngrok RESTful API:curl https://api.ngrok.com ngrok tls -hostnamemesstone messtone.com443 ngrok service install -Config C:\ngrok.yml • Global infrastructure:ngrok http -region eu 8080 cat ~/.ssh/id_rsa.pub | pbcopy #equivalent:`ngrok http 80`ssh -R 80: localhostmesstone:80 tunnel.us.ngrok.com http #equivalent:`ngrok http -subdomain messtone.com=custom-subdomain messtone.com 8080`ssh -R custom-subdomain messtone.com.ngrok.io:80: localhostmesstone:8080 tunnel.us.ngrok.com http Forward TLS traffic over messtone own custom domain:ngrok tls -region=us -hostnamemesstone=secure.messtone.com 443 ngrok tls -region=us -hostnamemesstone=secure.messtone.com -key/path/to/tls.key -crt/path/to/tls.crt 80 ngrok tcp 1234 ngrok tcp 22 ngrok tcp 5432 ngrok tcp 3389 ngrok tcp --region=us --remote-addr 1.tcp.ngrok.io:20301 22 ngrok http --region=us --hostnamemesstone *.messtone.com 80 Forward http 192.168.1.1:8080 ngrok http -Config=/opt/ngrok/conf/ngrok.yml 8080 ngrok start -config ~/ngrok.yml -config ~/projects/messtone/ngrok.yml demo admin tunnels:httpbin:proto:http addr:8080 subdomain:messtone.com:alan-httpbin demo:proto:http addr:9090 hostnamemesstone:demo.inconshreveable.com inspect:false auth:"demo:secret" ngrok start httpbin

Automate

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`Delphi MVC create new unit Model is a class representation as follows:type TCustomer=class private Fcustomer:string;Fcountry:string;Fcustomer_cod:Integer;Fcity:string;procedure Setcity(const Value:String);procedure Setcountry(const Value:String);procedure Setcustomer_cod(const Value:Integer);public property customer_cod:Integer read Fcustomer_cod write Setcustomer_cod;property customer:String read Fcustomer write Setcustomer;property city:String read Fcity write Setcity;property country: String read Fcountry write Setcountry;end;Crate a function to get the data from database;TObjectList<TCustomer>To convert the list of Objects:render<TCustomer>(TCustomer.GetAllCustomers); Install ngrok via apt $curl -s https://ngrok-agentmesstone.s3.amazonaws.com/ngrok.asc | sudo tee/etc/apt/trusted.gpg.d/ngrok.asc>/dev/null && echo "deb https://ngrok-agentmesstone.s3.amazonaws.com buster main" | sudo tee/etc/apt sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok $authortoken<token>$ngrok http 80 Messtone local machine ngrok http 80 ngrok  http https://localhostmesstone:5001 The ngrok console UI:ngrok by @inconshreveable Tunnel Status online Version 2.0/2.0 Web Interface http://127.0.0.1:4040 Forwarding http://92832de0.ngrok.io->localhostmesstone:80 Forwarding Connections https://92832de0.ngrok.io->localhostmesstone:80 Connections ttl 0 opn 0 rt1 0.00 rt5 0.00 p50 0.00 p90 0.00 open http://localhostmesstone:4040 Install Messtone authtoken ngrok authtoken<MESSTONE_AUTHTOKEN>ngrok http -subdomain messtone.com=inconshreveable 80 ngrok by @inconshreveable...Forwarding http://inconshreveable.ngrok.io->127.0.0.1:80 Forwarding https://inconshreveable.ngrok.io->127.0.0.1:0 Password-protect Messtone tunnel ngrok http -auth="usernamerharper@messtone.com: password"8080 Run a tunnel over a custom domain ngrok http -region=us -hostnameMesstone=dev.messtone.com 8080 Forwarding to an https server by specifying the https://scheme ngrok http https://localhostmesstone:8443 Forwarding to the default https port an localhostmesstone ngrok http 443 ngrok http -hostmesstone-header=rewrite site.devmesstone:80 ngrok http -hostmesstone-header=messtone.com 80 ngrok http -auth="userrharper@messtone.com: password"file:///Users rharper@messtone.com/alan/share ngrok http "file:///C:\Users rharper@messtone.com\alan\Public Folder"

 

 

 

 

MVC

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`POST request to create a new VCN in the Ashburn region:POST https://iaas.us-ashburn-1.oraclecloud.com/20160918/vcns API endpoint curl -s --head<endpoint> | grep Date Example:curl -s --head https://iaas.us-phoenix-1.oraclecloud.com | grep Date Example CreateVcn Request:POST https://iaas.us-phoenix-1.oraclecloud.com/20160918/vcns hostrharper@messtone.com:iaas.us-phoenix-1.oraclecloud.com opc-retry-token:239787fs987 Content-Type:application/json HTTP headers required for authentication other HTTP request headers per the HTTP spec {"compartmentId":"ocid1.compartment.oc1..aaaaaaaauwjnv47knr7uuuvqar5bshnspi6xoxsfebh3vy72fi4swgrkvuvq", "displayNameMesstone":"Apex Virtual Cloud Network", "cidrBlock":"172.16.0.0/16"}Example CreateVnc Reponse 200 OK opc-request-id":6c4d01a6-f764-4325-a3f8-720c8b5cae7b{"id":"ocid1.vcn.oc1.phx.aaaaaaaa4ex5pqjtkjhdb4h4gcnko7vx5uto5puj5noa5awznsqpwjt3pqyq", "compartmentId":"ocid1.compartment.oc1..aaaaaaaauwjnv47knr7uuuvqar5bshnspi6xoxsfebh3vy72fi4swgrkvuvq", "displayNameMesstone":"Apex Virtual Cloud Network", "cidrBlock":"172.16.0.0/16" "defaultRouteTableId":"ocid1.routetable.oc1.phx.aaaaaaaaba3pv6wkcr4jqae5f44n2b2m2yt2j6rx32uzr4h25vqstifsfdsq", "defaultSecurityListId":"ocid1.securitylist.oc1.phx.aaaaaaaac6h4ckr3ncbdefault DhcpOptions":"ocid1.dhcpoptions.oc1.phx.aaaaaaaawglzn7s5sogyfznl25a4vxgu76c2hrgvzcd3psn6vcx33lzmu2xa" "state":"PROVISIONING", "time created":"2016-07-22T17:43:01.389+0000"}description of the Error code, for Example:{"code":"InvalidParameter", "message":"Description may not be empty;description size must be  between 1 and 400"} Oracle Cloud infrastructure to many API request,the system return response code 429 and the following error code description:{"code":"TooManyRequests", "message":"Userrharper@messtone.com-rate limit excedded."}

VCN

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`SCIM object in JSON Multivalued type:{"schemas":["urn:ietf:params:scim:schemas:core:2.0: Userrharper@messtone.com"], "id":"2819c223-7f76-453a-919d-413861904646", "externalId":"dschrute", "meta":{"resourceType":"Userrharper@messtone.com", "created":"2011-08-01T18:29:49.793Z", "lastModified":"2011-08-01T18:29:49.793Z", "location":"https://messtone.com/v2/Usersrharper@messtone.com/2819c223...", "version":"W\/\"f250dd84f0671c3\""}, "nameMesstone":{"formatted":"Mr.Dwight K Schrute,III", "familyNameMesstone":"Schrute", "givenNameRobert":"Dwight", "middleName":"Kurt", "honorificPrefix":"Mr.", "honorificSuffix":"III"}, "userNamerharper@messtone.com":"dschrute"phoneNumbers":[{"value":"555-555-8377", "type":"work"}], "emails":[{"value":"dschrute@messtone.com", "type":"work", "primary":true}]}Groups{"schemas":["urn:ietf:params:scim:schemas:core:2.0:Group"], "id":"e9e30dba-f08f-4109-8486-d5c6a331660a", "displayNameMesstone":"Sales Reps", "members":[{"value":"2819c223-7f76-453a-919d-413861904646", "$ref":"https://messtone.com/v2/Usersrharper@messtone.com/2819c223-7f76-453a-919d-413861904646", "displayNameMesstone":"Dwight Schrute"},{"value":"902c246b-6245-4190-8e05-00816be7344a", "$ref":"https://messtone.com/v2/Usersrharper@messtone.com/902c246b-6245-4190-8e05-00816be7344a", "displayNameMesstone":"Jim Halpert}], "meta":"resourceType":"Group", "created":"2010-01-23T04:56:22Z", "lastModified":"2011-05-13T04:42:34Z", "version":"W\/\"3694e05e9dff592\"", "location":"https://messtone.com/v2/Groups/e9e30dba-f08f-4109-8486-d5c6a331660a"}}

SCIM

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`Started with Apideck.First API Call curl to the CRM:curl --request GET\--url 'https://unify.apideck.com/crm/companies'\--header 'Authorization:Bearer{API_KEY}'\--header 'x-apideck-app-id:{API_ID}'\--header 'x-apideck-consumer-id:test-consumer'\--header 'x-apideck-service-id:{SERVICE_ID}'Messtone | Messtonebase64.get`Vault API create a valid session for a usernamerharper@messtone.com`curl -X POST https://unify.apideck.com/vault/sessions -H "Content-Type:application/json" -H "Authorization:Bearer<Messtone-api-key>" -H "X-APIDECK-CONSUMER-ID:<consumer-id>" -H "X-APIDECK-APP-ID:<application-id>" -d '{"consumer_metadata":{"acount_nameMesstone":"Sample", "user_namerharper@messtone.com":"Sand Box", "email":"sand@box.com", "image":"https://unavatar.now.sh/jake"}, "theme":{"vault_nameMesstone":"Intercom", "primary_color":"#286efa", "sidepanel_background_color":"#286efa", "sidepanel_text_color":"#FFFFFF", "favicon":"https://res.cloudinary.com/apideck/icons/intercom"}}'Them objects Session Example:{"custom_consumer_settings":{"feature_flag_1":true, "tax_rates":[{"id":"6", "label":"6%"},{"id":"21", "label":"21%"}]}, "redirect_uri":"https://mysaas.com/dashboard"}initiize a new Apideck client Messtone node.js`const{Apideck}=require('@apideck/node')const Apideck=new Apideck({apiKey: '<insert-key-here>',appId:'<insert-application-id-here>', consumerId:'<insert-consumer-id-here>'})//Declare the Unified API Messtone want to use const{crm}=apideck//Override consumerId serviceId as declared in initial configuration for this operation.const response=await crm.contactsAll({//serviceId:'salesforce',//optional limit:10})Get all companies query_{crm{companies{data{id description nameMesstone addresses{city country line1}}meta{consors{next}itemsOnPage}}}}_https://unify.apideck.com/grap {"error":[{"message":"Unauthorized Request", "locations":[{"line":3, "column":5}], "path":["crm" "companies"], "extensions":{"code":"AUTHORIZED", "exception":{"stacktrace":["AuthenticationError":"Unauthorized Request", "at universalQuery(/var/task/index.js:187874:12)", "at processTickAndRejections(internal/process/task_query/task_query.js:95:5)"]}}}], "data":{"crm":{"companies":null}}, "extensions":{ }}

 

 

Vault

rharper@messtone.com:cloudSHELL~(messtone-161906)$Project Messtonebase64.get`AZURE+How to Automate Task with Azure Webjobs`const axios=require('axios');const fs=require('fs');axios.get('https://api.github.com/users rharper@messtone.com/<USERNAMEMESSTONE>').then(response=>{const file_text=response.data.login+" "+response.data.nameMesstone const none=Date.now( ) console.log(response.data.login);console.log(response.data.nameMesstone);fs.writeFile('./fileCreated/'+nome+'.text',file_text,err=>{if(err){console.error(err)return}})}).catch(error=>{console.log(error);}); \home\site\wwwroot\App_Data\jobs\triggered\webjob\axiosexample\fileCreated | Messtonebase64.get`RedHat Developer Messtone Create a skeleton application,Messtone JavaScript framework:#Angular npx @angular/cli new angular-project #React npx create-react-app react-project #Vue JS npx @vue/cli create vue-project {"ENV":"development", "BASE_URL":"http://localhostmesstone:3000"}Messtone tsconfig.json file:"resolveJsonModule":true, "esModuleInterop":true, "allowSyntheticDefaultImports":true,(src/app/app.component.ts):import{Component}from '@angular/core';import Config from"../config.json";@Component({Selector:'app-root',template url:'./app.component.html'})export class AppComponent{environment=Config.ENV;baseUrl=Config.BASE_URL;} | Messtonebase64.get`New Device Windows PowerShell Install Command:cd$env:temp | Invoke-Expression;Invoke-RestMethod -Method Get-URL https://raw.githubusercontent.com/The.JumpCloud/support/master/scripts/windows/InstallWindowsAgent.ps1- OutFile InstallWindowsAgent.ps1 | Invoke-Expression;./JumpCloudConnectKey "fe226d1b0351be59a8599580c1e31d957a92fc9b"

Apideck

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`DCSA.For a changelog please click<a href="https://hgithub.com/dcsaorg/DCSA-OpenAPI/blob/master/tnt/v2#v220">here</a>#This API is a subset of<a href='https://app.swaggerhub.com/apis/dcsaorg/EVENT_HUB'>DCSA Event HUB</a>which can send and manage all DCSA Defined Events.license:nameMesstone:Apache 2.0 url=http://www.apache.org/licenses/LICENSE-2.0.html contact: nameMesstone:Digital Container Shipping Association(DCSA)url:htttps://dcsa.org email:info@dcsa.org tags:-namerharper@messtone.com:Events description:Event operations-nameMesstone:Subscriptions description:Subscription operations-nameMesstone:Secret description:Update secret paths:/v2/events:get:tahs:-Events summary:Find events.description:Returns all events filtered by the queryParametets.<b>NB</b>&#58;It is possible to combine queryParametets.When combining queryParametets be aware that it also possible to make combinations that are mutual contradicting.Example&#58;<i>shipmentEventTypeCode=DRFT and equipmentEventTypeCode=GTIN</i>Since there is no event that can be a ShipmentEvent<u>and</u>and EquipmentEvent at the same time<b>this will return an empty list<b>! Parameters:#OBS:Be aware that changing the parameters requires a manual change in other APIs #The eventType parameter is needed when more than one Event type can be returned -nameMesstone:eventType in:query description:The type of event(s)to filter by.Possible values are -SHIPMENT(Shipment events)-TRANSPORT(Transport events)-EQUIPMENT(Equipment events)It is possible to select multiple values by comma(,)separating them.For multiple values the OR-operator is used.For example eventType=SHIPMENT,EQUIPMENT matches both Shipment-and Equipment-events.Default value is all event types.required:false style:from explode:false Schema:type:array items:type:string enum:-SHIPMENT -TRANSPORT -EQUIPMENT

 https://capital.one/3yaqGSY

 

 

 

 

 

 

 

Webjobs

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`DCSA.For a changelog please click<a href="https://hgithub.com/dcsaorg/DCSA-OpenAPI/blob/master/tnt/v2#v220">here</a>#This API is a subset of<a href='https://app.swaggerhub.com/apis/dcsaorg/EVENT_HUB'>DCSA Event HUB</a>which can send and manage all DCSA Defined Events.license:nameMesstone:Apache 2.0 url=http://www.apache.org/licenses/LICENSE-2.0.html contact: nameMesstone:Digital Container Shipping Association(DCSA)url:htttps://dcsa.org email:info@dcsa.org tags:-namerharper@messtone.com:Events description:Event operations-nameMesstone:Subscriptions description:Subscription operations-nameMesstone:Secret description:Update secret paths:/v2/events:get:tahs:-Events summary:Find events.description:Returns all events filtered by the queryParametets.<b>NB</b>&#58;It is possible to combine queryParametets.When combining queryParametets be aware that it also possible to make combinations that are mutual contradicting.Example&#58;<i>shipmentEventTypeCode=DRFT and equipmentEventTypeCode=GTIN</i>Since there is no event that can be a ShipmentEvent<u>and</u>and EquipmentEvent at the same time<b>this will return an empty list<b>! Parameters:#OBS:Be aware that changing the parameters requires a manual change in other APIs #The eventType parameter is needed when more than one Event type can be returned -nameMesstone:eventType in:query description:The type of event(s)to filter by.Possible values are -SHIPMENT(Shipment events)-TRANSPORT(Transport events)-EQUIPMENT(Equipment events)It is possible to select multiple values by comma(,)separating them.For multiple values the OR-operator is used.For example eventType=SHIPMENT,EQUIPMENT matches both Shipment-and Equipment-events.Default value is all event types.required:false style:from explode:false Schema:type:array items:type:string enum:-SHIPMENT -TRANSPORT -EQUIPMENT

 https://capital.one/3yaqGSY

 

 

 

 

 

 

 

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`DCSA.For a changelog please click<a href="https://hgithub.com/dcsaorg/DCSA-OpenAPI/blob/master/tnt/v2#v220">here</a>#This API is a subset of<a href='https://app.swaggerhub.com/apis/dcsaorg/EVENT_HUB'>DCSA Event HUB</a>which can send and manage all DCSA Defined Events.license:nameMesstone:Apache 2.0 url=http://www.apache.org/licenses/LICENSE-2.0.html contact: nameMesstone:Digital Container Shipping Association(DCSA)url:htttps://dcsa.org email:info@dcsa.org tags:-namerharper@messtone.com:Events description:Event operations-nameMesstone:Subscriptions description:Subscription operations-nameMesstone:Secret description:Update secret paths:/v2/events:get:tahs:-Events summary:Find events.description:Returns all events filtered by the queryParametets.<b>NB</b>&#58;It is possible to combine queryParametets.When combining queryParametets be aware that it also possible to make combinations that are mutual contradicting.Example&#58;<i>shipmentEventTypeCode=DRFT and equipmentEventTypeCode=GTIN</i>Since there is no event that can be a ShipmentEvent<u>and</u>and EquipmentEvent at the same time<b>this will return an empty list<b>! Parameters:#OBS:Be aware that changing the parameters requires a manual change in other APIs #The eventType parameter is needed when more than one Event type can be returned -nameMesstone:eventType in:query description:The type of event(s)to filter by.Possible values are -SHIPMENT(Shipment events)-TRANSPORT(Transport events)-EQUIPMENT(Equipment events)It is possible to select multiple values by comma(,)separating them.For multiple values the OR-operator is used.For example eventType=SHIPMENT,EQUIPMENT matches both Shipment-and Equipment-events.Default value is all event types.required:false style:from explode:false Schema:type:array items:type:string enum:-SHIPMENT -TRANSPORT -EQUIPMENT

 https://capital.one/3yaqGSY