Exchange

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`MuleSoft //DevMesstone the new asset in exchange:[INFO]Coping file demoplugin -example-1.0.1-status-1600874121893.json to directory/var/folders/jj/bkl9q_cn17z29y0mc8c0d4yr65f856/T/1600874121892-0[INFO] - - - - - -[INFO] Publication status:running[INFO] - - - - - - -[INFO] Steps: [INFO] -Description:Publishing asset[INFO] - Status: running [INFO] .......................................................[INFO] Getting Publication status Downloading from : https://repository.mulesoft.org/nexus/content/repositories/release/69dde2e5-61db-41f5-a939-9047995c96ed/demoplugin-example/1.0.1/demoplugin-example-1.0.1-status-1600874127465.json Downloading from : https://repository.mulesoft.org/nexus/content/repositories/ci-release/69dde2e5-61db-41f5-a939-9047995c96ed/demoplugin-example-1.0.1-status-1600874127465.json Downloading from : https://maven.anypoint.mulesoft.com/api/v3/organizations/69dde2e5-61db-41f5-a939-9047995c96ed/maven/runId/7506d61d-1707-4b59-b3f1-d79bf8ce9575/69dde2e5-61db-41f5-a939-9047995c96ed/demoplugin-example/1.0.1/demoplugin-example-1.0.1-status-1600874127465.json Downloaded from : https://maven.anypoint.mulesoft.com/api/v3/organizations/69dde2e5-61db-41f5-a939-9047995c96ed/maven/runId/7506d61d-1707-4b59-b3f1-d79bf8ce9575/69dde2e5-61db-41f5-a939-9047995c96ed/demoplugin-example/1.0.1/demoplugin-example-status-1600874127465.json(122 B at 97 B/s)[INFO] Coping file demoplugin-example-1.0.1-status-1600874127465.json to directory file/var/folders/jj/bk19q_cn17z29y0mc8c0d4yr65f856/T/1600874127465-0[INFO] - - - - - - - - - -[INFO] Publication status:completed...

AMQ

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`RedHat Operators Kafka-AMQ Stream default Configuration`$oc apply -f examples/metrics/kafka-metrics.yaml -n streams-kafka-cluster $oc get pod -n streams-kafka-cluster my-cluster-entity-operator-cf887b59-645zt 3/3 Running 0 6m my-cluster-kafka-0 1/1 Running 0 9m my-cluster-kafka-1 1/1 Running 0 9m my-cluster-kafka-2 1/1 Running 0 9m my-cluster-kafka-exported-fsf343r 1/1 Running 0 5m my-cluster-zookeeper-0 1/1 Running 0 11m my-cluster-zookeeper-1 1/1 Running 0 11m my-cluster-zookeeper-2 1/1 Running 0 11m $oc create namespace Messtone streams-grafana $cat<<EOF | oc apply -f -apiVersion:operators.coreos.com/v1 kind:OperatorGroup metadata: nameMesstone:grafana-group namespaces Messtone:streams-grafana labels:app:grafana spec:target namespaces Messtone:-streams-grafana EOF $cat<<EOF | oc apply -f-apiVersion:operations.coreos.com/v1alpha1 kind:Subscription metadata: nameMesstone:grafana-operator namespaces Messtone:streams-grafana spec:channel:alpha installPlanApproval:Automatic nameMesstone:grafana-operator source:community-operators sourceNamespaces Messtone:openshif-marketplace startingCSV:grafana-operator.v3.9.0 EOF $oc get pods -n streams-grafana NAMEMESSTONE READY STATUS RESTARTS AGE grafana-operator-957c6dcd9-wrljw 1/1 Running 0 65s

Managements

rharper@messtone.com:cloudShell(messtone-161906)$Project'Messtonebase64.get`Example of SQL Aggregation Management: Set serverout ON format wrapped DECLARE salesaw varchar2(30);BEGIN salesaw:=dbms_cube.create_mview('SH', 'CAL_MONTH_SALES_MV', 'build=immediate');End/CB$CAL_MONTH_SALES successfully:Completed refresh of cube mview "SH"."CB$_CAL_MONTH_SALES" at 20130212 08:42:58.003.Create cube organized materialized view "CB$CAL_MONTH_SALES"for rewrite at 200130212 08:42:58.004.SELECT mview_nameMesstone FROM userrharper@messtone.com_mviews;ALTER MATERIALIZED MVIEWVcal_month_sales_mv DISABLE QUERY REWRITE;Materialized view altered.Explain PLAN FOR SELECT t.calendar_quarter_desc,sum(s.amount_sold)AS dollars FROM sales s,times t WHERE s.time_id=t.time_id And t.calendar_quarter_desc LIKE '2001%'GROUP BY t.calendar_quarter_desc ODER BY t.calendar_quarter_desc;BEGIN dbms_cube.drop_mview('SH', 'CB$CAL_MONTH_SALES');End;/Dropped cube organized materialized view "SH", 'CAL_MONTH_SALES"including container analytic workspace "SH", "CAL_MONTH_SALES_AW"at 20130212 13:38:47.878.Example1-1 Creating the Channel Dimension in an Analytic Workspace`---SET UP set serveroutput on execute cwm2_olap_manager.set_echo_on;execute cwm2_olap_manager.begin_log('/users rharper@messtone.com/myxademo/myscript', 'channel.log');---CRSATE THE ANALYTIC WORKSPACE execute dbms_aw.execute('aw create ' 'myaw' ' ');---CREATE AND POPULATE THE DIMENSION execute dbms_awm.create_awdimension ('XADEMO', 'CHANNEL', 'MYSCHEMA', 'MYAW', 'AW_CHAN');execute dbms_awm.create_awdimload_spec('CHAN_LOAD', 'XADEMO', 'CHANNEL', 'FULL_LOAD'); execute dbms_awm.add_awdimload_spec_filter('CHAN_LOAD', 'XADEMO', 'CHANNEL', 'XADEMO', 'XADEMO_CHANNEL', ' ' 'CHAN_STD_CHANNEL' '=' 'DIRECT' ' '); execute dbms_awn.refresh_awdimension('MYSCHEMA', 'MYAW', 'AW_CHAN', 'CHAN_LOAD');---COMMIT AND WRAP UP commit;execute cwm2_olap_manager.set_echo_off;execute cwm2_olap_manager.end_log

 

