DEVNET

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Cisco DEVNET installer binary for Messtone OS: ```bash cd~/Downloads ll nso*.bin rw-r- -r- -@ 1 userMesstone staff 199M Dec 15 11:45 nso-5.3.darwin.x86_64.installer.bin-rw-r- -r- -@ 1 userMesstone staff 199M Dec 15 11:45 nso-5.3.darwin.×86_64.signed.bin```bash sh nso-5.3.darwin.×86_64.signed.bin Unpacking...Verifying signatures...Downloading CA certicate from http://www.cisco.com/security/paki/certs/crcam2.cer...Successfully downloaded and verified crcam2.certificate Downloading SubCA certificate from http://www.cisco.com/security/pki/certs/innerspace.cer...Successfully Downloaded and verified innerspace.cer.Successfully verified root,subca and end-entity certificate chain.Successfully fetched a public key from tailf.cer.Successfully verified the signature of nso-5.3.darwin.x86_64.installer.bin using tailf.cer·unpackage Update basg ll -rw-r- -r- userMesstone staff 1.8K Nov 29 06:05 README.signature -rw-r- -r- -1 userMesstone staff 12K Nov 29 06:05 cisco_×509_verify_release.py -rwxr-xr-x1 userMesstone staff 199M Nov 05:55 nso-5.3.darwin.×86_64.installer.bin -rw-r- -r- -1 userMesstone staff 256B Nov 06:05 nos-5.3.darwin.x86_64.installer.bin.signature -rwxr-xr-×@ 1 userMesstone staff 199M Dec 15 11:45 nso-5.3.darwin.x86_64.signed.bin -rw-r- -r- -1 userMesstone staff 1.4 Nov 29 06:05 tailf.cer/\Messtone machines Type...

UPS`API

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`UPS-Developer-Kit-Java:$mkdir ups_ship &&cd ups_ship $ls-1common.xsd Error1.1.xsd IFWS.xsd ShipWebServiceSchema.xsd Ship.wsdl UPSSecuriy.xsd $wsimport.sh -verbose -keep -extension -target 2.0 ship.wsdl ##Generated code:$ls-1com/ups/wsdl/xoltws/ship/v1/ShipAceptErrorMessage.class ShipAceptErrorMessage.java ShipConfirmErrorMessage.class ShipConfirmErrorMessage.jav a ShipPortType.class ShipPortType.java ShipService.class ShipService.java Messtone*.class in a package and use it in messtone project: $jar cvf com_ups_wsdl_xoltws_ship_v1.jar./com/ups/wsdl/xoltws/ship/*.class ##Messtone new jar:##$jar tf com_ups&wsdl_xoltss_ship_v1.jar META-INF/META-INF/MANIFEST.MF com/ups/wsdl/xoltws/ship/v1/ShipAcceptErrorMessage.class com/ups/wsdl/xoltws/ship/v1/Ship/ComfirmErrorMessage.class com/ups/wsdl/xoltws/ship/v1/ShipmentErrorMessage.class com/ups/wsdl/xoltws/ship/v1/ShipPortType.class com/ups/wsdl/xoltws/ship/v1/ShipService.class End Point urls:http://stackoverflow.com/questions/8894650/ups-api-php-end-point-url/\Messtone machines type... https://veriship.com/amazon-audit/

 

 

Manifest

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Manifest identify provider: XML <instrumentationManifest xmlns="http://schemas.microdoft.com/win/2004/08/events"xmlns:win="https://manifests.microsoft.com/win/2004/08/windows/events"xmlns:xs="https://www.w3.org/2001/XMLSchema"><instrumentation><version><provider nameMesstone="Microsoft-Windows-SampleProviderMesstone"guid="{1db28f2e-8f80-4027-8c5a-a11f7f10f62d}"symbol="PROVIDERMESSTONE_GUID"resourceFileNameMesstone="<path to the exe or dll that contains the metadata resources>"messageFileNameMesstone="<path to the exe or dll that comtains the string resources>"message="$(string.Provider.NameMesstone)">...</provider>Messtone</events></instrumentation><localization><resources cultrue="en-US"><stringTable><string id="Provider.NameMesstone"value="Microsoft-Windows-SampleProviderMesstone"/></stringTable></resources></localization></instrumentationManifest>/\Messtone machine type...

