Skip to content

Instantly share code, notes, and snippets.

@mcantrell
mcantrell / mule-config.xml
Last active December 20, 2015 13:49
Example swarm agent config
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:vm="http://www.mulesoft.org/schema/mule/vm"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
">
<spring:beans>
<spring:import resource="classpath:swarm-agent.xml"/>
@mcantrell
mcantrell / zuulDiff.sh
Created February 18, 2014 21:13
Compare two zuul environments
!/bin/bash
# Compare two zuul environments
# adapted from https://gist.github.com/thetristan/6169113
NAME=`basename $0`
ZUUL_BASE_URL="http://127.0.0.1:8080/zuul/settings"
ZUUL_LEFT_URL="$ZUUL_BASE_URL/$2/$1.properties"
ZUUL_RIGHT_URL="$ZUUL_BASE_URL/$3/$1.properties"
COMMAND="diff <(curl -is '$ZUUL_LEFT_URL') <(curl -is '$ZUUL_RIGHT_URL')"