Skip to content

Instantly share code, notes, and snippets.

@rossmason
rossmason / affirmation
Created October 27, 2014 16:25
MuleSoft Contributor Agreement Acceptance by Ross Mason
I, Ross Mason, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Mon Oct 27 2014 09:25:38 GMT-0700 (PDT)
@rossmason
rossmason / muse-data.js
Created September 27, 2013 21:59
MUSE demo Data
var regions = [ 'NA', 'LATAM', 'EMEA', 'APAC' ];
var REGION = {};
regions.forEach(function (region) { REGION[region] = region; });
var data =
[
{
title: 'iPhone 5s', description: 'The greatest phone since the last iPhone', imageUrl: '', region: REGION.NA,
presentations:
[
facebookAppId=
facebookAppSecret=
domain=
http.port=8081
box.apiKey=
@rossmason
rossmason / custom-agent.xml
Created December 11, 2012 08:11
Mule Visual Debugger agent
<custom-agent name="debuggerAgent"
class="com.mulesoft.mule.debugger.server.DebuggerAgent"/>
<snip:mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:snip="http://www.mulesoft.org/schema/mule/snippet" xmlns:imaps="http://www.mulesoft.org/schema/mule/imaps" xmlns:boxnet="http://www.mulesoft.org/schema/mule/boxnet" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:cloudhub="http://www.mulesoft.org/schema/mule/cloudhub" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:core="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="CE-3.3.0" xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/imaps http://www.mulesoft.org/schema/mule/imaps/current/mule-imaps.xsd
http://www.mulesoft.org/schema/mule/boxnet http://www.mulesoft.org/schema/mule/boxnet/1.0/mule-boxnet.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org
********************************************************************************
* Message received in service: messageGroupsConsumer. Content is: 'Volvo V70' *
********************************************************************************
********************************************************************************
* Message received in service: messageGroupsConsumer. Content is: 'Saab 9-5' *
********************************************************************************
********************************************************************************
* Message received in service: messageGroupsConsumer. Content is: 'Volvo V70' *
@rossmason
rossmason / gist:1999414
Created March 8, 2012 07:33 — forked from germanrsolis/gist:1416807
xa-gist-4
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="http://www.springframework.org/schema/beans" xmlns:jdbc="http://www.mulesoft.org/schema/mule/jdbc"
xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:test="http://www.mulesoft.org/schema/mule/test" xmlns:context="http://www.springframework.org/schema/context"
xmlns:jbossts="http://www.mulesoft.org/schema/mule/jbossts"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd
http://www.mulesoft.org/schema/mule/jdbc http://www.mulesoft.org/schema/mule/jdbc/3.2/mule-jdbc.xsd
http://www.mulesoft.org/schema/mule/jms http://www.mulesoft.org/schema/mule/jms/3.2/mule-jms.xsd
mvn archetype:generate -DarchetypeGroupId=org.mule.tools.devkit -DarchetypeArtifactId=mule-devkit-archetype-generic -DarchetypeVersion=3.0.1 -DarchetypeRepository=http://repository.mulesoft.org/releases/ -DgroupId=org.mule.module.googlemaps -DartifactId=google-maps-connector -Dversion=1.0 -DmuleVersion=3.2.0 -DmuleModuleName=GoogleMaps
@rossmason
rossmason / gist:1335965
Created November 3, 2011 07:13 — forked from ddossot/gist:1294350
push-mule-config
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns:pubsubhubbub="http://www.mulesoft.org/schema/mule/pubsubhubbub"
xmlns:mos="http://www.mulesoft.org/schema/mule/mongo-object-store"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/pubsubhubbub http://www.mulesoft.org/schema/mule/pubsubhubbub/3.2/mule-pubsubhubbub.xsd
$ curl --data-binary "mule rules" http://localhost:8080/services/doublemetaphone
MLRL