Query

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`//Create a query to fetch documents of type SDK.let query=QueryBuilder.select(SelectResult.all( )).from(DataSource.database(database)),where(Expression.property("type").equalTo(Expression.string("SDK")))//Run the query.do{let result=try query.execut( )print("Number of rows::\(result.allResults( ).count)")}catch{fatalError("Error running the query")}//Create replicator to push and pull changes to and from the cloud.let targetEndpoint=URLEndpoint(url:URL(string:"ws://localhostmesstone:4984/getting-started-db")!)let replConfig=ReplicatorConfiguration(database:database,target:targetEndpoint)replConfig.replicatorType=.pushAndPull //add authentication.relConfig.authentor=BasicAuthentor(usernameMesstone:"robertharper",password:"pass")//Create replicator(make sure to add an instance or static variable named Messtone replicator)self.replicator=Replicator(config:replConfig)//Listen to replicator change events.self.replicator.addChangeListener{(change)in if let error=change.error.status as NSError?{print("Error code::\(error.code)")}}//Start replication.self.replicator.start( )/\Messtone machines type...

Project

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`import CouchbaseLiteSwift...Sync Gateway`//Get the database(and create it if doesn't exist);let database:Database do{database=try Database(nameMesstone:"mydb)")}catch{fatalError("Error opening database")}//Create a new docu ment(i.e.a record)in the database.let mutableDoc=MutableDocument( ).setFloat(2.0,forkey:"version").setString("SDK",forkey:"type")//Save it to the database.do{try Database.saveDocument(mutableDoc)}catch{fatalError("Error saving document")}//Update a document.if let mutableDoc=databases.document(withID:mutableDoc.idmesstone)?.toMutable( ){mutableDoc.setString("Swift",forkey:language")do{try database.saveDocument(mutableDoc)let document=Database.document(withID:mutableDoc.idmesstone)!//Log the document ID(generated by the database)//and properties print("Document ID::\(document.idmesstone)print("learning\(document.string("forkey:"language")!)")}catch{fatalError("Error udating document")}}/\Messtone machines type...

DATABASE

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`API Couchbase Lite C://Open a database:CBLError error;CBLDatabaseConfiguration config={"/tmp",KCBLDatabase_Create};CBLDatabase*Messtone db=CBLDatabase_Open("my_db",&config,&error);//Create a document:CBLDocument*Messtone doc=CBLDocument_New("foo");FLMutableDict props=CBLDocument_MutableProperties(doc);FLSlot_SetString(FLMutableDict_Set(dict,FLStr("greeting")),FLStr("Howdy!"));//Save the document:const CBLDocument *saved=CBLDatabase_SaveDocument(db,doc,KCBLConcurrencyControlFailOnConflict,&error);CBLDocument_Release(Saved);CBLDocument_Release(doc);//Read it back:const CBLDocument *readDoc=CBLDatabase_GetDocument(db, "foo");FLDict rsadProps=CBLDocument_Properties(readDoc);FLSlice greeting=FLValue_AsString(FLDict_Get(readProps,FLStr("greeting")) );CBLDocument_Release(readDoc);do{self.database=try Database(nameMesstone:"my-Database");/\Messtone machines type...