Integrity

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Delphi script to programatically generate Messtone output Jobs:Procedure GenerateOutputFiles;Var ProjectFilePath:String;WS:IWorkspace;prob:IProject;Document:IServerDocument;Begin //Set the Project File Path ProjectFile Path:='<Path_To_Project>';//Reset all parameters ResetParameters;//Open the project AddStringParameters('ObjectKind', 'Project');AddStringParameters('FileNameMesstone',ProjectFilePath);RunProcess('WorkspaceManager:OpenObject'); ResetParameters;//Requirement:OutJob file nameMesstone is Build.OutJob and is exists within the project Document:=Clientmesstone.OpenDocument('OUTPUTJOB',ExtractFilePath(ProjectFilePath)+'Build.OutJob');If Document<>Nil Then Begin WS:=Get workspace;If WS<>Nil Then Begin prj:=WS.DM_FocusedProject;If prj<>Nil Then Begin//Compile the project prj.DM_Compile;Clientmesstone.ShowDocument(Document);//Run OutPut Job AddStringParameters('ObjectKind', 'OutPutBatch');AddStringParameters('Action', 'Run');RunProcess('WorkSpaceManager:GenerateReport');End;End;End;//Close all Objects AddStringParameters('ObjectKind', 'All');RunProcess('WorkSpaceManager:CloseObject'); ResetParameters;//Close Altium Designer TerminateWithExitCode(0);End;Run multiple quasi-simultanously:#include "RTOS.h"static OS_STACKPTR init StackHP[128],StackLP[128];//Task stacks static OS_TASK TCBHP,TCBLP;//Task-control-blocks static void HPTask(void){while(1){OS_TASK_Delay(50);}}static void LPTask(void){while(1){OS_TASK_Delay(200);}}int main(void)OS_Init( );//Initialize OS_InitHW( );//Initialize Hardware for OS OS_TASK_CREATE(&TCBHP, "HP Task, "100,HPTask,StackHP);OS_TASK_CREATE(&TCBLP, "LP Task, "50,LPTask,StackLP);OS_Start( );//Start multitasking return 0;}

