Skip to content

Instantly share code, notes, and snippets.

@edgars
edgars / bps.txt
Last active August 5, 2019 21:04
GET https://localhost:9445/bpmn/repository/process-definitions
GET https://localhost:9445/bpmn/repository/process-definitions/{ID: banka:5:17560 }
POST https://localhost:9445/bpmn/runtime/process-instances
{
"processDefinitionId":"banka:5:17560",
"businessKey":"null",
"variables": [
@edgars
edgars / mi.txt
Created August 3, 2019 02:41
Checking Pre-reqs
# Node must be installed
# nvm must be installed
nvm install 8.9
nvm use 8.9
npm install mapperidea-cli
depIata=MAD
a3e376-2c3159
https://aviation-edge.com/developers/
https://api.bcb.gov.br/dados/serie/bcdata.sgs.1/dados/ultimos/1?formato=json
@App:name('ETLStreamAppEnglish')
@App:description('ETL from CSV ')
@source(type = 'file', mode = 'line', tailing = 'false', dir.uri = 'file:/Users/edgar/Documents/DEV/2018/SP/ETL/IN', action.after.process = 'delete',
@map(type = 'csv', header = 'true',
@attributes(
district = '2',
address = '1',
latitude = '7',
@App:name('ETLStreamApp')
@App:description('ETL from CSV ')
@source(type = 'file', mode = 'line', tailing = 'false', dir.uri = 'file:/Users/edgar/Documents/DEV/2018/SP/ETL/IN', action.after.process = 'delete',
@map(type = 'csv', header = 'true',
@attributes(distrito = '2', endereco = '1', latitude = '7', crime = '5', dataHora = '0', codigocrime = '6', longitude = '8')))
define stream CargaInicialCrimesStream (dataHora string, endereco string, distrito string, crime string, codigocrime string, latitude string, longitude string);
@edgars
edgars / EXEMPLO.xml
Last active June 8, 2018 03:56
API_Sobre_XML
<opcoesApoio>
<opcaoApoio>
<nome>ID_0001</nome>
<titulo><![CDATA[ABC]]></titulo>
<objetivo><![CDATA[Financiamento a investimentos que contribuam para a redu&ccedil;&atilde;o de impactos ambientais causados por atividades agropecu&aacute;rias.]]></objetivo>
<taxaJurosTotal><![CDATA[7,5% a.a. (taxa final)]]></taxaJurosTotal>
<participacaoMaxima><![CDATA[at&eacute; 100%]]></participacaoMaxima>
<finalidade><![CDATA[Projetos de Investimentos Agropecu&aacute;rios]]></finalidade >
<prazoMaximo><![CDATA[at&eacute; 144 meses]]></prazoMaximo>
<simulador>S</simulador>
Resolver o problema do Not Allowed 403 no Console
You can whitelist /carbon in <EI_HOME>/conf/security/Owasp.CsrfGuard.Carbon.properties. Add following to the end of the file,
org.owasp.csrfguard.unprotected.AdminConsole=%servletContext%/carbon/*
Certificates easy: http://keystore-explorer.org/downloads.html
package org.wso2.governance.sample.executor;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.governance.registry.extensions.interfaces.Execution;
import org.wso2.carbon.registry.core.exceptions.RegistryException;
import org.wso2.carbon.registry.core.jdbc.handlers.RequestContext;
<api xmlns="http://ws.apache.org/ns/synapse" name="TerritoryAPI" context="/debug">
<resource methods="GET" uri-template="/" protocol="http">
<inSequence>
<log/>
<script language="js"><![CDATA[
importPackage(Packages.java.net);
importPackage(Packages.org.apache.log4j);
try {
var addr = InetAddress.getLocalHost();
if (addr != null) {