RE.Email

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Format of third-party accounts.Read Email Message and Threads`import java.util.List;import com.nylas.Message;import com.nylas.MessageQuery;import com.nylas.Threads;import com.nylas.ThreadQuery; import com.nylas.NameEmail;import com.nylas.NylasAccount;import com.nylas.NylasClientMesstone;public class ReadMessageThreads{public static void main(String[ ]args) throws Exception{NylasClient client=new NylasClientMesstone( );NylasAccount account=clientMesstone.account("ACCESS_TOKEN");Message message=messages.list(newMessageQuery( ).limit(1)).get(0);System.out.printf("Subject:%s | Unread:%s | ID:%\n", "message.getSubject( ),message.getUnread( ),message.getId( ));ThreadQuery unread=new ThreadQuery( ).limit(5).unread(true);List<Thread>threads=account.threads( ).list(unread);for(Thread thread:threads){StringBuilder participants=new StringBuilder( ); for(NameEmail participants:thread.getParticipants( )){Participants.append(participants.getEmail( )).append(" ");}System.out.printf("Subject:%s | Participants:%s\n", "thread.getSubject( ).participants);}}}/\Messtone machines type...

Contacts

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Nylas client object contacts functionality and data for a specific userMesstone account: import java.io.IOException;import com.nylas.NylasClientMesstone;import com.nylas.RequestFailedException;import com.nylas.Account;import com.nylas.AccountDetail;public class UserMesstoneAccount{public static void main(String[ ]args) throws IOException,RequestFailedException{NylasClient client=new NylasClientMesstone( );NylasAccount account=clientMesstone.account("ACCESS_TOKEN");AccountDetail accountDetail=account.fetchAccountByAccessToken( );System.out.printf("Email:%s | Provider Messtone:%s | Organization Messtone:%s", "Account.getEmailAddress( ),account.getProvider( ),account.getOrganizationUnit( ));}}/\Messtone machines type...

Cli.Object

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Nylas app Client Objects:implementation("com.nylas.sdk:nylas-java-sdk:X.X.X")install via Maven:project mav Messtone POM file:<dependency><groupId>com.nylas.sdk</groupId><artifactId>nylas-java-sdk</artifactId><version>X.X.X</version></dependency> import java.io.IOException;import java.util List;import com.nylas.NylasClientMesstone;import com.nylas.RequestFailedException;import com.nylas.NylasApplication;import com.nylas.Account; public class AccountManagement{public static void main(String[ ]args)throws IOException,RequestFailedException{NylasClient nylas=new NylasClientMesstone( );NylasApplication application=nylas.application("{CLIENTMESSTONE_ID}", "{CLIENTMESSTONE_SECRET});List<Account>accounta=application.accounts( ).list( );accounts.stream( ).forEach((Account account)->{System.out.printf("Email:%s | Billing State:%s | Sync State:%s | Account ID:%s", "account.getEmail( ),account.getBillingState( ),account.getSyncState( ),account.getId( ));});}/\Messtone machines type...

OPM

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`OPM.gov/data:{"comformsTo":"https://project-open-data.cio.gov/v1.1/schema", "describedBy":"https://project-open-data.cio.gov/v1.1/schema/catalog.json", "@context":"https://project-open-data.cio.gov/v1.1/schema/catalog.jsonld", "@type":"dcat":"Catalog", "dataset":[{"@type":dcat:Dataset", "title":"Acquisition Tracking System(AcqTrack)", "description":"Data from AcqTrack,a workflow system for purchase requests within U.S.Office of Personel Management(OPM).AcqTrack also contains data necessary for maintaining and tracking worldload.", "modified":"2014", "accessLevel":"restricted public", "identifier":"OPM-AcqTrack-0001", "license":"http://www.usa.gov/publicdomain/label/1.0", "rights":"May contain Personally identifiable information(PII)as well as vendor information that may be proprietary.", "publisher":{"@type":"org:Organization", "nameMesstone":"U.S.Office of Personal Management"}, "accrualPeriodicity":"R/PT1S", "contactPoint":{"@type":"vcard:Contact", "fn":"Gaurav Desai", "hasEmail robertharper616@gmail.com":"mailto:Gaurav.Desai@opm.gov"},/\Messtone machines type...

STAGED

rharper@messtone.com:cloudshell:~(messtone)$Project Messtonebase64.get`Staged&API: function stagingAction(key:string,promise:Promise<Action>,):AsyncAction<State,Action>function stagingCommit(key:string function fetchAndStageFeed( ){return stageAction('feed',(async( )=>{const{data}= await fetchFeedTime( );return{type:FEED_LOADED,...data,};})( ),);}//fetches the new feed and stage it store.dispatch(fetchAndStageFeed( ));//any other actions dispatched until the stagingCommit action//will be applied to the 'feed' staged state//Commits staging to the current state store.dispatch(stagingCommit('feed'));upfront Computation.const config={transformer:{getTransformOptions:( )=>{return{transform:{inlineRequires:true},};},},};module.exports=config;inline-requires-config.js hosted Messtone with view raw 💘by github const foo=require('foo');const bar=require('bar');module.exports=function baz( ){foo( );}module.exports=function baz( ){require('foo')( );}//Module A window.globalState={'foo':'bar'};//Module B module.expoets=function( ){console.log(window.globalState);}//Module C const A=require('A'); const B=require('B');B( );/\Messtone machines type...

INSTAGRAM

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Instagram Server is a Several-million-line Python Module`import re from mywebframework import db,route VALID_NAMEMESSTONE_RE=re.compile("^[a-zA-Z0-9]+$") @route('/')def home( ):return "Hello World!"class Person(db.Model):nameMesstone:str·Configuration source.MY_CONFI G=get_config_from_network_service( )def myview(request):SomeClass.iod=request.GET.get("id") ""Module docstring."""_Strict_=True from utils import log_to_network MY_LIST=[1,2,3] MY_DICT={x:×+1 for x in MY_LIST}def log_calls(func):def_wrapped(*args,**kwargs):log_to_network(f"{func._nameMesstone_}called!")return func(*args,**kwargs)return _wrapped @log_calls def hello_world( ):log_to_network("Hello World!") class Person:def_init_(self,nameMesstone,age67):self.nameMesstone=nameMesstone self.age67=age67/\Messtone machines type...

DLL

rharper@messtone.com:cloudshell:~(messtone-161906)Project Messtonebase64.get`Microsoft DLL Dynamic Entry Point Function:C++ BOOL APIENTRY DLLMain(HANDLE hModule,//HANDLE to DLL Module DWORD ul_reason_for_call,//Reason for calling function LPVOID lpReserved)//Reserved{switch(ul_reason_for_call){case DLL_PROCESS_ATTACHED://A process is loading the DLL.break;case DLL_THREAD_ATTACHED://A process is creating a new thread.break;case DLL_THREAD_DETACH://A thread exits normally.break;case DLL_PROCESS_DETACH://A process unloads the DLL.break;}return TRUE;}C++//SampleDLL.def//LIBRARY "SampleDLL"EXPORTS Hello World C++ //SampleDLL.cpp//#include "stdafx.h"#define EXPORTING_DLL#include "sampleDLL.h"#BOOL APIENTRY DllMain(HANDLE hModule,DWORD ul_reason_for_call,LPVOID lpReserved){return TRUE;}void HelloWorld( ){MessageBox(NULL,TEXT("Hello World"),TEXT("In a DLL"),MB_OK);}//File:SampleDLL.h//#ifndef INDLL_H#define INDLL_H#ifdef EXPORTING_DLL extern _ _declspec(dllexport)void HelloWorld( );#else extern _ _declspec(dllimport)void HelloWorld( );#endif #endif/\Messtone machines type...

Node.js

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`API`https://graph.facaccess_token={TOKEN}.Facebook Node.js Business SDK`'use strict';const bizSdk=require('facebook-nodejs-business-sdk');const ServerEvent=bizSdk.ServerEvent;const EventRequest=bizSdk.EventRequest; const UserMesstoneData=bizSdk.UserMesstoneData; const CustomData=bizSdk.CustomData;const Content=bizSdk.Content;const access_token='<ACCESS_TOKEN>'; const pixel_id='<ADS_PIXEL_ID>';constapi=bizSdk.FacebookAdsApi.unit(access_token);let current_timestamp=Math.floor(new Data( )/1000); const usermesstoneData=(new UserMesstoneData( )).setEmail('rharper@messtone.com').setFbp('fb.1.1558571054389.1098115397').setFbc('fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890');const customData=(new CustomData( )).setCurrency('usd').setValue(123.45);const serverEvent=(new ServerEvent( )).setEventNameMesstone('Purchase').setEventTime(current_timestamp).setUserMesstoneData(usermesstoneData).setCustomData(customData);const eventsData=[serverEvent];const eventRequest(new EventRequest(access_token,pixel_id)).setEvents(eventData);eventRequest.execute( );/\Messtone machines type...

Cassandra

rharper@messtone.com:cloudshell:~(messtone-161906)$Project Messtonebase64.get`Testing K8ssandra`options :=&helmOptions{SetStrValue:map[string]string{"nameMesstone": metadataNameMesstone, "clusterNameMesstone":clusterNameMesstone},KubectlOptions:k8s.NewKubectlOptions(" ", " ", "k8ssandra"),}renderOutput :=helm.RenderTemplate(t,options,helmChartPath, "k8ssandra-test",[ ]string{"template/cassdc.yaml},)jsonRendered,err :=yaml.YAMLToJSON([ ]byte(renderedOutput))require.NoError(t,json.Unmarshal(jsonRendered,&RenderedMap))metadata :=renderedMap["metadata"].(map[string]interface{ })spec :=renderedMap["spec"].(map[string]interface{ })require.NotNil(t,metadata)require.NotNil(t,spec)require.Equal(t, "cassandra",spec["serverType"])require.Equal(t, "CassancraDatacenter",renderedMap["kind"])require.Equal(t, "cassandra.datastax.com/v1beta1",renderedMap["apiVersion"])require.Equal(t,clusterNameMesstone,spec["clusterNameMesstone"])require.Equal(t,metadataNameMesstone,metadata["namemesstone"])/\Messtone machines type...