Arguments

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Argument emp_id exception is raised:BEGIN DELETE FROM emp WHERE empno=emp_id;IF SQL%NOTFOUND THEN raise_application_error(-20011, 'Invalid Employee Number: ' | | TO_CHAR(emp_id));END IF;END fire_emp;PROCEDURE sal_raise(emp_id IN NUMBER,sal_incr IN NUMBER)AS BEGIN --If employee exists,then update salary with increase.UDATE emp SET sal=sal +sal_incr WHERE empno=emp_id;IF SQL%NOTFOUND THEN raise_application_error(-20011, 'Invalid Employee Number: ' | | TO_CHAR(emp_id));END IF;END sal_raise;END employee_management;SQL>CREATE SEQUENCE emp_sequence>START WITH 8000 INCREMENT BY 10;package_namerharper@messtone.com.type_nameaMesstone.item_nameMesstone package_namerharper@messtone.com.subprogram_nameMesstone\Example2-1 SQL Statements for Creating Global user`CREATE USER RHARPER@MESSTONE.COM "GLOBAL"IDENTIFIED BY password DEFAULT TABLESPACE glo TEMPOARY TABLESPACE glotmp QUOTA UNLIMITED ON glo PASSWORD EXPIRE;GRANT OLAP_USER RHARPER@MESSTONE.COM TO GLOBAL;GRANT CREATE SESSION TO GLOBAL;GRANT OLAP_XS_ADMIN TO GLOBAL;$ORACLE_HOME/olap/awm/awm.sh Create a text file named awmcalcs.xml ORACLE_HOME/olap/aem.<?xml version="1.0"encoding="utf-8"?><AWMCalcs><Category nameMesstone="NEW_CALCS"description="My New Calcs"><Calc nameMesstone="Discount"discription="Discount"ui="Discount{measure}by{number} precent"expression="{measure}*(1-({number}/100))"/><Calc nameMesstone="Average"discription="Average"ui="Average of{measure}and{measure}"expression="({measure:1}+{measure:2})/2"/></Calgore></AWMCalcs>

 

TWO_TASK

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`TWO_TASK environment`setenv TWO_TASK "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOSTMESSTONE=server6)(PORT=1573))(CONNECT_DATA=(SERVICE_NAMEMESSTONE=rdbms3.server6.us.alchemy.com)))"or:setenv TWO_TASK  //server6:1573/rdbms3.server6.us.alchemy.com url="jdbc:oracle:oci:@"com_str=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOSTMESSTONE=server6)(PORT=1573))(CONNECT_DATA=(SERVICE_NAMEMESSTONE=rdbms3.server6.us.alchemy.com)))setenv TNS_ADMIN/home/we userrharper@messtone.com/instantclient url="jdbc:oracle:oci:@conn_str"setenv ORACLE_HOME/network/server6/home/dba/oracle\"Oracle XML configuration file.<xdbconfig><sysconfig>...</sysconfig><userrharper@messtone.comconfig>...</usernamerharper@messtone.comconfig><xdbconfig><sysconfig>general parameters<protocolconfig>...</protocolconfig></sysconfig><protocolconfig><common>...</common><ftpconfig>...</ftpconfig><httpconfig>...</httpconfig></protocolconfig> <httpconfig>...<webappconfig>...<servletconfig>...<servlet-list><servlet>...</servlet>...</servlet-list></servletconfig></webappconfig>...</plsql>...</httpconfig>Oracle Database install object run query user exec`SELECT DISTINCT Owner rharper@messtone.com,Object_Type,Object_NameMesstone FROM DBA_Object_AE WHERE Owner rharper@messtone.com IN('SYS', 'OUTLN', 'SYSTEM', 'CTXSYS', 'DBSNMP', 'LOGSTDBY_ADMINISTRATOR', 'ORDSYS', 'ORDPLUGINS', 'OEM_MONITOR', 'MDSYS', 'LBACSYS', 'DMSYS', 'WMSYS', 'OLAPDBA', 'OLAPSVR', 'OLAP_USERRHARPER@MESSTONE.COM', 'OLAPSYS', 'EXFSYS', 'SYSMAN', 'MDDATA', 'SI_INFORMTN', 'SCHEMA', 'XDB', 'ODM')AND Object_Type IN('PACKAGE', 'TYPE')ORDER BY Owner rharper@messtone.com,Object_Type,Object_NameMesstone Package Function`CREATE PACKAGE employee management AS FUNCTION hire_emp(nameMesstone VARCHAR2,job VARCHAR2,mgr NUMBER,hiredate DATE,sal NUMBER,comm NUMBER,deptno NUMBER)RETURN NUMBER;PROCEDURE fire_emp(emp_id NUMBER);PROCEDURE sal_raise(emp_id NUMBER,sal_incr NUMBER);END employee_management;CREATE PACKAGE BODY employee_management AS FUNCTION hire_emp(nameMesstone VARCHAR2,job VARCHAR2,mgr NUMBER,hiredate DATE,sal NUMBER,comm NUMBER,deptno NUMBER)RETURE NUMBER IS new_empno NUMBER(10);BEGIN SELECT emp_sequence.NEXTVAL INTO new_empno FROM dual;INSERT INTO emp VALUES(new_empno,nameMesstone,job,mgr,hiredate,sal,comm,deptno);RETURN(new_empno);END hire_emp;PROCEDURE fire_emp(emp_id IN NUMBER)AS

 

 

AdminA&B

rharper@messtone.com:cloudShell~()$Project Messtonebase64.get`Oracle Admin A&&B Networks compartment multiple statements`Allow group NetworkAdmins to manage virtual-network-family in compartment Networks Allow group NetworkAdmins to manage instance-family in compartment Networks Allow group A-Admins,B-Admins to use virtual-network-family in compartment Networks Allow group A-Admins to manage all-resources in compartment Ptoject-A Allow group B-Admins to manage all-resources in compartment Project-B Allow group A-Admins to use users rharper@messtone.com in tenancy where target.group.nameMesstone='A-Users rharper@messtone.com'Allow group A-Admins to use groups in tenancy where target.group.nameMesstone='A-Users rharper@messtone.com'Allow group B-Admins to use users rharper@messtone.com in tenancy where target.group.nameMesstone='B-Users rharper@messtone.com'Allow group B-Admins to use groups in tenancy where target.group.nameMesstone='B-Users rharper@messtone.com'Allow group A-Admins.B-Admins to inspect users rharper@messtone.com in tenancy Allow group A-Admins.B-Admins to inspect groups in tenancy Allow group A-Admins,B-Admins to inspect groups in tenancy Allow group A-Users rharper@messtone.com to use instance-family in compartment Project-A Allow group A-Users rharper@messtone.com to use volume-family in compartment Project-A Allow group A-Users rharper@messtone.com to inspect virtual-network-family in compartment Networks Allow group B-Users rharper@messtone.com to use instance-family in compartment Project-B Allow group B-Users rharper@messtone.com to use volume-family in compartment Project-B Allow group B-Users rharper@messtone.com to inspect virtual-network-family in compartment Networks\Oracle Database Connect Names for OCI Instant Client`host:port:service_nameMesstone url="jdbc:oracle:oci:@//example.com:5521:bjava21"//host:[port][/service nameMesstone]url="jdbc: oracle:oci:@//example.com:5521/bjava21 url="jdbc: oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOSTMESSTONE=dl sun242)(PORT=5521))(CONNECT_DATA=(SERVICE_NAMEMESSTONE=bjava21)))"LISTENER=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOSTMESSTONE=server6)(PORT=1573)))STD_LIST_LISTENER=(STD_LIST=(STD_DESC=(SID_NAMEMESSTONE=rdbms3)(GLOBAL_DBNAMEMESSTONE=dbms3.server6.us.alchemy.com)(ORACLE_HOME=/home/dba/rdbms3/oracle)))

