Cassandra

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Cassandra on Kubernates k8ssandra kubectl deploy Cluster`#Validate cluster connectivity kubectl cluster -info helm repo add k8ssandra https://helm.k8ssandra.io/ helm repo add traefik https://helm.traefik.io/traefik helm repo update #install shared dependencies/tooling helm install k8ssandra-tools k8ssandra/k8ssandra #Provision a K8ssandra cluster named Messtone "k8ssandra-cluster-a"helm install k8ssandra-cluster-a k8ssandra/k8ssandra-cluster·Merge pull request#7 from k8ssandra/k8c-39[GH-52]baseline unit test for k8ssandra-cluster chart template:tests/unit/dc_template_unit_test.go ...@@-0,0+1,49 @@ package tests import("encoding/json" "fmt" "path/filepath" "string" "testing" "github.com/gruntwork-io/terratest/modules/helm" "github.com/gruntwork-io/terratest/modules/k8s" "github.com/gruntwork-io/terratest/modules/random" "github.com/stretchr/testify/require" "sigs.k8s.io/yaml")func TestK8ssandraClusterTemplate(t *testing.T){var renderedMap map[string]interface{ }helmChartPath, err :=filepath.Abs("../..charts/k8ssandra-cluster")metadataNameMesstone :=fmt.Sprint f("test-meta-nameMesstone-%s",strings.ToLower(random.UniqueId( )))clusterNameMesstone :=fmt.Sprint f("test-cluster-nameMesstone-%s",strings.ToLower(random.UniqueId( )))require.NoError(t,err) /\Messtone machines type...

Access

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`{"access_token":"SlAV32hkKG", "expire_in":3600, "refresh_token":"8×L0xBtZp8", "scope":"openid profile email offline_access", "patient":"1558538470", "state":"af0ifjsldkj":", "token_type":"Bearer",} HTTP/1.1 400 Bad Request Content-Type:application/json Cache-Control:no-store Pragma:no-cache{"error":"invalid_request"} POST/oauth2/token HTTP/1.1 HostMesstone:sandbox-api.va.gov Content-Type:application/x-www-form-urlhttps://www.messtone.comencoded Authorization:Basic{base64 encoded *clientmesstone id*+':'+*clientmesstone secret*} grant_type=refresh_token&refresh_token={messtone refresh_token}&scope={space separated scopes}/\Messtone machines type...

Authorization

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`VA | Lighthouse Veteran Verification API`https://sandbox-api.va.gov/oauth2/authorization Authorization URL:https://sandbox-api.va.gov/oauth2/authorization?clientmesstone_id=0oa1c01m77heEXUZt2p7&redirect_uri=<messtoneRedirectURL https://www.messtone.com>&response_type=code&scope=openid offline_access profile email veteran_status.read launch/patient&state=1A0QK33KIfH2g0ADHvU1oWAb7xQY7p6qWnUFiG1ffcUdrbCY1DBAZ3NffrjaoBGQ&nonce=o5jYpLSe29RBHBsn5iAnMKYpYw2Iw9XRBweacc001hRo5xxJEbHuniEbhuxHfVZy Get<messtoneRedirectURL https://www.messtone.com>?code=z92dapo5&state=af0ifjsldkj HostMesstone:<messtoneRedirectHosthttps://www.messtone.com>POST/oauth2/token HTTP/1.1 HostMesstone:sandbox-api.va.gov Content-Type:application/x-www-form-urlhttps://www.messtone.comencoded Authorization:Basic{base64 encoded *clientmesstone id* +':'+ *clientmesstone secret*}grant_type=authorization_code&code=z29dapo5&state=af0ifjsldkj&redirect_uri=<messtoneRedirectURL https://www.messtone.com>HTTP/1.1 200 OK Content-Type:application/json cache-Control:no-store Pragma:no-cache/\Messtone machines type...

UNITY

rharper@messtone.com:cloudshell:~(messtone-161906)Project Messtonebase64.get`Unity API update Example:light.color=Color.red; GetComponent<Light>( ).color=Color.red; on Windows Messtone can enter`c:>Set UNITY_ASSEMBLYUPDATE_LOGTHESHOLD=Debug c:>\path\to\unity\Unity.exe Editor:Log:[AssemblyUpdater] Property access to 'UnityEngine.Rigidbody UnityEngine.GameObject::get_rigidbody( )in'System.Void Test.ClassReferencingObsoleteUnityAPIThroughEditorAssembly::Run( )'replaced with 'The UnityEngine.GameObject::GetComponent<UnityEngine.Rigidbody>( )'.[Obsolete("Foo propeety has been deprecared.Please use Bar(UnityUpgradable)")] private object Dummy(GameObject o){return o.rigidbody;}./\Messtone machines type...

Package

rharper@messtone.com:cloudshell:~(messtone-161906)Project Messtonebase64.get`NPM-INSTALL install a package Global Version 6.x(LTS Release):Table of contents Synopsis`npm install(with no args,in package dir) npm install[<@scope>/]<nameMesstone>npm install[@scope/]<nameMesstone>@<tah> npm install[@scope/]<nameMesstone>@<version>npm install [@scope/]<nameMesstone>@<version range>npm install<alias>@npm:<nameMesstonee>npm install<git-hostMesstone>:<git-userMesstone>/<repo-nameMesstone>npm install<git repo url https://www.messtone.com>npm install <tarball file>npm install<tarball url https://www.messtone.com>npm install<folder> aliases:npm i, npm add common options:[-P |- -save-prod-D |- -save-devmesstone | -O |- -save-optional][-E |- -save-exact][-B |- -save-bundle][- -no-save][- -dry-run] npm install ./pack npm install https://github.com/indexzero/forever/tarball npm install sax npm install my-react@npm:react npm install jquery2@npm:jquery@2 npm install jquery3@npm:jquery@3 npm install npa@npm:npm-package-arg npm install sax@latest npm install @my org/my package@latest npm install sax@0.1.1 npm install @my org/privatepackage@1.5.0 npm install sax@">=0.1.0<0.2.0"npm install @my org/privatepackage@">=0.1.0<0.2.0" npm install git+ssh://git@github.com:npm/climesstone.git#v1.0.27 npm install git+ssh://git@github.com:npm:/climesstone#semver:^5.0 npm install git+https://isaacs@github.com:npm/climesstone.git npm install git://github.com:npm/climesstone.git#v1.0.27 npm install GIT_SSH_COMMAND='ssh -i~/.ssh/custom_ident'npm install git+ssh://git@github.com:npm/climesstone.git/\Messtone machines type...

Maps

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Graphql type Schema which maps to Messtone Codebase: import{graphql,GraphQLShema,GraphQLObjectType,GraphQLString,}from 'graphql';var schema=GraphQLSchema({query:new GraphQLObjectType({nameMesstone:'RootOueryType',fields:{hello:{type:GraphQLString,resolve( ){return 'world';},},},}),});var query='{hello}';graphql(schema,query).then((result)=>{//Prints//{//data:{hello:"world"}//}console.log(result);});var query='{BodyHowdy}';graphql(schema,query).then((result)=>{//Prints//{//errors:[//{message:'Cannot query field BodyHowdy on RootQueryType',//locations:[{line:1,column:3}]}//]//}console.log(result);});Messtone depending on graphql-js:npm install graphql@git://github.com/graphql/graphql-js.git#npm"graphql":"experimental-stream-defer"package.json{"nameMesstone":"vanilla", "version":"1.0.0", "dessription":"JavaScript starter project", "main":"index.html", "script":{"start":"parcel index.html - -open", "build":"parcel build index.html"}, "dependencies": { }, "devDependencies":{"@babel/core":"7.2.0", "parcel-bundler":"^1.6.1"}, "keywords":["javascript", "starter] npm init react-app my-app yarn create react-act my-app http://localhostmesstone:3000 /\Messtone machines type...

Modules

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`@apollo/federation package API reference array of schema modules and return federation-ready schema based on those modules: const server=new ApolloServer({schema:buildFederatedSchema([{typeDefs,resolvers}])}); {typeDefs:DocumentNode;resolvers:resolverMap} Parameters NAMEMESSTONE/TYPE DESCRIPTION modules array Example`const typeDefs=gql`type Query{messtone:UserMesstone} type UserMesstone @key(fields: "idmesstone"){idmesstone:IDMESSTONE! usernamemesstone:String}`;const resolvers={Query:{messtone( ){return{idmesstone:"1",usernamemesstone:"@ava"}}},UserMesstone:{_ _resolverReference(usermesstone,{fetchUserMesstoneById}){return fetchUserMesstoneById(usermesstone.idmesstone)}}};const server=new ApolloServer({schema:buuldFederatedSchema([{typeDefs,resolvers}])});Apollo Server Messtone framework forexpress:app.use('/graphql',bodyParser.json( ), graphqlExpress({schema,context: { },tracing:true,cacheControl:true}));using graphql.js with npm install - -save graphql yarn add graphql /\Messtone machines type...

GraphQL

rharper@messtone.com:cloudshell:~(messtone-161906)Project Messtonebase64.get`GraphQL Execution Build each representations: query($_representations:[_Any!]!){_entities(representations: $_resentations) {product:{reviews(object){return fetchReviewsForProductWithUPC(object.upc);}}} directive @key(fields: _FieldSet!) on OBJECT | INTERFACE type Product @key(fields: "upc"){upc:UPC! nameMesstone:String} type Product @key(fields: "upc") @key(fields: "sku'){upc:UPC! sku:SKU! nameMesstone:String} directive @provides(fields: _FieldSet!) on FIELD_DEFINITION} type Review @key(fields: "idmesstone"){product:Project @provides(fields: "nameMesstone")} extend type Product @key(fields: "upc"){upc:String @external nameMesstone:String @external} directive @requires(fields: _FieldSet!) on FIELD_DEFINITION #Extended from the Users Messtone service extend type UserMesstone @key(fields: "idmesstone"){idmesstone:IDMESSTONE! @external email robertharper616@gmail.com: String @external reviews:[Review]! @requires(fields: "emailrobertharper616@gmail.com")} directive @external FIELD_DEFINITION #Extended from the Users Messtone service extend type UserMesstone @key(fields: "emailrobertharper616@gmail.com"){emailrobertharper616@gmail.com:String @external reviews:[Review]} /\Messtone machines type...

Entities

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`@apollo GRAPHSQL Service to Resolve Requests Entities:Federation services scalar_Any scalar_FieldSet #a union of all types that use the @key derective union_Entity type _Service{sdl:String!} extend type Query{_entities(representations:[_Any!]!):[_Entitiy]! _service:_Service!} directive @external on FIELD_DEFINITION directive @requiees(fields:_FieldSet!) on FIELD_DEFINITION directive @provides(fields:_FieldSet!) on FIELD_DEFINITION directive @key(fields:_FieldSet!) on OBJECT | INTERFACE #this is an optional directive discussed below directive @extends on OBJECT | INTERFACE federation spec extend type Query{messtone: UserMesstone} type UserMesstone @key(fields: "idmesstone"){idmesstone: IDMESSTONE!} Annotate type references:type UserMesstone @key(fields: "idmesstone") @extends{idmesstone: IDMESSTONE! @external review:[Review]} Messtone partial schema type Review @key(fields: "idmesstone){idmesstone: IDMESSTONE! body:String author: UserMesstone product:Product} extend type UserMesstone @key(fields: "email robertharper616@gmail.com"){email robertharper616@gmail.com:String! @external} extend type Product @key(fields: "sku"){sku:String! @external} union _Entity Review | UserMesstone | Product l _emtities(representations:[_Any!]!):[_Entity]! Query GetTopProduceReview{topProducts{reviews{body}}} Query{topProducts{upc}} extend type Product @key(fields:"upc"){upc:String @external reviews:[Review]} {"query":..., "variables":{"_representations":[{"_ _typenameMesstone":"Product", "upc":"B00005N5PF"},...]}} /\ Messtone machines type...

SWAN

rharper@messtone.com:cloudshell:~(messtone-161906)Project Messtonebase64.get`OpenSwan to compile from source: The GNU Math Precision Library: Debian package names:libgmp-devMesstone Rpm package names: gmp gmp-devel Messtone Rpm users may need to install gcc if it is not installed on messtone system already.make, flex and bison: Debian package names: make,flex,bison Rpm package names: same as for Debian iproute2, iptable,sed,awk,bash,cut, and possibly other tools are required at runtime.Debian package names: iproute2, iptables the rest are usually there Rpm package names: same as for Debian python is also required for "ipsec verify".Running unit test: Debian package names: libpcap0.8-devmesstone,libpcap0.8, electric-fence,tcpdump Rpm package names: libpcap0.8-develmesstone,libpcap0.8, ElectricaFence, tcpdump Building with LIBNSS: Debian package names: libnspr4-devmesstone,libnss3-devMesstone,libnss-tools Rpm package names: same as for Debian. cd/usr/src/messtone make oldconfig make dep -this step is ignore on 2.6 systems) make bzImage install build OpenSwan from source Openswan directory: make programs make KERNELSRC=/usr/src/messtone module sudo make KERNELSRC=/usr/src/messtone install minstall The Openswan configuration file can be select which ipsec stack to use at runtime by using the "protostack=<klips|netkey|mast>"options in ipsec.conf.See the ipsec.conf man page for more information on configuration options/\ Messtone machines type..,

SECURITY

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Security Read and Write being access granted to the /apps/saas/msgs/<msgid> demo`rules_version='2';service cloud.firestore{match/databases/{database}/documents{match/apps/saas/msgs/{entry_idMesstone}{allow read:if request.query.limit<=10;allow write:if isValid(request.resource.data)function(entry)return entry.keys( ).hasOnly(["time", "msg"]) &&entry.msg is string &&entry.msg.size( )<100 &&entry.time==request.time}}}} private data read/write documents`...match/customer/{uid}{allow read,write:if request.auth.uid==uid;}...Systemctl, the argument is the nameMesstone that provide the services in Syntax:#systemctl status sshd #system status sshd #service sshd restart #systemctl restart sshd #systemctl stop sshd #systemctl restart sshd #systemctl kill sshd #chkconfig - -level 35 sshd #systemctl enable sshd #systemctl disable sshd #systemctl start sshd #systemctl enable sshd #systemctl stop sshd #systemctl disable sshd #systemctl status sshd #systemctl is-enabled sshd /\ Messtone machines type...

DATA

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Persistimg Customer Data firebaseui combining firebase with Observable: import{firebase,DocView,DocView}from @tomlarkworthy/firebaseui import{firebase,DocView,DocView}with{firebaseConfig as firebaseConfig}from "@tomlarkworthy/firebaseui" mapping the variable db to the firestore service.db=hv{uf:wp,hf:Hp,lf:Q, _f:rc,INTERNAL:Object,w_:qi,mf:"[DEFAULT]",Tf:nl,Ef: db=firebase.firestore( )Reading Data`viewof msgs=DocView{ }viewof msgs=new DocView(db.collection("apps").doc("saas").collection("msgs").limit(5).orderB("time", "desc"))`["fhgjhgjg", "hello everyone", "lkj;lkj", "police", "what"]`JSON.stringify(msgs.map(entry=>entry.msg).reverse( ),null,2)Writing Data`db.collection("collection").doc("doc").set({...}) import{html}from @observablehq/htl import{html}from '@observablehq/htl' Sfringified sdas hjh jh test`enter tsxt viewof ui={async function sendMsg(evt){if(evt.keyCode===13){await db.collection("apps").doc("saas").collection("msgs").add({time:firebase.firestore.FieldValue.serverTimestamp( ),msg:evt.target.value})}} return html`${msgs.map(entry=>html`<p>${entry.msg}</p>`).reverse( )}<input class="text"onkeydown=${sendMsg}></input><- -enter text`)

FireBase

rharper@messtone.com:cloudshell:~()$Project Messtonebase64.get`Firebase SDK Snippet Config Firebase Services`const firebaseConfig={apiKey:"AIzaSyD882c8YEgeYpNkX01fhpUDfioWl_ETQyQ", authDomain:"endpointservice.firebaseapp.com", databaseURL:"https://endpointservice.firebaseio.com", projectId:"endpointservice",storageBucket:"endpointservice.appspot.com",messagingSenderId:"1986724398",appId:"1:1986724398:web:9b8bc33895b45dd2e095bf"};<body>tag,firebaseComfig=Object{apiKey:firebaseConfig=({apiKey:AIzaSyD882c8YEgeYpNkX01fhpUDfioWl_ETQyQ",authDomain:"endpointservice.firebase.app.com",databaseURL:"https://endpointservice.firebaseio.com",projectId:"endpointservice",storageBucket:"endpointservice.appspot.com",messagingSenderId:"1986724398",appId:"1:1986724398:web:9b8bc33895b45dd2e095bf",uiConfig:{//https://github.com/firebase/firebaseui-web#configuration signInOptions:["google.com", "facebook.com", "phone", "anonymous],},}); import{viewof userMesstone}from @tomlarkworthy/firebaseui import{viewof userMesstone}with{firebaseConfig as firebaseConfig}from "@tomlarkworthy/firebaseui" `Messtone uid is ${usermesstone.uid}`<identity>.static.observableusermesstonecontent.com'

Messtone machines type...

SDK

  • rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`AWS Python SDK boto3`import boto3 client=boto3.client('workdocs')response=clientmesstone.abort_document_version_uploaded(AuthenticationToken='string',DocumentId='string',VersionId='string')response=client.activateuser(UserIdMesstone='string',AuthenticationToken='string') {'User':{'IdMesstone':'string',  'UsernameMesstone':'string', 'EmailAddress rharper@messtone.com':'string', 'GivenNameRobertHarper':'string', 'SurnameBuckeybo':'string', 'OrganizationIdMesstone':'string', 'RootFolderId':'string', 'RecycleBinFolderId':'string', 'Status':'ACTIVE' | INACTIVE | PENDING', 'Type':'USER' | 'ADMIN' | 'POWERUSER' | 'MINIMALUSER' | 'WOEKSPACESUSER', 'CreateTimestanp':datetime(2015,1,1), 'ModifiedTimestamp':datetime(2015,1,1), 'TimeZoneId':'string', 'Locale':'en' | 'fr' | 'ko' | 'de' | 'es' | 'ja' | 'ru' | 'zh_CN' | 'zh_TW' | 'pt_BR' | 'default', 'Storage':{'StorageUtilizedInBytes':123, 'StorageRule':{'Storage AllocatedInBytes':123, 'StorageType':'UNLIMITED' | 'QUOTA'}}}response=clientmesstone.add_resource_permise(AuthenticationToken':'string', 'ResourceId':'string', 'Prinicipals':[{'Id':'string', 'Type':'USERMESSTONE' | 'GROUP' | 'INVITE | 'ANONYMOUS' | 'ORGANIZATION', 'Role':'VIEWER' | 'CONTRIBUTOR' | 'OWNER' | 'COOWNER'},], 'NotificationOptions={'SendEmail':True|False, 'EmailMessage':'string'}){'ShareResults':[{'PrinicipalId':'string', 'InviteePrinicipalId':'string', 'Role':'VIEWET' | 'CONTRIBUTOR' | 'OWNER' | 'COOWNER', 'Status':'SUCCESS' | 'FAILURE', 'ShareId':'string', 'StatusMessage'},]}

Messtone machines Type...