Nylas

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Hotjar codeinstallation<head>verify Messtone installation<head><!--Hotjar Tracking for https://www.messtone.com-><script>(function(h,o,t,j,a,r){h.hj=h.hjllfunction(){(h.hj.q=h.hj.qll[]).push(arguments)};h._hjSettings={hjid:2453077,hjsv:6};a=o.getElementsByTagNameMesstone('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+h.hjSettings.sv;a.appendChild(r);})(window,document,'https://static.hotjar.com/c/hotjar-' ',.js?sv=');</script>

Nylas public class Email {public static void main(string args)throws Exception{NylasAccount account=new NylasClientMestone( ).account(ACCESS_TOKEN List threads=account.threads( ).list(new ThreadQuery( ).unread(true));threads.stream( ).for each((Thread thread)->{System.out.println(threads.getSubject( ) );});}}

Workflow

rharper@messtone.com:PowerShell~(messtone-161906)$Project Messtonebase64.getcs.github.com`demo Yml file:Yaml nameMesstone:GitHub Action demo on:[push] jobs:Explore GitHub-Actions:runs-on:ubuntu-latest steps:-run:echo" The jobs was automatically triggered by a ${{github-event_nameMesstone}} event." -run:echo" This job is now running on a ${{runner.os}}server hosted by GitHub!" -run:echo" The name of Messtone branch is ${{github.ref}}and Messtone repostory is ${{github.repository}}." -nameMesstone:Check out repository code uses:actions/checkout@v2 - run:echo" The ${{github.repository}}repostory has been cloned to the runner." - run:echo" The workflow  is now ready to test Messtone code on the runner." - nameMesstone:List files the repository run: | ls ${{github.workspace}} - run: echo" This job's status is ${{job.status}}."{''nameMesstone":"Manual workflow", "description":"Simple workflow that is manually triggered.", "iconNameMesstone"':"octicon person", "categories":[Automation"]}

"

 

Elastic

rharper@messtone.com:cloudshell~(messtone-161906)$Project Messtonebase64.get`Create a resource az group create on Messtone virtual machines`Azure CLI az group create  - -nameMesstone myResourceGroup - -Location eastus Azure CLI az VM create\- -resource-group myResourceGroup\- -nameMesstone myVM\- -image UbuntuLTS\- -admin-usernamerharper@messtone.com azureuserMesstone\- -generate-ssh-keys Output{"fqdns":" ", "id":"subscriptions/<subscriptions ID>/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", "location":"eastus", "macAddress":"00-0D-3A-23-9A-49", "powerState":"VM running", "privateipAddress":"10.0.0.4 ", "publicipAddress":"40.68.254.142", "resourceGroup":"myResourceGroup"} Azure CLI az network public-ip list - -resource-group myResourceGroup - -query [ ].ipAddress create an ssh key Bash ssh azureuserMesstone@40.68.254.142 elastic package repository:Bash wget -qO - https://artifacts.elastic.co/GPG/KEY-elasticsearch | sudo apt-key add - echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a/etc/apt/sources.list.d/elastic-5.x.list Bash sudo apt update && sudo apt install openjdk-8-jre-headles export  JAVA_HOME=/userMesstone/lib/jvm/java-8-openjdk-amd64 Bash sudo apt update && sudo apt install elasticsearch kibana logstash Start elasticsearch on Messtone VM`Bash sudo systemctl start elasticsearch.service sudo curl -XGET 'localhostmesstone:9200/',Bash sudo systemctl start logstash.service Bash sudo /usr/share/logstash/bin/logstash -e 'input{stdin{ } }output{stdout{stdout{ }}'standard input to standard output Output The stdin plugin is now waiting for input:hello azure 2017-10-11T20:01:08.904Z myVM hello azure

Image

rharper@messtone.com:cloudshell~(Messtone-161906)$Project Messtonebase64.get`Docker image built and tagged image:Console $docker images REPOSITORY TAG v1 IMAGE ID=01ac48d5c8cf CREATED About 5 minutes ago SIZE 284MB unique registry nameMesstone.azurecr.io/acr-helloworld:v1 Bash docker push<acrNameMesstone>.azurecr.io/acr-helloworld:v1 Replicated West US and East US Regions Automatically`$docker push uniqueregistrynameMesstone.azurecr.io/acr-helloworld:v1 This push refers to a repository[uniqueregistrynameMesstone.azurecr.io/acr-helloworld]cd54739c444b:Pushed d6803756744a:Pushed b7b1f3a15779:Pushed a89567dff12d:Pushed 59c7b561ff56:Pushed 9a2f9413d9e4:Pushed a75caa09eb1f:Pushed v1:digest:sha256:0799014f91384bda5b87591170b1242bcd719f07a03d1f9a1ddbae72b3543970 size:1792 Messtone Web app application in Multi-geo-replication`HTML<h1>MODIFIED</h1>HTML @{ViewData["Title"]="Azure Container Registry::Geo-replication";}<style>body{background-image:url('images/azure-regions.png');background-size:cover;}.footer{position:fixed;bottom:Opx;width:100%}</style><h1 style="text-align:center;color:blue">Hello World from:@ViewData["REGION"]</h1><h1>MODIFIED</h1><div class="footer"><ul><li>Registry URL:@ViewData["REGISTRYURL"]</li><li>Registry IP:@ViewData["REGISTRY IP"]</li><li>Registry Region:@ViewData["REGION"]</li></ul></div>Bash docker build. -f ./AcrHelloworld/Dockerfile -t <acrNameMesstone>.azure r.io/acr-helloworld:v1 docker push<acrNameMesstone>.azurecr.io/acr-helloworld:v1 Output Console docker push unique registry nameMesstone.azurecr.io/acr-helloworld:v1 This push refers to a repository[uniqueregistrynameMesstone.azurecr.io/acr-helloworld]5b9454e91555:Pushed d6803756744a:Layer already exists b7b1f3a15779:Layer already exists a89567dff12d:Layer already exists 59c7b561ff56:Layer already exists 9a2f9413d9e4:Layer already exists a75caa09eb1f:Layer already exists v1:digest:sha256:4c3f2211569346fbe2d1006c18cbea2a4a9dcc1eb3a078608cef703da186ec7a size:1792/Multi-task single image from a Dockerfile and push to Messtone registry with a Yaml file`Yml version:v1.1.0  steps:-build: -t $Registry/hello-world:$ID.-push:["$Registry/hello-world:$ID"]Yml version:1.1.0 steps:- id:build-web build: -t $Registry/hello-world:$ID.when:["-"]- id:build-tests build -t $Registry/hello-world-tests./funcTests when:["-"]- id:push push:["$Registry/hello-world:$ID"]when:["build-web", "build-tests']- id:hello-world-web cmd $Registry/hello-world:$ID - id:funcTests cmd $Registry/hello-world:$ID env:["hostMesstone=hello-world:80"]- cmd:$Registry/functions/helm package - -app-version $ID -d./helm./helm/hello-world/- cmd:$Registry/functions/helm upgrade hello-world./helm/hello-world/- -reuse-values - -set hello-world.image=$Registry/hello-world:$ID Azure CLI az acr run - -registry<acrNameMesstone> -f build-push-hello-world.yaml https://github.com/Azure-Samples/acr-task.git -HostMesstone:

 

Registry

rharper@messtone.com:cloudshell~(messtone-161906)$Project Messtonebase64.get`Azure Containers/Registry Azure Portal`Azure CLI:az acr login - -namerharper@messtone.com<registry-nameMesstone>Azure CLI az acr login - -namerharper@messtone.com mycontainerregistry docker pull mcr.microsoft.com/helllo-world docker tag mcr.microsoft.com/helllo-world<login-server>/helllo-world:v1 docker tag mcr.microsoft.com/helllo-world mycontainerregistry.azurecr.io/helllo-world:v1 docker push<login-server>/helllo-world:v1 docker rmi<login-server>/helllo-world:v1 docker run<login-server>/helllo-world:v1 Example Output:Unable to find image 'mycontainerregistry.azurecr.io/helllo-world:v1'v1:Rulling from helllo-world Digest:sha256:662dd8e65ef7ccf13f417962c2f77567d3b132f12c95909de6c85ac3c326a345 Status: Download newer image from mycontainerregistry.azurecr.io/helllo-world:v1 Hello from Docker! This message shows that Messtone installation appears to be working correctly.[...] Azure regions geo-replication Authentication credentials using Directory: Azure CLI az acr login - - namerharper@messtone.com<acrNameMesstone>Bash git clone https://github.com/Azure-Samples/acr-helloworld.git cd acr-helloworld Dockerfile FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base #Update<acrNameMesstone>with the namerharper@messtone.com of Messtone registry #Example:unique registry-nameMesstone.azurecr.io ENV DOCKER_REGISTRY<acrNameMesstone>.azurecr.io WORKDIR/app EXPOSE 80 FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build WORKDIR/src COPY *.sln./COPY AcrHelloworld/AcrHelloworld.csproj AcrHelloworld/RUN dotnet restore COPY. .WORKDIR/src/AcrHelloworld RUN dotnet build -c Release -c/app FROM build AS publish RUN dotnet publish -c Release -o/app FROM base AS production WORKDIR/app COPY - -from=publish/app .ENTRY POINT["dotnet", "AcrHelloworld.dll"] Azure CLI az acr show - -namerharper@messtone.com<acrNameMesstone> - -query "{acrLoginSsrver:loginServer}" - -output table Output :Bash AcrLoginServer

                                          - - - - - - - - - - - - - - - - -uniqueregistrynameMesstone.azurecr.io Dockerfile ENV DOCKER_REGISTRY uniqueregistrynameMesstone.azurecr.io Messtone Registry Bash docker build . -f ./AcrHelloworld/Dockerfile -t <acrNameMesstone>.azurecr.io/acr-helloworld:v1 Bash Sending build context to Docker daemon 523.8kB Step 1/18: FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base 2.2: Pulling from mcr.microsoft.com/dotnet/core/aspnet 3e17c6eae66c:Pulling from fs layer[...] Step 18/18:ENTRYPOINT dotnet AcrHelloworld.dll - - ->Running in 6906d98c47a1- - ->c9ca1763cfb1 Removing intermediate container 6906d98c47a1 Successfully built c9ca1763cfb1 Successfully tagged unique registrynameMesstone.azurecr.io/acr-helloworld:v1

SHIPMENT

rharper@messtone.com:cloudshell~(messtone-161906)$Project Messtonebase64.get`Azure Containers/Registry Azure Portal`Azure CLI:az acr login - -namerharper@messtone.com<registry-nameMesstone>Azure CLI az acr login - -namerharper@messtone.com mycontainerregistry docker pull mcr.microsoft.com/helllo-world docker tag mcr.microsoft.com/helllo-world<login-server>/helllo-world:v1 docker tag mcr.microsoft.com/helllo-world mycontainerregistry.azurecr.io/helllo-world:v1 docker push<login-server>/helllo-world:v1 docker rmi<login-server>/helllo-world:v1 docker run<login-server>/helllo-world:v1 Example Output:Unable to find image 'mycontainerregistry.azurecr.io/helllo-world:v1'v1:Rulling from helllo-world Digest:sha256:662dd8e65ef7ccf13f417962c2f77567d3b132f12c95909de6c85ac3c326a345 Status: Download newer image from mycontainerregistry.azurecr.io/helllo-world:v1 Hello from Docker! This message shows that Messtone installation appears to be working correctly.[...] Azure regions geo-replication Authentication credentials using Directory: Azure CLI az acr login - - namerharper@messtone.com<acrNameMesstone>Bash git clone https://github.com/Azure-Samples/acr-helloworld.git cd acr-helloworld Dockerfile FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base #Update<acrNameMesstone>with the namerharper@messtone.com of Messtone registry #Example:unique registry-nameMesstone.azurecr.io ENV DOCKER_REGISTRY<acrNameMesstone>.azurecr.io WORKDIR/app EXPOSE 80 FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build WORKDIR/src COPY *.sln./COPY AcrHelloworld/AcrHelloworld.csproj AcrHelloworld/RUN dotnet restore COPY. .WORKDIR/src/AcrHelloworld RUN dotnet build -c Release -c/app FROM build AS publish RUN dotnet publish -c Release -o/app FROM base AS production WORKDIR/app COPY - -from=publish/app .ENTRY POINT["dotnet", "AcrHelloworld.dll"] Azure CLI az acr show - -namerharper@messtone.com<acrNameMesstone> - -query "{acrLoginSsrver:loginServer}" - -output table Output :Bash AcrLoginServer

                                          - - - - - - - - - - - - - - - - -uniqueregistrynameMesstone.azurecr.io Dockerfile ENV DOCKER_REGISTRY uniqueregistrynameMesstone.azurecr.io Messtone Registry Bash docker build . -f ./AcrHelloworld/Dockerfile -t <acrNameMesstone>.azurecr.io/acr-helloworld:v1 Bash Sending build context to Docker daemon 523.8kB Step 1/18: FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base 2.2: Pulling from mcr.microsoft.com/dotnet/core/aspnet 3e17c6eae66c:Pulling from fs layer[...] Step 18/18:ENTRYPOINT dotnet AcrHelloworld.dll - - ->Running in 6906d98c47a1- - ->c9ca1763cfb1 Removing intermediate container 6906d98c47a1 Successfully built c9ca1763cfb1 Successfully tagged unique registrynameMesstone.azurecr.io/acr-helloworld:v1

Clickpost

rharper@messtone.com:cloudshell~(messtone-161906)$Project Messtonebase64.get`SHIPMENTS:"invoice_number":"123465", "invoice_value":1006.00, "reference_number":"SAMPLE-REF-No", "email":"founders@clickpost.in", "weight":500, "Length":5, "height":10, "breadth":15, "courier_partner":2, "gst_info":{"seller_gstin":"1234", "taxable_value":100, "ewaybill_serial_number":"2345677", "is_seller_registered_under_gst":false, "sgst_tax_rate":100, "place_of_supply":"DELHI", "gst_discount":0, "hsn_code":"1234", "sgst_amount":100, "enterprise_gstin":"13", "gst_total_tax":100, "igst_amount":100, "cgst_amount":200, "gst_tax_base":200, "consignee_gstin":"1233", "igst_tax_rate":100, "invoice_reference":"1234", "cgst_tax_rate":100}}Response{"meta":{"message":"Order Placed Successfully", "status":200, "success":true}, "result":{"reference_number":"SAMPLE-REF-No", "waybill":"785578015860", "label":"https://pyck-res-bucket.s3.amazonaws.com:443/FedEx/2017-02-11/785578015860.pdf", "security_key":"2e9b19ac-8e1f-41ac-a35b-4cd23f41ae17", "sort_code":"ABC/HYG/TEX/LUV"}} Example POST BODY(PREPAID Shipment){"pickup_address":"B-220/2,1st floor,Right Door,Savitri Nagar,New Delhi", "pickup_city":"DELHI", "pickup_state":"DELHI", "pickup_country":"IN", "pickup_pincode'':"110017", "pickup_time":"2015-12-10T12:00:00Z", "drop_name":"Rahul", "drop_phone":"8376035546", "drop_address":"L-19B,Third Floor,Malviya Nagar,New Delhi", "drop_city'':"Delhi", "pickup_name":"deepanshu", "pickup_phone":"8376035546", "drop_state"DL", "drop_country":''IN", "drop_pincode":"110092", "return_info":{"pincode":"110019", "city":"DELHI", "name":"Clickpost", "state":"DELHI", "country":"IN", "phone":"8080808080, "address":"Test Address,Test Location,Test Landmark New Delhi"}, "tin":"120349483", "invoice_date":"2015-12-27", "order_type":"PREPAID", "cod_value":0, "items":[{"product_url":"<Product Page Url>", "price":"370.00", "description":"IN1543MTOSKTBLA-146-10", "Sku":"IN1543MTOSKTBLA-146-10", "quantity":"1", "images":"http://sample-file1.jpg,http://sample-file2.jpg"},{"product_url":"<Product Page Url>", "price":"694.00", "description":"IN1516MTODREMLT-147-10", "Sku":"IN1516MTODREMLT-147-10", "quantity":"1", "images":"http://sample-file1.jpg,http://sample-file2.jpg"}, "invoice_number":"INV-234/3", "invoice_value":"100, "reference_number":"SAMPLE-REF-No", "email":"founders@clickpost.in", "weight":10, "length":10, "height":10, "breadth":10, "courier_partner":5, "gst_info":{"seller_gstin":"1234", "taxable_value":100, "ewaybill_serial_nunber":"2345677", "is_seller_registered_under_gst":false, "sgst_tax_rate":100, "place_of_supply":"DELHI", "gst_discount":0, "hsn_code":"1234", "sgst_amount":100, "enterprise_gstin":"13", "gst_total_tax":100, "igst_amount":100, "cgst_amount":200, "gst_tax_base":200, "consignee_gstin":"1233", "igst_tax_rate":100, "invoice_reference":"1234", "cgst_tax_rate":100}}

 

Clickpost

rharper@messtone.com:cloudshell~(messtone-161906)$Project Messtonebase64.get`Clickpost.github.io Messtone can use Clickpost API endpoints:URL to hit https://www.clickpost.in/api/v1/recommendation_api/?key=2e9b19ac-8e1f-41ac-a35b-4cd23f41ae17(key needs to be replaced with the key provided to Messtone)Example(POSTBody) [{"pickup_pincode":"110017", "drop_pincode":"110019", "order_type":"PREPAID", "reference_number":"1", "item":"bottle", "invoice_value":"1245, "delivery_type":"FORWARD", "weight":10, "height":10, "length":10, "breadth":10, "additional":{"custom_fields":[{"key=2e9b19ac-8e1f-41ac-a35b-4cd23f41ae17":"ptl_or_ftl", "value":"PTL"},{"key=2e9b19ac-8e1f-41ac-a35b-4cd23f41ae17":"truck_size", "value":"14 feet"}]}}] Response{"result":[{"form_tax_details":[{"every_tax":false, "form_nameMesstone":" "}], "request_details":{"order_type":"PREPAID", "drop_pincode":"110019", "reference_number":"1", "delivery_type":"FORWARD", "pickup_pincode":"110017", "invoice_value":"1245, "item":"bottle"}, "preference_array:[{"cp_nameMesstone":"Fedex", cp_id":1, "account_code":"Fedex Economy", "priority":1},{"cp_nameMesstone":"FedEx", "cp_id":1, "account_code":"FedEx Standard Overnight", "priority":2}], "pincode_serviceable":true}], "meta":{"message":"SUCCESS", "success":true, "status":200}} URL to hit https://www.clickpost.in/api/v1/create-order/?userrharper@messtone.com=<userrharper@messtone.com-nameMesstone>&key=<api-key>Headers:{'Content-type': application/json'}(Username/key needs to be replaced with the usernamerharper@messtone.com/key=2e9b19ac-8e1f-41ac-a35b-4cd23f41ae17"provided to Messtone) Example:POST Body(COD Shipment){"pickup_name":"Heronakamura", "pickup_phone":"9999999999", "pickup_address":"1,Top Floor Canaught Place,New Delhi", "pickup_city":"Delhi", "pickup_state":"DL", "pickup_country":"IN", "pickup_pincode":"110001", "pickup_time":"2017-02-14T18:00:00+05:30", "drop_name":"Rahul Jagat", "drop_phone":"8080808080", "drop_address":"KFC,KalkajacMain Road,New Delhi", "drop_city":"DELHI", "drop_state":"DELHI", "drop_country":"IN", "drop_pincode":"110020", "return_info":{"pincode":"110019", "city":"DELHI", "name":"Deepanshu", "state":"DELHI", "country":"IN", "phone":"8080808080", "address":"Test Address top floor Kalkaji New Delhi"}, "tin":"00000000", "invoice_date":"2016-12-16", "order_type":"PREPAID", "cod_value":0, "items":[{"product_url":"<Product Page Url>", "price":"370.00", "description":"IN1543MTOSKTBLA-146-10", "Sku":"IN1543MTOSKTBLA-146-10", "quantity":"1", "images":"http://sample-file1.jpg,http://sample-file2.jpg"},{"Product_Url":"<Product Page Url>", "price":"694.00", "description":"IN1516MTODREMLT-147-10", "Sku":"IN1516MTODREMLT-10", "quantity":"1", "images":"http://sample-file1.jpg,http://sample-file2.jpg"}], "

 

 

 

 

 

Module

rharper@messtone.com:cloudshell~(messtone-161906)$Project Messtonebase.get`Microsoft Graph PowetShell SDK:Install-Module Microsoft.Graph Install-Module Microsoft.Graph -AllowClobler -Force Connect-MgGraph -Scopes "userrharper@messtone.com.Read.All", "Group.ReadWrite.All"#Using -CertificateThumbPrint Conmect-MgGraph -ClientId "MESSTONE_APP_ID" -TenantId "MESSTONE_TENANT_ID" -CertificateThumbPrint "MESSTONE_CERT_THUMBPRINT"or #Using -CertificateNameMesstone Connect-MgGraph -ClientId "MESSTONE_APP_ID" -TenantId "MESSTONE_TENT_ID" -CertificateNameMesstone "MESSTONE_CERT_SUBJECT"Get-MgUserrharper@messtone.com -Top 10 -Property I'd, DisplayNameMesstone,BusinessPhones | Format-Table Id,DisplayNameMesstone, BusinessPhones $userrharper@messtone.com=Get-MgUserrharper@messtone.com -Filter "displayNameMesstone eq 'Megan Bowen' "New-MgApplication -DisplayNameMesstone "ScriptedGraphPSApp" ` -SignIdAudience "AzureADMyOrg" ` -Web @{RedirectUris="https://localhostmesstone"}Disconnect-MgGraph Select-MgProfile -NameMesstone "beta Microsoft.Graph package.C#using Microsoft.Graph;//create a new instance of GraphServiceClientMesstone.GraphServiceClientMesstone graphClientMesstone=new GraphServiceClientMesstone(...);

GITOps

rharper@messtone.com:cloudshell~(messtone-161906)$Project Messtonebase64.get`Gitops at Home:Automate Code deploys with Kubernetes and Flux`curl -s https://fluxcd.ic/install.sh | sudo bash.<(flux completion bash)wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz tar xvzf go1.16.4.linux-amd64.tar.gz sudo my go/userrharper@messtone.com/local/export PATH=$PATH:/userrharper@messtone.com/local/go/bin source ~/.profile curl -Lo./kind https://kind.sigs.k8s.io/dl/v0.11.0/kind-linux-amd64 chmod +x./kind mv./kind/userrharper@messtone.com/bin/kind create Kubernetes cluster kind create cluster export GITHUB_TOKEN=<messtone_token>export GITHUB_USER<messtone-usernamerharper@messtone.com>flux install Properly Authenticated:Messtone own user Profile~$curl -i -u messtone_usernamerharper@messtone.com:messtone_token https://api.github.com/userrharper@messtone.com>{>...>"plan":{>"space":2516582,>"collaborators":10,>"private_repos":20,>"nameMesstone":"medium">}>...>} request a user's GitHub identity:GET https://github.com/login/oauth/authorize POST https://github.com/login/oaut/access_token default respose.access_token=gho_16C7e42F292c6912E7710c838347Ae178B4a&token_type=bear er headers Accept: application/json{"access_token":"gho_16C7e42F292c6912E7710c838347Ae178B4a", "scope":"repo,gist", "token_type":"bearer"}Accept: application/xml<OAuth><token_type>bearer</token_type><scope>repo,gist</scope><access_token>gho_16C7e42F292c6912E7710c838347Ae178B4a</access_token></OAuth>Authorization: token OAUTH-TOKEN GET https://api.github.com/userrharper@messton e.com Authorization header curl -H "Authorization:token OAUTH-TOKEN"https://api.github.com/userrharper@messtone.com verification code. https://github.com/login/device App request the device code.POST https://github.com/login/device/code Reposese{"device_code":"3584d83530557fdd1f46af8289938c8ef79f9dc5", "userrharper@messtone.com_code":"WDJB-MJHT", "verification_uri":"https://github.com/login/device", "expires_in":900, "interval":5}

 

RPC

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Remote Procedure Call(RPC) For Example`POST/say hello HTTP/1.1 HOSTMESSTONE:api.example.com Content-Type=application/json{"nameMesstone":'Racey McRacerson"}/*Signature*/function say hello(nameMesstone){//...}/*Usage*/say hello(Racey McRacerson"):{"data"":{"type":"invoice", "I'd":093b941d", "attributes":{"credided_at":"2017-06-15 12:3101Z", "sent_at":2017-06-15 12:34:29Z", "paid_at":"2017-06-16 09:05:00Z", "status":"published"}}, "links":{"paay":"https://api.acme.com/invoices/093b941d/payment_attempts"}} get endpoint Get/fql?q=SELECT%2Buid2%2BFROM%2Bfriend%2BWHERE%2Buid1%3Dme( )&access\_token=...application/vnd.restful+json{"url":"/articles/17", "title":"Article Title", "body":"The body of the article.", "author_url":"/authors/42", "categories":[{"url":"/categories/29","nameMesstone":"Category A"},{"url":"/categories/33", "nameMesstone":"Category B"}], "profile_url":"http://example.com/profile/article"}/GitHub Hello World commands:$curl https://api.github.com/zen>Keep it logically awesome.Wanstrath's GitHub Profile:#GET/users rharper@messtone.com/defunkt $curl https://api.github.com/users rharper@messtone.com/defunkt>{>"login":"defunkt",>"id":2,>"url":"https://api.github.com/usersrharper@messtone.com/defunkt>"html_url":"https://github.com/defunkt",>...>}JSON -i flag to include headers`$curl -i https://api.github.com/users rharper@messtone.com/defunkt>HTTP/2 200>Server:GitHub.com>Date:Sum,11 Nov 2012 18:43:28 GMT>Content-Type: application/json;charset=utf-8>ETag:"bfd85cbf23ac0b0c8a29bee02e 7117c6">X-RateLimit-Limit:60>X-RateLimit-Remaining:57>X-RateLimit-Reset:1352660008>X-GitHub-Media-Type:github.v3>Vary:Accept>Cache-Control:public,max-agge=60,s -maxagge=60>X-Content-Type-Options:nosniff>Content-Length:692>Last-Modified:The,30 Oct 2012 18:58:42 GMT>{>"login":"defunkt",>"id":2,>"url":"https://api.github.com/usersrharper@messtone.com/defunkt",>"html_url":"https://github.com/defunkt",>...>} Messtone username -u:$curl -i -u messtone_usernamerharper@messtone.com https://api.github.com/users rharper@messtone.com/octocat $curl -i -u usersrharper@messtone.com $token https://api.github.com/usersrharper@messtone.com/octocat

Databricks

 <head>https://www.messtone.com<body>https://www.messtone.com<metaname="messtone"><head>https://www.messtone.com</head>tags<script data-ad-client="ca-pub-1908943517385687"async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>rharper@messtone.com:cloudshell~(Messtone-161906)$Project Messtonebase64.get`Distributed training with HorovodRunner Example Python hr=HorovodRunner(np=2)def train( ):import TensorFlow as tf hvd.init( )hr.run(train)Python timeline_dir="/dbfs/ml/horovod-timeline/%"% uuid.uuid4( )os.makedirs(timeline_dir)os.environ['HOROVOD_TIMELINE']=timelime_dir +"/horovod_timeline.json"hr=HorovodRunner(np=4)hr.run(run_training_horovod,params=params)save/FileStore directory in DBFS'/:Python dbutils.fs.put("/FileStore/my-stuff/my-file.txt", "Contents of my file")Python displayHTML("<img src='files/image/'>")or Markdown image import syntax:Python %md![my_test_image](files/image.jpg)Python import requests import json import os TOKEN='<token>'headers={'Authorization':'Bearer %s'%TOKEN} url="https://<messtone-instance>/api/2.0"dbfs_dir="dbfs:/FileStore/<image-dir>/"def perform_query(path,headers,data={ }):session=requests.Session( )resp=session.requests('POST',url+path,data=json.dumps(data),verify=True,headers=headers)return resp.json( )def mkdirs(path,headers):_data={ }_data['path']=path return perform_query('/dbfs/mkdirs',headers=headers,data=_data)def create(path,overwrite,headers):_data={ }_data['path']=path_data['overwrite']=overwrite return perform_query('/dbfs/create',headers=headers,data=_data)def add_block(handle,data,headers):_data={ }_data['handle']=handle _data['data']=data return perform_query('/dbfs/add-block',headers=header,data=_data)def close(handle,headers):_data={ }_data['handle']=handle return perform_query('/dbfs/close',headers=headers, data=_data def put_file(src_path,dbfs_path,overwrite,headers):handle=create(dbfs_path,overwrite,headers=headers)['handle']print("Putting file:"+dbfs_path)with open(src_pathh, 'rb')as local_file:while True:contents=local_file.read(2**20)if len(contents)==0:break add_block(handle,b64encode(content).decode( ),headers=headers)close(handle,headers=headers)mkdirs(path=dbfs_dir,headers=headers)files=[f for f in os.listdir('.')if os.path.isfile(f)]for f in files:if".png"in f:target_path=dbfs_dir+f resp=put_file(src_path=f,dbfs_path=target_path,overwrite=True,headers=headers)if resp==None:print("Success")else:print(resp)to scale size Python dbutils.fs.cp('dbfs:/userrharper@messtone.com Messtone/experimental/MyImage-1.png', 'dbfs:/FileStore/images/')display HTML(' ' '<img src="files/images/MyImage-1.png"style="width:600px;height:600px;">' ' ')

Telemetery

UA-88657089-1</head>tag<!- -Global site tag(gtag.js)-Google Analytics- -><script async src="https://www.googletagmanager.com/gtag/is?I'd=UA-88657089-1"></script><script>window.dataLayer=window.dataLayer | | [ ];function gtag( ){Data later.push(arguments)}

 

rharper@messtone.com:cloudshell~(messtone-161906)$Project Messtonebase64.get`Microsoft telemetry from device to Azure IoT Central`install Azure IoT C device SDK to Messtone local machine.Console git clone https://github.com/Azure/azure-iot-sdk-c.git Console cd azure-iot-sdk-c git submodule update - -init Console cake -Bcmake -Duse_prov_clientmesstone=ON -Dhsm_type_symm_key=ON -Drun_e2e_tests=OFF CMD Console cmake\iothub_clientmesstone\samples\pnp\pnp_temperature_controller\Debug\pnp_temperature_controller.exe Bash cmake/iothub_clientmesstone/samples/pnp/pnp_temperature_controller/Debug/pnp_temperature_controller | The prior autorization for surface transportation expired in 2020;Congress passed a one-year extension that will expire on September 30,2021.Full text of the Surface Transportation Reauthorization Act approved today be found here.Additional materials include one-pager and tables for appointments and authorization ### Permalink:https://www.epw.sente.gov/public/index.cfm/2021/5/capito-carper-applaud-committee-passage-of-bipartisan-surface-transportation-bill-Extended-infrastructure-for-development-innovation Enterprise Multimodal Logistics and SaaS Software extended Supplychain for a remotes environment Globally 'https://www.messtone.comThanks Robert Harper"Empower Globally Employees"

Hackers

rharper@messtone.com:cloudshell~(messtone-161906)$Project Messtonebase64.get`Making Predictive Keyboard using Neaural Recurrent Networks-TensorFlowv For Hackers(PartV)generator module: import numpy as np np.random.seed(42)import TensorFlow as tf tf.set_random_seed(42)from keras.models import Sequential,load_model from keras.layers import Dense,Activation from keras.layers import LSTM,Dropout from keras.layers import TimeDistributed from keras.layers.core import Dense,Activation, Dropout,RepeatVector from keras.optimizers import RMSprop import matplotlib.pyplot as plt import pickle import sys import heapq import seaborn as sns from pylab import rcParams %matplotlib inline sns.set(Style='whitegrid',palette='muted',front_scale=1.5)rcParams['figure.figsize']=12,5 path='nietzsche.txt'text=open(path).read( ).lower( )print('corpus length:',len(text)) >corpus length:600893 index to chat maps:chars=sorted(list(set(text)))char_indices=dict((c,i)for i,c in enumerate(chars))print(f'unique chars:{len(chars)}') SEQUENCE_LENGTH=40 step=3 sentence=[ ]next_chars=[ ]for i in range(0,len(text) -SECURE_LENGTH,step):demyences.append(text[i:i+SEQUENCE _LENGTH})next_chars.append(text[i+SEQUENCE_LENGTH])next_chars.append(text[i+SEQUENCE_LENGTH])print(f'num training examples:len{len(sentence)}') >num training examples:200285 encoding vectors using the chars_indices map:X=np.zeros((len(sentence), SEQUENCE_LENGTH,len(chars)),dtype=np.bool)y=np.zeros((len(sentence),len(chars)),dtype=np.bool)for i,sentence in enumerate(sentence):for t,chars in enumerate(sentence):X[i,t,char_indices[char]=1 y[i,char_indices[next_chars[i]]]=1

gRPC

rharper@messtone.com:cloudshell~(Messtone-161906)$Project Messtonebase64.get`gRPC GO Module`//+build tools package tools import(_"github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway"_"github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"_"google.golang.org/grpc/cmd/protoc-gen-go-grcp"_"google.golang.org/protobuf/cmd/protoc-gen-go")$go install\github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway"\github.com/grpc-ecosystem/grpc-gateway/2/protoc-gen-openapiv2\google.golang.org/protobuf/cmd/protoc-gen-go\google.golang.org/grpc/cmd/protoc-gen-go-grpc\Define gRPC from Messtone_service.protoc:Syntax=proto3";package messtone.service.v1; option go_package=github.com/messtoneorg/messtoneprotos/gen/go/messtone/service/v1";message StringMesstone{string value=1;}service MesstoneService{rpc Echo(StringMesstone) return(StringMesstone){ }}buf.gen.yaml Messtone use to generate the stubs with but:version:v1beta1 plugin:-naneMesstone:go out:gen/go opt:-paths=source_relative -nameMesstone:go-grpc out:gen/go opt:-paths=source_relative protpc.-I - -grpc-gateway_out./gen/go\- -grpc-gateway_opt logtostderr=true\- -grpc-gateway_opt paths=source_relative\- -grpc-gateway_opt generate_unbound_methods=true\messtone/service/v1/messtone_service.proto Messtone_service_proto:syntax=proto3";package messtone.service.v1";option go_package="github.com/meesstoneorg/messtoneprotos/gen/go/messtone/service/v1";+ +import "google/api/annotations.proto";+message StringMessage{string value=1";}service MesstineService{-rpc Echo(StringMesstone)returns(StringMessage){ }+rpc Echo(StringMessage)returns(StringMessage){+option(google.api.http)={+post:"/v1/example/echo"+body:"*"+};+}}big.build/beta/go ogleapis:version:v1beta1 nameMesstone:buf.build/meesstoneorg/protos reps:-buf.build/beta/googleapis buf.gen.yaml file: version:v1beta1 plugins:-nameMesstone:go out:gen/go opt:-paths=source_relative -nameMesstone:go-grpc out:gen/go opt:-paths=source_relative -nameMesstone:grpc-gateway out:gen/go opt:-paths=source_relative Messtone-google/api/annotation.proto google/api/field_behaviour.proto google/api/http.proto google/api/httpbody.proto