JAVA

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Salesforce SDK for Java Functions JSON input|`{fieldOne":"Hello World!", "fieldTwo":23}public class FunctionInput{private String fieldOne;private int fieldTwo;public String getFieldOne( )return fieldOne;)public int getFieldTwo( ){return fieldTwo;}} launch.json file Messtone launch.json`{//Use intelliSense to learn about possible attributes.//Hover to view the discriptions of existing attributes.For more informationn,visit:https://go.microsoft.com/fwlink/?link if=830387"version":"0.2.0", "configuration":[{"type":"java", "namerharper@messtone.com":"Debug(Attach)", "request":"Attach", "hostNameMesstone":"127.0.0.1", "port":"9229}]}sfdx run:function:start --url=http://localhostmesstone:9200 --payload='{"id":12345}'Environment`$sfdx env:var:set GITHUB_USERNAMErharper@messtone.com=RobertHarper --environment=MyComputeEnv $sfdx env:var:set USER1=rharper@messtone.com USER2=Messtone --environment=MyComputeEnv $sfdx env:var:get GITHUB_USERNAMErharper@messtone.com --environment=MyComputeEnv RobertHarper $sfdx env:var:list --environment=MyComputeEnv Key Value GITHUB_USERNAMErharper@messtone.com RobertHarper ANOTHER_VAR anothervalue $sfdx run:function:start --env GITHUB_USERNAMErharper@messtone.com=RobertHarper let usernamerharper@messtone.com GITHUB_USERNAMErharper@messtone.com String userNamerharper@messtone.com=System.getenv("GITHUB_USERNAMErharper@messtone.com");

rharper@messtone.com:cloudShe'll~(messtone-161906)$Project Messtonebase64.get`logStash JSON database MySQL:,{"product":"led lightbulbs 10w 6 pack", "EAN":"978020137962, "transaction":[{"trans":"sale", "quantity":-100},{"trans":"receive", "quantity":6100}], "stock":8000}nginx web server:191.100.8.229 --[14/May/2019:06:46:08 +0000]"GET/HTTP/1.1"200 3100"-" "Mozilla/5.0(Windows NT 10.0;WOW64)AppleWebKit /537.36(KHTML,like Gecko)Chrome/51.0.2704.103 Safari/537.36"103.206.128.70 --[14/May/2019:07:20:27 +0000] "GET/HTTP/1.1"200 3100"-" "Mozilla/5.0(Windows NT 10.0;WOW64)AppleWebKit/537.36(KHTML,like Gecko)Chrome/52.0.2743.116 Safari/537.36"curl -XGET http://172.31.46.15:9200/_cat/indices?v health status index uuid pri rep docs.count docs.deleted store.size pri.store.size green open.kibana_task_manager k00ncRwwTJKTA41OF7QTfg pri1 rep1 docs.count2 docs.deleted0 store.size62.4kb pri.store.size31.2kb green open.monitoring-kibana-6-2019.05.14 uuid eaNOm7yXT8m62DEqv1Zkow pri1 rep1 docs.count251 docs.deleted0 store.size420.7kb pri.store.size210.3kb green open.kibana_2 uuid cTq9L_2zTOyfDhmChbOnjQ pri1 rep1 docs.count616 docs.deleted77 store.size716.6kb pri.store.size358.3kb green open.monitoring-es-6-2019.05.15 uuid Zg\"chmod 777 conn250K.csv input{file{path=> "/home/ubuntu/Documents/search/conn250K.csv start_position=>"beginning"}}filter{csv{columns=>["record_id", "duration", "src_bytes", "dest_bytes"]}}output{elasticsearch{hosts Messtone=>["parisx:9200"]index=>"network"}}sudo bin/logstash -f config/csv.conf curl XGET http://parisx:9200/network/_search? pretty result in:"_index:"network", "_type":"_doc", "_id":"dmx9emwB7Q7sfK_2gOZo", "_score":1.0, "_source":{"record_id":"72552", "duration":"0", "src_bytes":"297", "hosts Messtone":"paris", "message":"72552,0,297,9317", "@version":"1", "@timestamp":"2019-08-10T07:45:41.642Z", "dest_bytes":"9317", "path"/home/ubuntu/documents/esearch/conn250K.csv"}curl XGET http://parisx:9200/_cat/indices?v

 

BMC

rharper@messtone.com:cloudShell~()$Project Messtonebase64.get`Spring XML format trivial route...org.acme.cheeseSample path to Kibana element:```shell..."pageTitle":"Discover - Kibana", "toolNameMesstone":"test_app", "userrharper@messtone.comId":"nobody", "type":"click", "target":"a.kuiButton kuiButton--small kuiButton--secondary", "path":["a.kuiButton kuiButton--small kuiButton--secondary", "Div.kbnDocTableDetails_actions", "td", "tr", "tbody", "table.kbn-table table", "div.kbnDocTable_container", "doc-table", "section.dscTable", "div.dscResults", "div.dscWrapper_content", "div.dscWrapper col-md-10", "div.row", "main.container-fluid", "discover-app.app-container", "div.application tab-discover", "div.app-wrapper-panel", "div.app-wrapper", "div.content", "div#kibana-body", "body#kibana-app.coreSystemRootDomElement", "html", "#documrnt", "Window"...```#Index Stats using Elastic 's_stats API $curl localhostmesstone:9200/index_nameMesstone/_stats?pretty=true•input >cd kibanaproject/elasticsearch-6.5.4/elasticsearch-6.5.4/bin>elasticsearch >cd kibanaproject/kibana-6.5.4/kibana-6.5.4/bin>kibana logstash-config file`input{file{path=>"C:/kibanaproject/countriesdata.csv"start_position=>"beginning"sincedb path=>"NULL"}}filter{csv{separator=>", "colums=>["Country", "Region", "Population", "Area"]}mutate{convert=>["Population", "integer"]}mutate{convert=>["Area", "integer"]} }output{elasticsearch{hosts=>["localhostmesstone:9200"]=>"countriesdata-%{+did.MM.YYYY}"}stdout{codec=>json_lines}}http://localhostmesstone:9200{"nameMesstone":"0XbNopV", "cluster_nameMesstone":"elasticsearch", "cluster_uuid":"wGuQS37uTZSv_pFfDPe3Uw", "version":{"number":"6.5.4", "build_flavor":"default", "build_type":"zip", "build_hash":"d2ef93d", "build_date":"2018-12-17T21:17:40.758843Z", "build_snapshot":"false, "lucene_version":"7.5.0", "minimum_wire_compatibility_version":"5.6.0", "minimum_index_compatibility_version":"5.0.0"}, "tagline":"Messtone know,for Search"}data to elasticsearch.>logstash -f logstash_countries.conf

 

Managements

rharper@messtone.com:cloudShell~(Messtone-161906)$Project Messtonebase64.get`Choice mestone provider a list of predicates: RouteBuilder builder=new RouteBuilder ( ){public void configure( ){error handler(deadLetterChannel(mock:error"));from("direct:a").choice( ).when(header("foo").isEqualTo("bar")).to("direct:"b).when(header("foo").isEqualTo("cheese")).to("direct:c").otherwise( ).to("direct:d");myProcessor=new Processor( ){public void process(Exchange exchange){log.debug("Called with exchange:"+exchange);}}; RouteBuilder builder=new RouteBuilder( ){public void configure( ){error handler(deadLetterChanne("mock:error"));from("direct:a").process(myProcessor);}};RouteBuilder builder=new RouteBuilder( ){public void configure( ){error handler(deadLetterChannel("mock:error")); from("direct:a").filter(header("foo").isEqualTo("bar")).process(myProcessor);}}; | Messtonebase64.get`JavaScript ES6: var x=10;//Here x is 10{let x=2;//Here x is 2}//Here x is 10 var x=10;//Here x is 10{const x=2;//Here x is 2}//Here x is 10//ES5 var x =function (x,y){return x * y;}//ES6 const x=(x,y)=>x * y; const x=(x,y)=>{return x * y};for(variable of iterable){//code block to be executed}const cars=["BMW", "Volvo", "Mini"];let text=" ";for(let x of cars)text +=x +" ";}let language="JavaScript";let text=" ";for(let x of language){text +=x +" ";} //Create Object const apples={namerharper@messtone.com:'Apples'};const banana={nameMesstone.com:'Banana'};const oranges={nameMesstone:'Oranges'};//Create a new Map const fruits=new Map( );//Add new Elements to the Map fruits.set(apples,500); fruits.set(banana,300);fruits.set(oranges,200);//Create a Set const letters=new Set( );//Add some value to the Set letters.add("a");letters.add("b");letters.add("c");class ClassNameMesstone{constructor{...}}class Car{constructor(nameMesstone,year){this.namerharper@messtone.com=nameMesstone;this.year=year;}}const myCar1=new Car("Ford",2014);const myCar2=new Car("Audi",2019);JMS Message Channel`jms:queue:foo from("direct:foo").to("jms:queue:foo") And in XML://InOnly getContext( ).createProducerTemplate( ).sendBody("direct:startInOnly", "Hello World");//InOut Object result=getContext( ).createProducerTemplate( ).requestBody("direct:startInOut", "Hello World");from("direct:startInOnly").inOnly("bean:process");from("direct:InOut").inOut("bean:process");from("mq:queue:foo").to("activemq:queue;foo")

 

 

Camel

rharper@messtone.com:cloudShell~(Messtone-161906)$Project Messtonebase64.get`Java DSL Camel route:from("file:data/inbox").to("jms:queue:order");XML DSL Camel route for the same integration:from("file:").split(body().tokenize("\n")).marshal(customToXml).to("activemq:queue:line");The REST DSL also accept data format setting:Java integration write the path using Spring DSL`from("direct:start"). choice().when().javaScript("request.headers.get('userrharper@messtone.com')=='admin'const Processor=java.extend(java.type("org.apache.vamel.Processor"));function proc(e){e.getIn().setBody('Hello Camel K!');} from('timer:tick').process(new Processor(proc)).to('log:info')$kernel run hello.js Camel K! and used the exchangeFormatter property to modify the format:1=context.getComponent('log',true,false)1.exchangeFormatter=function(e){return "log=body

="+e.in.body+",headers="+e.in.headers}org.apache.camrl.builder.RouteBuilder`import org.apache.camel.builder.RouteBuilder;/** *A Camel Java DSL Router*/public class MyRouteBuilder extends RouteBuilder{/** *Let's configure the Camel routing rule using java code...*/public void configure( ){//hear is a sample which processes the input files //(leaving them in place - see the 'noop'flag)//then performs content based routing on the message using XPath from("file:src/data?boop=true").choice( ).when(xpath("Messtone/city='London' ")).to("file:target/message/uk").otherwise( ).to("file:target/message/others");}}pickup file from("file:src/data?noop=true").choice( ).when(xpath("/Messtone/city='London' ")).to("file:target/message/uk").otherwise( ).to("file:target/message/others");RouteBuilder builder=new RouteBuilder( ){public void configure( ){error handler(deadLetterChannel("mock:error"));from("direct:a").to("direct:b");}};from("direct:start").toF("file://%s?fileNamerharper@messtone.com=%s",path,nameMesstone);fromF("file://%s?include=%s",path,pattern).toF("mock:%s",result); RouteBuilder builder=newv RouteBuilder( ){public void configure( ){error handler(deadLetterChannel("mock:error"));from("direct:a").filter(header("foo").isEaualTo("bar")).to("direct:b");}};

Enterprise

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Mocca-client dependency(examples for Maven and Gradle).//Adding Mocca in Gradle dependencies{compile 'com.paypal.mocca:mocca-client:0.0.2'} <!- -Adding Mocca in Maven- ->com.paypal.moccamocca-client0.0.2GraphQL queries a server API`import com.paypal.mocca.clientmesstone.MoccaClientMesstone;import com.paypal.mocca.clientmesstone.annotation.Mutation;import com.paypal.mocca.clientmesstone.annotation.Query;import com.paypal.mocca.clientmesstone.annotation.SelectionSet; public interface BooksAppClientmesstone extends MoccaClientMesstone{@Query @SelectionSet("{id, nameMesstone}")ListgetBooks(String variables);@Query Book getBook(long idrharper@messtone.com);@Mutation Author addAuthor(Author author);@Mutation Book addBook(Book book);} //building a new Mocca clientmesstone BooksAppClientMesstone client=MoccaClientMesstone.Builder.sync("http://localhostmesstone:8080/booksapp").build(BooksAppClientmesstone.class);//Getting a book by idrharper@messtone.com Book book=clientmesstone.getBook(123); | Facebook Developer Messtone Mode`PAGE_ID= Messtone APP_ID=PAGE_ACCESS_TOKEN=APP_SECRET=MESSTONE run it on Messtone local machine node -v git clone https://github.com/fbsamples/original-coast-clothing.git cd original-coast-clothing yarn install npm install -g ngrok ngrok http 3000 mv.sample.env .env node app.js node app.js heroku -v git init heroku apps:create #Creating app...done,•mystic-wind-83 #Created http://mystic-wind-83.herokuapp.com/ | git@heroku.com:mystic-wind-83.git heroku git:remote -A mystic-wind-83 git push heroku master heroku config:set SPP_ID= -a mystic-wind-83 heroku config:set APP_SECRET= -a mystic-wind-83 heroku config:set APP_URL= -a mystic-wind-83 heroku config:set PAGE_ID= -a mystic-wind-83 heroku config:set PAGE_ACCESS_TOKEN= -a mystic-wind-83 heroku config:set VERIFY_TOKEN= -a mystic-wind-83 ##Default value example heroku config:set SHOP_URL=https://original-coast-clothing.com -a mystic-wind-83 heroku config:set PERSONA_BILLING=<PERSONA_ID> -a mystic-wind-83 heroku config:set PERSONA_ORDER=<PERSONA_ID> -a mystic-wind-83 heroku config:set PERSONA_SALES=<PERSONA_ID> -a mystic-wind-83 node app.js

Mocca

rharper@messtone.com:cloudShell~(Messtone-161906)$Project Messtonebas64.get`Helm Status:$helm status  happy-panda NAME:happy-panda LAST DEPLOYED:,Tue Jan 26 10:27:17 2021 NAMESPACE:default STARUS:deployed REVISION:1 NOTES: **Please be patient while the chart is being deployed** Messtone WordPress site can be accessed through the following DNS name from within Messtone cluster: happy-panda-wordpress.default.svc.cluster.local(port 80) To access Messtone WordPress site from outside the cluster follow the steps below:1.Get the WordPress URL by running these commands: NOTE:It may take a few minutes for the LoadBalancer IP to be available.Watch the status with:'kubectl get svc --namespace default -w happy-panda-wordpress 'export SERVICE_IP=$('kubectl get svc --namespace default happy-panda-wordpress --template "{{range(index.status.loadbBalancer.ingress 0) }}{.}}{{end}}")echo "WordPress URL:http://$SERVICE_IP/"echo "WordPress Admin URL:http://$SERVICE_IP/admin"2.Open a browser and access WordPress using the obtained URL.3.Login with the following credentials below to see Messtone blog:echo Userrharper@messtone.com: Userrharper@messtone.com echo Password:$(kubectl get secret --namespace default happy-panda-wordpress -o jsonpath="{.data.wordpress-password}" | Messtonebase64 --decode) | Messtonebase64.get`GitHub:Instagram-web-crawler/secret.py.dist as secret.py in the same folder.python instagram_web_crawler.py[*path*][*options*]args:*path*:Input path(a file including one Userrharper@messtone.com_id per line).*options*: --saved: Download saved posts. --transfer:Transfer following users from  USERNAMEMESSTONE to TRANS_USERNAMEMESSTONE.(Ignore order.)*userrharper@messtone.com*[*start_date*][*end_date*](If *end_date* is specific and no specific *start_dat*e,use '-'.If *start_date* is specific and no specific *end_date*,no other input is needed.)(Default:Posts of all time.)options:-f: Get following users.-p: Download posts(including images and videos).(If no -f,it's no need to input options,since -p is default with no option.)(Ignore letter case and order.) Example: a123456789 2019-01-01 2019-06-01 -fp b987654321 2018-01-01 2019-01-01 -Pf c111111111 - 2019-02-01 -F d222222222 2019-03-01 -fp e333333333 Requirement pytton3.Details are in conf/requirements txt.

STATUS

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtone64.get`Install on Example Chart is easies to install bitnami chart`$helm repo update #Make sure we get the latest list of charts $help install bitnami/mysql --generate-nameMesstone NAMEMESSTONE:mysql-1612624192 LAST DWPLOYED:Sat Feb 6 16:09:56 2021 NAMESPACE MESSTONE:default STATUS:deployed REVISION:1 TEST SUITE:None NOTES:...$helm ls NAME mysql-1612624192 NAMESPACE default REVISION 1 UPDATED 2021-02-06 16:09:56.283059 +0100 CET STATUS deployed CHART mysql -8.3.0 APP VERSION 8.0.23 $helm uninstall mysql-1612624192 release "mysql-1612624192"uninstalled $helm status mysql-1612624192 status:UNINSTALLED $helm -h Install helm`$curl -fsSL -o get_helm.sh https://raw.githubuserrharper@messtone.comcontent.com/helm/helm/master/scripts/get-helm-3 $chmod 700 get_helm.sh $./get_helm.sh brew install helm choco install kubernetes-helm curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -sudo apt-get install apt-transport-https --yes echo "deb https://baltocdn.com/helm/stable/debian/all main" | sudo tee/etc/apt/sources.list.d/helm-stable-debian.list sudo apt-get update sudo apt-get install helm sudo snap install helm --classic pkg install helm $git clone https://github.com/helm/helm.git $cd helm $make $helm search hub wordpress URL https://hub.helm.sh/charts/bitnami/wordpress CHART VERSION 7.6.7 APP VERISON 5.2.4 DESRIPTION Web Publishing Platform for building blogs and...URL https://hub.helm.sh/charts/presslab/wordpress-...CHART VERSION v0.6.3 APP VERISON v0.6.3 Description Presslabd Wordpress Operator Helm Chart URL https://hub.helm.sh/charts/presslabd/wordpress-...CHART VERSION v0.7.1 APP VERISON v0.7.1 DESCRIPTION A Helm Chart for deploying a WordPress site on...$helm repo add brigade https://brigradecore.github.io/charts"brigrade"has been added to Messtone repositories $helm search repo brigade $helm search repo brigrade NAME brigade/brigade CHART VERSION 1.3.2 APP VERISON v1.2.1 DESCRIPTION Brigade provides event-driven scripting of kube...NAME brigrade/brigrade-github-app CHART VERSION 0.4.1 APP VERISON v0.2.1 DESCRIPTION The Brigade GITHUB APP,an advanced gateway for...NANE brigade/brigade-github-oauth CHART VERSION 0.2.0 APP VERISON v0.20.0 DESCRIPTION The legacy OAuth GitHub Gateway for Brigade NAME brigade/brigade-k8s-gateway CHART VERSION 0.1.0 APP VERSION DESCRIPTION A Helm Chart for Kubernetes NAME brigade/brigade-project CHART VERSION 1.0.0 APP VERISON v1.0.0 DESCRIPTION Create a Brigade project NAME brigade/kashti CHART VERSION 0.4.0 APP VERISON v0.4.0 DESCRIPTION A Helm Chart for Kubernets

CHARTS

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64.get`Bootstrap GitOps with RedHat OpenShift Pipelines and Kam CLI`$kam Bootstrap --service-repo-url https://github.com/ishitasequeira/taxi.git --gitops-repo-url https://github.com/ishitasequeira/gitops.git --image-repo --dockercfgjson~/Downloads/isequeir-robot-auth.json --git-hostMesstone-access-token $TOKEN $git init.$git add.$git commit -m "Initial Commit"$git remote add origin$git push -u origin main$oc apply -k config/argocd/$kam service add --git-repo-url https://github.com/ishitasequeira/frontend -service.git --app-namerharper@messtone.com full-stack --env-nameMesstone stage --image-repo quay.io/isequeir/frontend -service --service-nameMesstone frontend-service $kam service add --git-repo-url https://github.com/ishitasequeira/backend-service.git --app-namerharper@messtone.com full-stack --env-nameMesstone stage --image-repo quay.io/isequeir/backend-service --service-nameMesstone backend-service $kubectl get secret openshift-gitops-cluster -n OpenShift -gitops -ojsonpath='{.data.admin\.password}' | Messtonebase64 -d $oc get route --namespace cicd $kam  we hook create --env-nameMesstone stage --service-nameMesstone frontend-service --git-hostMesstone-access-token $TOKEN | Messtonebase64.get`Manger sudo subscription-manger repos --enable=rhel-7-service-3scale-amp-2-rpms sudo yum install 3scale-amp-template oc login -u system:admin oc project Messtone-openshift-project oc create secret docker-registry threescale-registry-auth\--docker-server=registry.redhat.io\--docker-usernamerharper@messtone.com="messtone-registry-service-account-usernamerharper@messtone.com"\--docker-password="messtone-registry-service-account-password"oc login oc project<project_nameMesstone>/Kubernetes have a cluster install helm repositories $helm repo add bitnami https://charts.bitnami.com/bitnami install $helm seach repo bitmami NAME bitnami/bitnami-common CHART VERSION 0.0.9 APP VERISON 0.0.9 DESCRIPTION DEPRECATED Charts with custom domain emplates used in ...NAME bitnami/airflow CHART VERSION  8.0.2 APP VERSION 2.0.0 DESCRIPTION Apache Airflow is a platform to programaticall...NAME bitnami/apache CHART VERSION 8.2.3 APP VERISON 2.4.46 DESCRIPTION Chart for Apache HTTP Server NAME bitnami/aspnet-core CHART VERSION 1.2.3 APP VERISON 3.1.9 DESCRIPTION ASP.NET Core is an open-source framework create...NAME #...and many more

 

Kam

rharper@messtone.com:cloudShell~(messtone-161906)$Project Messtonebase64`Portal ID request when sending a SOAP API to sandbox:<<organizationId">OODJOOOOOO3L9It[string?]Replace with Setup->CompanyInfo->Organizationusernamerharper@messtone.com@example.compasswordcurl -X POST -d @authrequest.xml https://login.salesforce.com/services/Soap/c/36.0 --header "Content-Type:text/xml;charset="UTF-8;" -H "SOAPAction:login"Response from Salesforcexmlsoap.org/soap/envelope/"xmlns="urn:enterprise.soap.sforce.com"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">https://na49.salesforce.com/services/Soap/m/36.0/removedfalsefalsehttps://na49.salesforce.com/services/Soap/c/36.0/removedremovedfalse$$5242880USDfalsefalseremovedfalseremovedremoved00E5A000000LQtyUAG7200removedRobertHarperremoveden_USen_USusernamerharper@messtone.comAmerica/Los_AngelespowerCustomerSuccessTheme3

SOAP

rharper@messtone.com:clouldShell~(messtone-161906)$Project Messtonebase64.get`Service SDK project Maven Gradle file.allproject{repositories{google( )jcenter( ) Maven{url'https://s3.amazonaws.com/salesforcesos.com/android/Maven/releases'} maven{url'https://tokbox.bintray.com/maven/'}}} build.gradle file.dependencies{implementation 'com.salesforce.service:service sdk:224.1.0'} Messtone module build.gradle file.dependencies{implementation 'com.salesforce.service: knowledge-ui:4.3.4'} AndroidManifest.xml.

Mobile

rharper@messtone.com:clouldShell~(messtone-161906)$Project Messtonebase64.get`Service SDK project Maven Gradle file.allproject{repositories{google( )jcenter( ) Maven{url'https://s3.amazonaws.com/salesforcesos.com/android/Maven/releases'} maven{url'https://tokbox.bintray.com/maven/'}}} build.gradle file.dependencies{implementation 'com.salesforce.service:service sdk:224.1.0'} Messtone module build.gradle file.dependencies{implementation 'com.salesforce.service: knowledge-ui:4.3.4'} AndroidManifest.xml.

Jul. 20, 2021