Skip to content

Instantly share code, notes, and snippets.


Greg Schueler gschueler

View GitHub Profile
gschueler / bc-providers.groovy
Created September 6, 2022 21:47
List PBE providers for Jasypt with BouncyCastle and groovy
View bc-providers.groovy
import org.jasypt.registry.AlgorithmRegistry
import org.bouncycastle.jce.provider.BouncyCastleProvider
Security.addProvider(new BouncyCastleProvider());
Set digestAlgos = AlgorithmRegistry.getAllDigestAlgorithms();
Set pbeAlgos = AlgorithmRegistry.getAllPBEAlgorithms();
gschueler /
Created June 15, 2019 00:18
Groovy gotchas

an incomplete list of gotchas while using the Groovy language

for vs each

def findItem(key){
	def defval='some value'
			return v



enable debug logging for rundeck grails controller in rundeck 3

Create a file logback.groovy as above.

Launch rundeck with the following jvm system property: logging.config=<path to logback.groovy>

for example:

java -Xmx4g -Dlogging.config=pwd/server/config/logback.groovy -jar rundeck-3.0.20-20190408.war

gschueler /
Last active June 7, 2017 15:36
Dev blog for data capture/data passing feature for Rundeck


Data passing: Workflow steps can export data values that are made available to subsequent steps. Data capture: Step logger system can filter/process output log events to extract useful data values and use the data passing feature to pass them along.


Data Passing:

  • Ability to pass data from one step to the next. This will be via a workflow global data context.
gschueler / grails
Created April 24, 2017 22:58
Grails indexes (2.x)
View grails

Notes on adding index definitions to Grails 2 domain classes

Add an index named MY_INDEX to two columns:

Inside your Domain class:

static mapping={
gschueler / Dockerfile
Created March 13, 2017 19:07
rundeck ubuntu 16.04
View Dockerfile
FROM ubuntu:16.04
RUN apt-get -y update && \
apt-get -y install openjdk-8-jdk apt-transport-https curl openssh-client uuid-runtime
ENV RDECK_BASE=/var/lib/rundeck
RUN echo "deb /" | tee -a /etc/apt/sources.list
gschueler / gist:c4badb4985cc4badc455ade7f3aeff24
Last active July 14, 2016 18:32
grails 2.5.5 create-app bug
View gist:c4badb4985cc4badc455ade7f3aeff24
[~/devel/test-g255] 💩 ls
[~/devel/test-g255] 🍺 which grails
[~/devel/test-g255] 🍺 grails create-app --stacktrace
| Configuring classpath
:: problems summary ::
module not found: org.codehaus.groovy#groovy-all;2.4.4
==== grailsPlugins: tried
View jobs.groovy
@Grab(group='org.rundeck', module='rundeck-api-java-client', version='13.1')
import org.rundeck.api.*;
def rundeck = RundeckClient.builder().url(args[0]).login(args[1],args[2]).build()
//def rundeck = RundeckClient.builder().url(args[0]).token(args[1]).build()
def project=args[3]
def jobs = rundeck.getJobs(project)
gschueler / gist:7f14ab424294286eb677
Created October 21, 2015 22:21
Geb grails functional test error
View gist:7f14ab424294286eb677
| Failure: edit page(domain.scheduledExecution.JobEditSpec)
| java.lang.VerifyError: Bad <init> method call from inside of a branch
Exception Details:
geb/navigator/SearchContextBasedBasicLocator.<init>(Lorg/openqa/selenium/SearchContext;Lgeb/navigator/factory/NavigatorFactory;)V @91: invokespecial
Error exists in the bytecode
0000000: b800 214e 05bd 0004 5903 04bd 0004 5903
0000010: 2b53 b800 2753 5904 2c53 5910 ff12 02b8
#determine h:m:s to run, 10 seconds from now
ORIG_DATE=$(date '+%s')
echo "orig: $ORIG_DATE"
NEW_DATE=$(( $ORIG_DATE + 10 ))
echo "new: $NEW_DATE"