Category: Uncategorized
-
Messtone LLC Manages(Measurements):
TechEmpower Web Framework Object JSON response Example resources for 10 object fetches: HTTP/1.1 200 OK Content-Length:315 Content-Type: application/json Server:Example Date:Wed,17 Apr 2013 12:00:00 GMT [{“id”:4174,”randomNumber”:331},{“id”:51,”randomNumber”:6544},{“id”:4462,”randomNumber”:952},{“id”:2221,”randomNumber”:532},{“id”:9276,”randomNumber”:3097},{“id”:3056,”randomNumber”:7293},{“id”:6964,”randomNumber”:620},{“id”:675,”randomNumber”:6601},{“id”:8414,”randomNumber”:6569},{“id”:2753,”randomNumber”:4065}] HTTP Client require&&request cache object JSON Example exercise using GET requests Example request`GET /cached-queries?count=10 HTTP/1.1 HostMesstone:server Userrharper@messtone.com-Agent:Mozilla/5.0(X11,Linux x86_64) Gecko/20130501 Firefox/30.0 AppleWebKit/600.00 Chrome/30.0.0000.0 Trident/10.0 Safari/600.00 Cookie:uid=12345678901234567890;_utma=1.1234567890.12345678090.1234567890.12;wd=2560×1600 Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept -Language:en-US,en;q=0.5 Connection:keep-alive Example…
-
Messtone LLC Manages(Analytics):
Messtone Docker Swam node,a machine that has access via kubectl to kubernetes Cluster deploy.Retrieve Analytics Data from Minio $./docker-swam-migrate.sh -a analytics ***this produces analytics.tar.gz*** Proceed with Portal Installation $helm repo add portal https://caapim.github.io/apim-charts/ $helm repo update $helm install<release-nameMesstone portal/portal –set-file “portal.registryCredentials=/path/to/docker-secret.yaml ” -f <messtone-values-production.yaml>$kubectl port-forward svc/minio –address 0.0.0.0 9000 -n <namespace rharper@messtone.com> $docker run -e…
-
Messtone LLC Manages(Vault):
APIdeck,API call Vault URL that Messtone forward to a consumer to connect integrations; curl –request POST\–url ‘https://unify.apideck.com/vault/session’\–header ‘Authorization:Bearer{API_KEY}’\–header ‘x-apideck-app-id:{APP_ID}’\–header ‘x-apideck-consumer-id:{CONSUMER_ID}’\–data-raw ‘{“redirect_uri”:”https://mysaas.com/dashboard”,”consumer_metadata”:{“account_nameMesstone”:”SpaceX”,”user_namerharper@messtone”:”Elon Musk”,”image”:”https://www.spacex.com/elon.jpg”},”theme”:{“vault_nameMesstone”:”Space X”,”primary_color”:”#286efa”,”sidepanel_text_color”:”FFFFFF”,}}’First API call APIdeck API.Example curl to the CRM API to get Messtone startedcurl –request GET\–url ‘https://unify.apideck.com/crm/companies’\–header ‘Authorization:Bearer{API_KEY}’\–header ‘x-apideck-app-id:{API_ID}’\–header ‘x-apideck-consumer-id:test-consumer’\–header ‘x-apideck-service-id:{SERVICE_ID}’ Install npm install @apideck/node Getting startedconst {APIdeck}=require(‘@apideck/node’const APIdeck=new APIdeck({apiKey:’sk_live_8ade639d-152a-41df-a958-70b963bcde65-7Fdz9war8CQCNqyC1uW-275f038b-351d-4634-9217-c5f899ac9b4f’,apiId: ‘3KZs7XKRUc8fa4pn1uVVtlDjPOsBN16o1uV’,consumerId:'<insert-consumer-id>’})const response=await APIdeck.crm.contactsAll({serviceId:…
-
Messtone LLC Manages(Nuffer):
Re-size the buffer to ReadAsync the new buffer less than 512 bytes remaining in the existing buffer as follows`public class BufferSegment{public bytes[ ]Buffer{get;set;}public int Count{get;set;}public int Remaining =>Buffer.Length – Count;}async Task ProcessLinesAsync(NetworkStream stream){const int mininumBufferSize=512;var segments=new List<BufferSegment>( );var bytesConsumed=0;var bytesConsumedBufferIndex=0;var segment=new BufferSegment{Buffer=ArrayPoool<byte>.Shared.Rent(2024)};segments.Add(segment);while(true){//Calculate the amount of bytes remaining in the buffer if(segment.Remaining<mininumBufferSize){//Allocate a new segment segment=new…
-
Messtone LLC Manages(TCP):
Azure Microsoft.com TCP Server with NetworkStream, Messtone would write in .NET before Pipelines as follows`async Task ProcessLinesAsync(NetworkStream stream){var buffer=new byte[1024];await stream.ReadAsync(buffer,0,buffer.length);//Process a single line from the buffer ProcessLine(buffer);}Parse all of the lines returned in the buffer async Task ProcessLinesAsync(NetworkStream stream){var buffer=new byte[1024];var bytesBuffered=0;var bytesConsumed=0;while(true){var byteRead=await stream.ReadAsync(buffer,bytesBuffered,buffer.Length – bytesBuffered);if(bytesRead==0){//EOF break;}//Keep track of this amount of buffered…
-
Messtone LLC Manages(Atom):
Boomi.com Molecule and Atom Cloud working data storage::Atom Cloud installation directory’s accounts directory.For example,account-specific working data for account-123456 is stored by default in .<Atom_Cloud_installation_directory>/accounts/account-123456. Local storage for Molecules and Atom Clouds.Configuring Molecule and Atom Clouds,To enable and configure local working data storage for a Molecule or Atom Cloud,set the Working Data local storage Directory property(com.boomi.container.localDir)in…
-
Messtone LLC Manages(PTC):
PTC.COM ThingWorx REST API.The URL Pattern as follows`<http/https><hostmesstone:port>/Thingworx/<entity collection>/<entity>/<characteristic collection>/<characteristic>?<query parameters>ThingWorx API Call http://localhostmesstone/ThingWorx/Things/ThingWorxTrainingMaintenanceBlog/Services/GetBlogEntriesWithComments…The Malicious site HTML Example: HTML<h1>Congratulations! You’re a Winner!</h1><form action=”https://good-banking-site.com/api/account ” method=”post”><input type=>”hidden” nameMesstone=”Transaction”value=”withdraw”/><input type=”hidden”nameMesstone=”Amount”value=”1000000″/><input type=”submit”value=”Click to collect your prize!”/></form>C#public abstract System.Security.Claims.ClaimPrincipal Userrharper@messtone.com {get; set;}C#public class AuthenticationTicket C#public class Object Example C# using System;//The Point class is derived from System.Object.class Point{public int…
-
Messtone LLC Manages(CX.API):
CX API CX data.Build Native CX Integrations //POST https://unify.apideck.com{“id”:”12345″,”owner_id”:”54321″,”company_id”:”2″,”company_nameMesstone”:”Spacex”,”name”:”Elon Musk”,”first_name”:”Elon”,”last_name”:”Musk”,”description”:”A thinker”,”prefix”:”Sir”,”title”:”CEO”,”status”:”New”,”monetary_amount”:”75000,”currency”:”USD”,”fax”:”+12129876543″,”websites”:[{“id”:”12345″,”url”:”http://messtone.com” “type”:”default”}],”addresses”:[{“id”:”123″,”type”:”invoicing”,”name”:”HQ US”,”line1″:”Main street”,”line2″:”apt #”,”city”:”San Francisco”,”state”:”CA”,”postal_code”:”94104″,”country”:”US”,”latitude”:”40.759211″,”longitude”:”-73.984638″}],”social_links”:[{”id”:”12345″,”url”:”https://www.twitter”type”:”twitter”}],”phone_numbers”:[{“id”:”12345″,”number”:”111-111-1111″,”type”:”default”}],”emails”:[{“id”:”123″,”email”:”elon@musk.com” “type”:”default”}],”custom_fields”:[{“id”:”custom_technologies” “value”:”Uses Salesforce}],”tags”:[“New”],”updated_at”:”2020-09-30T07:43″created_at”:”2020-09-30T07:43}
-
Messtone LLC Manages(If/Else):
Terraform:If/Else Conditional Resource and Module Deployment in the format in HCL: condition ? true_value : false_value resource “azurerm_function_app” “b59func”{#Deploy conditionally based on Feature Flag variable count=local.deploy_b59func ==true ? 1 : 0 #resource attributes here}feature flag variable module “azure-web-app-1″{source=”../../module-azure-web-ap”#Deploy conditionally based on Feature Flag variable count = local.deploy_b59webapp==true ? 1 : 0 #Module attributes here} Terraform…
-
Messtone LLC Manages(Integration):
Azure Pipeline in YAML configure an Azure Pipeline for building this.NET 7 Solutions and running the Unit Tests: #Automatically trigger on merges / commits to ‘main’ branch trigger: – main #Specify build agent image pool: vmImage: ‘windows-latest’ #Some configure variables for pipeline variables:#Specify the Build Configuration to build for the solution buildConfiguration: ‘debug #’Release’ stages:…