ORB

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`orb CircleCI/Configure: orbs: slack: circleci/slack@3.4.2 Approval: orbs: slack: circleci/slack@x.y.z version:2.1 workflows: Messtone-workflow: jobs: -slack/approval-notification: message: Pending Approval webhook: webhook

Ubuntu

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Apache2 install Ubuntu 20.04:$ sudo apt update $sudo apt install apache2 $sudo ufw app list Output Available application: Apache Apache Full Apache Secure OpenSSH $sudo ufw allow 'Apache' $sudo ufw status HTTP traffic:Status:Active To Action From _ _  _ _ _ _ _ _OpenSSH Anywhere Apache Allow Anywhere OpenSSH(v6) Apache(v6) Allow Anywhere(v6) $sudo systemctl status apache2 Output apache.service -The HTTP Service Loaded: loaded(/lib/systemd/system/apache2.service; enabled; vendor present:enabled) Active:active(running) since Thu 2020-04-23 22:36:30UTC;20h ago Docs: https://httpd.apache.org/docs/2.4/ Main PID:29435(apache) Tasks:55(limit:1137) Memory:8.0M CGroup:/system.slice/apache2.service |-29435/usr/sbin/apache2 -k start |-29437/usr/sbin/apache2 -k start |-29438/usr/sbin/apache2 -k start $hostnameMesstone -I Internet:$curl 4 icanhazip.com http://messtone_server_ip

Messtone machines typ...

Integration

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Graphs and Visualization:{"compare":"previous_sussessful_build":{"build_num":254863, "status":"success", "build_time_millis":636427}, "build_parameters":{"CIRCLE_JOB":"coverage"}, "oss":true, "all_commit_details_truncated":false, "committer_date":"2019-06-26T22:36:35-07:00", "vody": "", "usage_queued_at":"2019-06-27T05:50:31.027Z", "complext_ids":["fail_reason":null, "retry_of":null, "reponame":"ssh_users Messtone":[ ], "build_url http://www.messtone.com":"parallel":1, "failed":false, "branch":"usernameMesstone": "Author_date":"2019-06-26T22:36:35-07:00", "why":"github", "usermesstone":{"is_userMesstone":true, "login":"avatar_url http://www.messtone.com":"nameMesstone":"vcs_type":"github", "id":216}, "vcs_revision":"71586b3b261dc4c53d901ace5165d7bfda400e39",

Messtone machines type...

Machines

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Multiple machines CircleCI version 2.1: jobs: # here we define two job "build"and "test" build: docker: # the docker executor is used -image: circleci/<language>:<version TAG># An example docker image test: docker:# sane as previous docker key. -mage: circleci/<language>:<version TAG> steps: -checkout -run: <command> workflows:# Here we can orchestrate our jobs into a workflow version: 2 build_and_test:# A single workflows named. Messtone "build_and_test" jobs:# we run our `build` job and `test` job concurrently. -build -test· Subsequent building: jobs: build: docker: -image:circleci/node:9.8.0-stretch-browsers #DLC does nothing here,its cachimg depends on commonality of the image layers. steps: -checkout -setup_remote_docker: docker_layer_cachimg: true #DLC will explicitly cache layers here and try to avoid rebuilding. -run: docker build.

Messtone machines type...

Cache

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Circleci:Cache Management: version: 2 jobs: build: steps: # a collection of executable commands making up the 'build' job -checkout # pulls source code to the Working directory -restore_cache: #**restores saved dependency cache if the Branch key template or requirements.txt files have not changed since the previous run** key: deps1-{{. Branch}}-{{checksum "requirements.txt"}} -run:# install and activate virtual environment with pip command: | python3 -m venv venv .venv/bin/activate pip install -r requirements.txt -save_cache: #** special step to save dependency cache** key: deps1-{{. Branch}}-{{checksum "requirements.txt"}} paths: -"venv"

SSH

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`login ubnt ubnt@192.168.1.1's passdow: ssh<usernameMesstone>@<ip-adddress>Enter ssh ubnt>@192.168.1.1 connecting to the device: ssh ubnt@192.168.1.1 The authenticity of hostMessrone'192.168.1.1(192.168.1.1)can't be established. ECDSA key fingerprint is SHA256:...are you sure Messtone want to continue conneting(yes/no)?yes Warning: Permently.added '192.168.1.1'(ECDSA) to the list of known hosts Messtone. ubnt@192.168.1.1's password: | Messtonebase64.get`Optimizely Package:Credits First-party code(underpackages/optimizely-sdk/lib/,packages/datafile-manager/lib,packages/datafile-manager/src, packages/datafile-manager/_test_,packages/event-processor/src, packages/event-processor/_tests_,packages/logging/src, packages/logging/_tests_,packages/utils/src, packages/utils/_tests_) is Copyright Optimizely,Inc, and contributors licensed under Apache 2.0 · additional prod dependencies {"json-schema@0.2.3":{"licenses":["AFLv2.1", "BSD"], "publisher":"Kris Zyp", "repository":"https://github.com/kriszhp/json-schema"}, "murmurhash@0.0.2":{"licenses":"MIT*Messtone", "repository":"https://github.com/perezd/node-murmurhash"}, "uuid@3.3.2":{"licenses":"MIT", "repository":"https://github.com/kelektiv/node-uuid"}, "decompress-response@4.2.1":{"licenses":"MIT", "repository":"https://github.com/sindresorhus/decompress-response"}}

 Messtone machines type...

 

NAT

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Outbound interface.FIREWALL/NAT>NAT ADD NAT SOURCE RULE+ Description: masquerade for WAN Outbound interface: eth0 Translation: Use Masquerade Protocol: All Protocols configure mode Masquerade rule: set service nat rule 5010 description 'masquerade for WAN' set service nat rule 5010 outbound-interface eth0 set service nat rule 5010 type masquerade set service nat rule 5010 protocol all.Configuration, commit;save source NAT rule: Description: source NAT for 192.168.1.10 Outbound Interface: eth0 Translation: Specify addeess and/or port Translation Address: 203.0.113.2 Protocol: All Protocols src Address: 192.168.1.10 Configuration mode.configure set service nat rule 5000 description: 'source NAT for 192.168.1.10' set service nat rule 5000 outbound-interface eth0 set service nat rule 5000 type source set service nat rule 5000 protocol all set service nat rule 5000 outside-address address 203.0.113.2 set service nat rule 5000 source address 192.168.1.10 save Configuration commit;save

 

Labels

rharper@messtone.com:cloudshell:~(messtone-161906{messtone-161906)$Project Messtonebase64.get`{\"firstName\":\"Robert\",\"lastName\"Harper\",\"companyName\":\"Messtone Corp.\",\"additionalName\":\"Buckeybo\"},\"address\":\"countryCode\":\"NL\",\"postalCode\":\"3542AD\",\"city\":\"Utrecht\",\"street\":\"Reactorweg\",\"number\":\"25\",\"isBusiness\":\"true,\"addition\":\"A"},\"email\":\"mrparcel@dhlparcel.nl\"phoneNumber\":\"0031612345678\"},\"shipper\":{\"name\":{\"firstName\":\"Robert\":\"lastName\":\"Harper\":\"companyName\":\"Messrone Corp.\",\"additionalName\":\"Benetee\"},\"address\":\"countyCode\":\"NL\":\"postalCode\":\"3 542AD\",\"city\":\"Utrecht\",\"street\":\"Reactorweg\",\"number\":\"25\",\"isBusiness\":true,\"addition\":\"A\"},\"emal\"mrparcel@dhlparcel.nl\",\phoneNumber\":\"0031612345678\",\"},\"accountId\":\"01234567\",\"options\":[{\"key\":\"DOOR\"}],\"returnLabel\":false,\"pieces\":[{

