Skip to content

Instantly share code, notes, and snippets.

@davejsmith
davejsmith / tomcatsessions.groovy
Last active Feb 11, 2016
Groovy Script to total active sessions from one or more Tomcat contexts with option to stall until zero sessions
View tomcatsessions.groovy
#!/usr/bin/env groovy
package devops
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("list", "**********".toCharArray());
}
})
servers = []
@davejsmith
davejsmith / restBatch.groovy
Last active Dec 20, 2015
SSRE rest client example
View restBatch.groovy
/**
* Simple groovy script for retrieving sample records from SSRE REST service.
*/
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.2' )
import groovyx.net.http.*
import static groovyx.net.http.ContentType.*
import groovy.xml.Namespace
def serviceUrl = 'http://devel-13.ssdt-ohio.org'
def contextPath = '/ssre-webapp-live'
View Repeat
package me.davesmith.t5samples.components;
import org.apache.tapestry5.BindingConstants;
import org.apache.tapestry5.ComponentResources;
import org.apache.tapestry5.MarkupWriter;
import org.apache.tapestry5.annotations.*;
import org.apache.tapestry5.ioc.annotations.Inject;
@SupportsInformalParameters
public class Repeat<T> {
You can’t perform that action at this time.