Skip to content

Instantly share code, notes, and snippets.

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> {
@davejsmith
davejsmith / restBatch.groovy
Last active December 20, 2015 21:18
SSRE rest client example
/**
* 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'
@davejsmith
davejsmith / tomcatsessions.groovy
Last active February 11, 2016 05:22
Groovy Script to total active sessions from one or more Tomcat contexts with option to stall until zero sessions
#!/usr/bin/env groovy
package devops
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("list", "**********".toCharArray());
}
})
servers = []