I hereby claim:
- I am magnuspalmer on github.
- I am magnuspalmer (https://keybase.io/magnuspalmer) on keybase.
- I have a public key ASDSh24DedbIwzGQDyIEmISe4-mcDIpbRxMq3B_M1Rt3Two
To claim this, I am signing this object:
@Grab(group='com.github.groovy-wslite', module='groovy-wslite', version='1.1.0') | |
import wslite.soap.* | |
import groovy.xml.* | |
def client = new SOAPClient('http://www.webservicex.net/globalweather.asmx') | |
String city = 'Stockholm' | |
String country = 'Sweden' | |
def weatherResponse = client.send(){ |
@Grab(group='org.eclipse.paho', module='mqtt-client', version='0.4.0') | |
import org.eclipse.paho.client.mqttv3.* | |
import org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence | |
String tmpDir = System.getProperty("java.io.tmpdir") | |
MqttDefaultFilePersistence dataStore = new MqttDefaultFilePersistence("${tmpDir}/mqtt") | |
//org | |
String org = 'myOrg' |
/** | |
* Licensed to the Apache Software Foundation (ASF) under one or more | |
* contributor license agreements. See the NOTICE file distributed with | |
* this work for additional information regarding copyright ownership. | |
* The ASF licenses this file to You under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
I hereby claim:
To claim this, I am signing this object:
docker network create --subnet 173.18.0.0/16 ranchernet
docker run -d --restart=always --net ranchernet --ip=173.18.0.2 -p 8080:8080 rancher/server
docker run -e CATTLE_AGENT_IP="173.18.0.3" --net ranchernet --ip 173.18.0.3 -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.0.2 http://173.18.0.2:8080/v1/scripts/
echo deb http://http.debian.net/debian wheezy-backports main > /etc/apt/sources.list.d/backports.list | |
apt-get update | |
apt-get install -y apt-transport-https ca-certificates | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo deb https://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list | |
apt-get update | |
#Show the available versions for package docker-engine | |
#apt-cache showpkg docker-engine | |
apt-get install docker-engine=1.11.2-0~jessie |
@Grapes( | |
[ | |
@Grab(group='com.github.groovy-wslite', module='groovy-wslite', version='1.1.2'), | |
] | |
) | |
import wslite.rest.* | |
import wslite.http.HTTP | |
String restEndpoint = "http://someurl" |
@Grapes([ | |
@Grab('com.jayway.restassured:rest-assured:2.9.0'), | |
@GrabExclude(group = 'org.codehaus.groovy', module='groovy-all'), | |
@GrabExclude(group = 'org.codehaus.groovy', module='groovy-xml') | |
]) | |
import static com.jayway.restassured.RestAssured.* | |
import static com.jayway.restassured.matcher.RestAssuredMatchers.* | |
import static org.hamcrest.Matchers.* | |
import static com.jayway.restassured.config.RestAssuredConfig.* |
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<parent> | |
<groupId>org.mule.tools.devkit</groupId> | |
<artifactId>mule-devkit-parent</artifactId> | |
<version>3.7.2</version> | |
</parent> |
@Grapes( | |
@Grab(group='org.apache.commons', module='commons-csv', version='1.1') | |
) | |
import org.apache.commons.csv.* | |
import groovy.xml.* | |
def inputCSV = '''a,b,c, | |
e,f,g, | |
''' |