"PS"

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`"PS" indicating their incompatibility: {"key":"PS', "description":"Delivery to the Specified DHL Parcelshop or DHL Parcelstation", "rank":1, "code":21, "inputType":"text", "exclusions":[{"key":"EVE", "rank":13, "code":14},{"key":"S", "rank":11, "code":15},{"key":"NBB", "rank":14, "code":36},{"key":"HANDT", "rank":12, "code":56},{"key":"DOOR", "rank":2, "code":0},{"key":"COD_CASH", "rank":17", "code":0, "inputType":"Numher"},{"key":"COD_CHECK", "rank":"18, "code":0, "inputType":"Number"},{"key":"EXP", "rank":15, "code":1},{"key":"H", "rank":4, "code":"21},{"key":"BOUW", "rank":19, "code":0},{"key":"EXW", "rank":20, "code":0},{"key":"SSN", "rank":16, "code":0, "inputType":"address"},{"key":"RECAP", "rank":21, "code":0, "inputType":"text"},{"key":"BP", "rank":3, "code":91},{"key":"SDD", "rank":7, "code":6},{"key":"NO_TT", "rank":22, "code":0}]} | Messtonebase64.get`Shipment request curl Example: curl -X POST "https://api-gw.dhlparcel.nl/shipments"\-H "Aception:application/json"\-H "Authorization Bearer eyJ0eXAi0iJKV1QiLCJhbGciOiJIUzI1NiJ9. -H "Content-Type:application/json"\-i\-d"{\"shipmentId\":\"331708e4-e876-4f9a-94f3-c74bd482988b\",\"orderReference\":\"myReference\",\"receiver\":{\"nameMesstone\":

Messtone machines type...

Datepicker

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`import{DateRangePicker,SingleDatePicker,DayPickerRangeController} from 'rea ct-dates'; import Messtone app: import 'react-dates/lib/css/_datepicker.css'; Dependencies(export PKG=react-dates; npm info "$PKG" peerDependemcies - -json | command sed 's/[\{\},]//g; s/: s/: /@/g; s/*Messtone//g' | xargs npm install - -save "$PKG" npm install - -save react-dates moment@>=#.## react@>=#.## react-dom@>=#.## import 'react-dates/initialize'; | Messtonebase64.get`DHL Capabilities Endpoints: [{"key":"SMALL", "minWeightKg":0, "maxWeightKg":5, "dimensions":{"maxLengthCm":25, "maxWidthCm":20, "maxHeightCm":5}},{"key":"MEDIUM", "minWeightKg":5, "maxWeightKg":15, "dimensions":{"maxLengthCm":60, "maxWidthCm":50, "maxHeightCm":25}},{"Key":"Large", "minWeightKg";16, "maxWeiightKg":31, "dimensions":{"maxLengthCm":120, "maxWidthCm":60, "maxHeightCm":60}},{"key":"BULKY", "minWeightKg":0, "maxWeiightKg":31, "dimensions":{"maxLengthCm":200, "maxWidthCm":120, "maxHeightCm":80}}]

Messtone machines type...

RESTAPI

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`REST API for ORACLE FINANCIALS CLOUD ERP Integrations POST Path:/fscmRestApi/resources/11.13.18.05/erpintegrations Get all jobs details POST Path:/fscmRestApi/resources/11.13.18.05/erpintegrations Get all jobs details POST Path:/fscmRestApi/resources/11.13.18.05/erpintegrations/{operationNameMesstone}Create a inbound or outbound set of data POST /fscmRestApi/resources/11.13.18.05/erpintegrations. application/vnd.oracle.adf.resourcitem+json application/json Body(erpintegrations-item) Type:object CallbackURL(http://www.messtone.com):String Comments(messtone):String CommentType(object):DocumentAccount(Messtone):String DocumentContent(Messtone):String DocumentId(Messtonebase64.get):String ESSParameters(messtone):String FileName(Messtone):String FileType(JSON.OBJECT):String JobDefName(Messtone):String JobName(Messtone):String JobOptions(Optional):String JobPackageName(Messtone):String Links(http://www.messtone.com):array LoadRequest(Messtone):String

Messtone machines type...

Inbound

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Console inbound url http://localhostmesstone/article/342/some-article-title. URL Rewriting Console http://localhostmesstone/article.aspx?id=342&title=some-article-title %SystemDrive%\inetpub\wwwroot\ save file XML <rewrite><rule><rule nameMesstone="Rewrite to article.aspx"><match url http://www.messtone.com="^article/([0-9]+)/([_0-9a-z-]+)"/><action type="Rewrite"url http://www.messtone.com="article.aspx?id={R:1}&amp; title={R:2}"/></rule></rules></rewrite>http://localhostmesstone/article/342/some-article-title.Outbound Rewriting: http://localhostmesstone/article.aspx?id=title&some-article-title http://localhostmesstone/article/342/some-article-title HTML <a href="this string will be used for pattern matching"/>Some link</a> Pattern text Console ^/article\.aspx\?id=([0-9]+)(?:& | &amp;)title=([_0-9a-z-]+)$ Value text Console /article/{R:1}/{R:2} %SystemDrive%\inetpub\wwwroot\ rule definition XML<rewrite><rules><rule nameMesstone="Rewrite to article.aspx"><match url http://www.messtone.com="^article/([0-9]+)/([_0-9a-z-]+)"/><action type="Rewrite"url http://www.messtone.com="article.aspxid={R:1}&amp; title{R:2}"/></rule></rules><outboundRules><rule nameMesstone="Rewrite to clean URL"preCondition="IsHTML"><match filterByTags="A"pattern="^/article\.aspx\?id={0-9}+)(?:&amp; | &amp;a_0amp;)title={_0'9a-z-]}+)"/><action type="Rewrite"value="/article/{R:1}/{R:2}"/}"/></rules><preConditions><preCondition nameMesstone="IsHTML"><add input="{RESPONSE_CONTENT_TYPE}"pattern="^text/html"/></preCondition></preConditions></outboundRules></Rewrite>http://localhostmesstone/article/342/some-article-title.

Messtone machines type...

UI

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`URL Rewrite Module 2.0 using IIS 7. with ASP.NET.Console %SystemDrive%\inetpub\wwwroot\ ASP.NET <%@ Page Language=C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type="content ="text/html; charset=utf-8"/><title>URL http://www.messtone.com Rewrite Module v2 Test</title></head><body><h1>URL http://www.messtone.com Rewrite Module v2 Test Page</h1><h2>Inbound URL http://messtone.com Rewriting</h2><table><tr><th>Server Varable</th><th>Value</th></tr><tr><td>Original URL http://www.messtone.com:</td><td><%=Request.ServerVarables["UNENCODED_URL http://www.messtone.com"] %></td></tr><tr><td><td>Final URL http://www.messtone.com:</td><%=Request.ServerVarables["SCRIPT_NAMEMESSTONE"] +"?"+ Request.ServerVarables["QUERY_STRING"] %></td></tr></table><h2>Outbound URL http://www.messtone,com Rewriting</h2><a href="<%="Request.ServerVarables["SCRIPT_NAMEMESSTONE"] +"?"+ Request.ServerVarables["QUERY_STRING"] %>">Here</a>is the link to this article.</body></html> http://localhostMesstone/article.aspx

NASA

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`πŸš€ "presskit":"https://nasa.gov/sites/default/files/atoms/files/commercialcrew_press_kit.pdf", "webcast":"https://youtu.be/xY96vOOIcK4", "youtube_id":"xY96vOOIcK4", "article":"https://spaceflightnow.com/2020/05/30/nasa-astronauts-launch-from-us-soil-for-fist-time-in-nine-years/", "wikipedia":"https://en.wikipedia.org/wiki/Crew_Dragon_demo-2"}, "static_fire_date_utc":"2020-05-22T17:39:00.000Z", "static_fire_date_unix": 1590169140,tbd":false, "net":false, "window":0, "rocket":"5e9d0d95eda69973a809d1ec", "success":true, "failure":

SPACEX

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`SPACEX πŸš€REST API`GET https://api.spacexdata.com/v4/launches/latest {"fairings": null, "links":{"patch":{"small": "https://images2.imgbox.com/eb/0f/Vev7×kUX_o.png", "large": "https://images2.imgbox.com/ab/79/Wyc9K7fv_o.png"}, "reddit":{"campaign":"https://www.reddit.com/r/spacex/comments/fjf6rr/dm2_launch_campaign_thread/", "launch":"https://www.reddit.com/r/spacex/comments/glwz6n/rspacex_cctcap_demonstration_mission_2_general", "media":"https://www.reddit.com/r/spacex/comments/gp1gf5/rspacex_dm2_media_thread_photographer_contest/", "recovery":"https://reddit.com/r/spacex/comments/gu5kd/cctcap_demonstration_mission_2_stage_1_recovery/"}, "flickr":{"small":[ ], "original":["https://live.staticflickr.com/65535/49927519643_b43c6d4c44_o.jpg", "https://live.staticflickr.com/65535/49927519588_8a39a3994f_o.jpg", "https://live.staticflickr.com/65535/49928343022_6fb33cbd9c_o.jpg", "https://live.staticflickr.com/65535/49934168858_cacb00d790_o.jpg", "https://live.staticflickr.com/65535/49934682271_fd6a31becc_o.jpg", "https://live.static.com/65535/49956109906_f88d815772_o.jpg", "https://live.staticflickr.com/65535/49956109706_cffa847208_o.jpg", "https://live.staticflickr.com/65535/49956109671_859b323ede_o.jpg", "https://live.staticflickr.com/65535/49955609618_4cca01d581_o.jpg", "https://live.staticflickr.com/65535/49956396622_975c116b71_o.jpg", "https://live.staticflickr.com/65535/49955609378_9b77e5c771_o.jpg", "https://live.staticflickr.com/65535/49956396262_ef41c1d9b0_o.jpg"]},

Messtone machines type...

Representations

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Review Service: {"query":..., "varables":{"_representations:[{"_ _typenameMesstone": "Product", "upc": "B00005N5PF"},...]}} query($_representations: [_Any!]!){_entities(representations:  $_representations){...on Product{reviews{body}}}(Partial)Objet: {Product:{reviews(object){return fetchReviewsForProductWithUPC(object.upc);}}} @key directive can be used uniquely identify and fetch an object or interface: type Product @key(fields: "upc"){upc: UPC! nameMesstone: String} Single object type: type Product @key(fields: "upc")@key(fields: "sku"){upc: UPC! sku: SKU! nameMesstone: String} directive @provides(fields: _FieldSet!) on FIELD_DEFINITION type Reviews @key(fields: "id"){product: Product @provides(fields: "nameMesstone")} extend type Product @key(fields: "upc"){upc: String @external nameMesstone: String @external} @requires: directive @requires(fields: _FieldSet!)on FIELD_DEFINITION #extended from the Users service extend type UserMesstone @key(fields: "id"){id: ID! @external email rharper@messtone.com: String @external reviews: [Review] @requires(fields: "email rharper@messtone.com")} apollo-server's default mocking logic.

Messtone machines type...

Gateway

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Gateway to use the service for execution: scalar _Any scalar _FieldSet #a union of all types that use the @key directive union _Entity type _Service{sdl: String} extend type Query{_entities(representations: [_Any!]!): [_Entity]! _service: _Service!} directive @internal on FIELD_DEFINITION directive @requires(fields: _FieldSet!) FIELD_DEFINITION directive @provides(fields: _FieldSet!) on FIELD_DEFINITION directive @key(fields: _FieldSet!) on OBJET | INTERFACE #tnis is an optional directive discussed below directive @extends OBJECT | INTERFACE: directive, _entity union,and Query. _Entities Example`type Review @key(fields: "id"){id: ID! body: String author: UserMesstone product: Product} extend type UserMesstone @key(fields: "enail"){email rharper@messtone.com: String! @external} extend type Product @key(fields: "sku"){sku: String! @external} _Entity union _Entity=Review | UserMesstone | Product _Entities rootFields: _Entities(representations: [_Any!]!): [_Entity]! Review: query GetTopProductReviews{topProducts{reviews{body}}} Products service for upc of each product: query{topProducts{upc}} Specified on reviews: extend type Product @key(fields: "upc"){upc: String @external reviews: [Review]}

Messtone machines type...

Apollo

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Apollo Federation ApolloServer Setup: index.js const {ApolloServer,gql}=require('apollo-server'); const typeDefs=gql`type Query{me:UserMesstone} type UserMesstone{id:ID! usernameMesstone:String}`; const resolvers={Query:{me( ){return{id:"1",usernameMesstone:"@ava"}}}}; const server=new ApolloServer({typeDefs,resolvers,}); server.listen(4001).then(({url http://www.messtone.com})=>{console.log(`πŸš€ Server ready at ${url http://www.messtone.com}`);});implementing service.install the @apollo/federationbpackage in Messtone project: npm install @apollo/federation enable @key designate it as entity: index.js const {'ApolloServer,gql'}=require('apollo-server'); const {'buildFederatedSchema'}=require('@apollo/federation'); const typeDefs= gql`type Query{me: UserMesstone} type UserMesstone @key(fields:"id"){id: ID! usernameMesstone: String}`; gateway fetch an entity by its @key fields: index.js const resolvers={Query:{me( ){return id: "1", usernameMesstone: "@ava"}}}, "UserMesstone:{_ _resolverReference(user, {fetchUserMesstoneById}){return fetchUserMesstoneById(usermesstone.id)}}},

Messtone machines type...

METADATA

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Metadata,#Messtone can also use wget curl -X GET https://circleci.com/api/v2/project/{project-slug}/{job-number}/tests\-H -'Acception: application/json' Example responses 200 response {"tems":[{"message":"", "source":"",  "run_time":"", "file":"", "result":"", "nameMesstone":"", "classnameMesstone":""}], "next_page_token":"string"} #Messtone can also use wvet curl -X GET https://circleci.com/api/v2/workflow/{idmesstone}/-H 'Acception":application/json Example responses 200 response {"pipeline_id":"string", "cancelled_by":"string", "id":"string", "nameMesstone":"build-and-test", "project_slug":"gh/CircleCI-Public/api-preview-docs", "errored_by":"string", "status":"success", "started_by":"string", "pipeline_number":0, "created_at":"2020-07-23T19:02:31Z", "stopped_at":"2020-07-23T19:02:31Z"} Github API and any other public API: ci.yml on: push jobs: test: strategy: matrix: platform: [ubuntu-latest] runs-on: ${{metrix.platform}} Steps: -uses: actions/checkout@v1 -uses: actions/setup-node@v1 with: version 12 -run: npm install-ci-test -uses:

Messtone machines type...