A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
import groovyx.gpars.GParsPool | |
def inputfile = args[0] | |
def layouts = [ 'twopi', 'sfdp', 'osage'] | |
def formats = [ 'pdf','svg'] | |
def combinations = [layouts, formats].combinations() | |
GParsPool.withPool(4) { | |
combinations.eachParallel { combination -> | |
String layout = combination[0] |
@GrabResolver(name = 'glassfish', root = 'http://maven.glassfish.org/content/groups/public/') | |
@GrabResolver(name = "github", root = "http://kellyrob99.github.com/Jenkins-api-tour/repository") | |
@Grab('org.kar:hudson-api:0.2-SNAPSHOT') | |
@GrabExclude('org.codehaus.groovy:groovy') | |
import org.kar.hudson.api.cli.HudsonCliApi | |
String rootUrl = 'http://localhost:8080' | |
HudsonCliApi cliApi = new HudsonCliApi() | |
OutputStream out = new ByteArrayOutputStream() | |
def script = '''hudson.items.findAll{ job -> |
@GrabResolver(name = 'glassfish', root = 'http://maven.glassfish.org/content/groups/public/') | |
@GrabResolver(name = "github", root = "http://kellyrob99.github.com/Jenkins-api-tour/repository") | |
@Grab('org.kar:hudson-api:0.2-SNAPSHOT') | |
@GrabExclude('org.codehaus.groovy:groovy') | |
import org.kar.hudson.api.cli.HudsonCliApi | |
/** | |
* Open an interactive Groovy shell that imports the hudson.model.* classes and exposes | |
* a 'hudson' and/or 'jenkins' object in the Binding which is an instance of hudson.model.Hudson | |
*/ | |
HudsonCliApi cliApi = new HudsonCliApi() |
@GrabResolver(name = 'glassfish', root = 'http://maven.glassfish.org/content/groups/public/') | |
@GrabResolver(name = "github", root = "http://kellyrob99.github.com/Jenkins-api-tour/repository") | |
@Grab('org.kar:hudson-api:0.2-SNAPSHOT') | |
@GrabExclude('org.codehaus.groovy:groovy') | |
import org.kar.hudson.api.cli.HudsonCliApi | |
String rootUrl = 'http://localhost:8080' | |
HudsonCliApi cliApi = new HudsonCliApi() | |
OutputStream out = new ByteArrayOutputStream() | |
cliApi.runCliCommand(rootUrl, ['groovysh', 'hudson.jobNames.inspect()'], System.in, out, System.err) |
@GrabResolver(name = 'glassfish', root = 'http://maven.glassfish.org/content/groups/public/') | |
@GrabResolver(name = "github", root = "http://kellyrob99.github.com/Jenkins-api-tour/repository") | |
@Grab('org.kar:hudson-api:0.2-SNAPSHOT') | |
@GrabExclude('org.codehaus.groovy:groovy') | |
import static java.net.HttpURLConnection.* | |
import org.kar.hudson.api.* | |
import org.kar.hudson.api.cli.HudsonCliApi | |
String rootUrl = 'http://localhost:8080' | |
HudsonCliApi cliApi = new HudsonCliApi() |
@GrabResolver(name = 'gretty', root = 'http://groovypp.artifactoryonline.com/groovypp/libs-releases-local') | |
@Grab('org.mbte.groovypp:gretty:0.4.279') | |
@Grab('com.icegreen:greenmail:1.3.1b') | |
import javax.mail.internet.MimeMessage | |
import org.jboss.netty.channel.local.LocalAddress | |
import org.mbte.gretty.httpserver.GrettyServer | |
import com.icegreen.greenmail.user.* | |
import com.icegreen.greenmail.util.* | |
//create the greenmail server |
import org.mbte.gretty.httpserver.* | |
@GrabResolver(name='gretty', | |
root='http://groovypp.artifactoryonline.com/groovypp/libs-releases-local') | |
@Grab('org.mbte.groovypp:gretty:0.4.279') | |
GrettyServer server = [] | |
server.groovy = [ | |
localAddress: new InetSocketAddress("localhost", 8080), | |
defaultHandler: { |
import groovy.json.* | |
def HOSTNAME = 'http://ci.jruby.org' | |
def JOBNAME = 'jruby-dist' | |
def JOB_URL = "$HOSTNAME/job/$JOBNAME/lastSuccessfulBuild" | |
def text = "$JOB_URL/api/json".toURL().text | |
println JsonOutput.prettyPrint(text) | |
def json = new JsonSlurper().parseText(text) | |
json.artifacts.each{ | |
println it | |
} |
import groovy.json.JsonSlurper | |
assert args && args.size() == 2 | |
def urls = args[0].split(',') | |
def expectedVersion = args[1] | |
urls.each { url -> | |
println "examining url $url" | |
def json = new JsonSlurper().parseText(url.toURL().text) | |
json.jobs.each { |