This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab(group='org.apache.activemq',module = 'activemq-all', version='5.8.0') | |
import org.apache.activemq.ActiveMQConnectionFactory | |
import javax.jms.* | |
def brokerUrl = 'tcp://localhost:61616' | |
def queue = 'the.soapoverjms.service' | |
def soapAction = 'urn:sixtree:soapoverjms:dosomething' | |
def reader = new BufferedReader(new InputStreamReader(System.in)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab(group = 'org.apache.activemq', module = 'activemq-all', version='5.8.0') | |
@Grab(group = 'org.apache.camel', module = 'camel-core', version = '2.12.3') | |
@Grab(group = 'org.apache.camel', module = 'camel-jms', version = '2.12.3') | |
import org.apache.activemq.ActiveMQConnectionFactory | |
import org.apache.camel.ExchangePattern | |
import org.apache.camel.builder.RouteBuilder | |
import org.apache.camel.component.jms.JmsComponent | |
import org.apache.camel.impl.DefaultCamelContext | |
import org.apache.camel.impl.SimpleRegistry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ACTIVEMQ_HOME=/usr/local/Cellar/activemq/5.10.0/libexec | |
export ACTIVEMQ=$ACTIVEMQ_HOME/bin | |
alias startactivmq='$ACTIVEMQ/activemq start' | |
alias starthawtio='java -jar /Users/swinchester/hawtio/hawtio-app-1.4.16.jar --port 8090' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<routes xmlns="http://camel.apache.org/schema/spring"> | |
<route id="httpRoute1"> | |
<from uri="direct:httpRoute1"/> | |
<to uri="mock:mockHttpRoute1"/> | |
</route> | |
</routes> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker exec -i -t 665b4a1e17b6 bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo find . -mmin 20 -name '*.log' -exec ls -ltr {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.io.FileType | |
def list = [] | |
def dir = new File(".") | |
dir.eachFileRecurse (FileType.FILES) { file -> | |
list << file | |
} | |
def ascendingOrder = list.sort { it.lastModified() } | |
def descending = ascendingOrder.reverse() | |
print descending |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple groovy script to compress / decompress Strings | |
import java.util.zip.GZIPInputStream | |
import java.util.zip.GZIPOutputStream | |
def zip(String s){ | |
def targetStream = new ByteArrayOutputStream() | |
def zipStream = new GZIPOutputStream(targetStream) | |
zipStream.write(s.getBytes('UTF-8')) | |
zipStream.close() | |
def zippedBytes = targetStream.toByteArray() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du -h /path | sort -h |
OlderNewer