Skip to content

Instantly share code, notes, and snippets.

# ROLE_A implies ROLE_AB, ROLE_AB1, ROLE_AB2, and ROLE_AC
# ROLE_AB implies ROLE_AB1 and ROLE_AB2
# ROLE_AC implies nothing else
ROLE_A:
ROLE_AB:
- ROLE_AB1
- ROLE_AB2
- ROLE_AC
Sat Jul 9 16:21:09 UTC 2016
@rwinch
rwinch / migrate-jira-to-github-issues.groovy
Created December 23, 2015 14:28 — forked from graemerocher/migrate-jira-to-github-issues.groovy
JIRA to Github Issues Migration Script
@Grab(group='com.github.groovy-wslite', module='groovy-wslite', version='1.1.0')
@Grab(group='joda-time', module='joda-time', version='2.7')
import wslite.rest.*
import org.joda.time.*
import org.joda.time.format.*
import groovy.xml.*
import groovy.json.*
import static java.lang.System.*
import groovy.transform.*
@rwinch
rwinch / build.gradle
Created October 5, 2015 16:14
Live Reload Server Gradle Build
plugins {
id 'org.asciidoctor.convert' version '1.5.2'
id 'org.kordamp.gradle.livereload' version '0.2.1'
}
apply plugin: 'java'
apply plugin: 'org.asciidoctor.convert'
apply plugin: 'org.kordamp.gradle.livereload'
version = '1.0.0-SNAPSHOT'
@rwinch
rwinch / Why Can't I Just HTML Entity Encode Untrusted Data.adoc
Created August 26, 2015 13:14
Why Can't I Just HTML Entity Encode Untrusted Data

I’m trying to provide a somewhat meaningful example of Why Can’t I Just HTML Entity Encode Untrusted Data?. I’d like the demo to work within a JSP (or other Java Based Templating Technology). Concreely, I’ve currently come up with the following example:

<html>
<head></head>
<body>
<script>
@Autowired
public void configureGlobal(AuthenticationMangaerBuilder auth) {
auth
.authenticationProvider(adLdapAuthenticationProvier());
}
@Bean
public ActiveDirectoryAuthenticationProvider adLdapAuthenticationProvider() {
ActiveDirectoryAuthenticationProvider provider = ...
@rwinch
rwinch / AesGsmMain.java
Created March 27, 2015 18:53
AesGsmMain.java
/*
* Copyright 2002-2015 the original author or authors.
*
* Licensed 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
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':docs:manual:referencePdf'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExe

Keybase proof

I hereby claim:

  • I am rwinch on github.
  • I am rwinch (https://keybase.io/rwinch) on keybase.
  • I have a public key whose fingerprint is 3E61 ACA9 32AF 3DE7 02DC 5276 B5AA 7D62 F584 E2CD

To claim this, I am signing this object:

@rwinch
rwinch / nested-tables.adoc
Created February 18, 2015 19:33
nested-tables.adoc

Events

Event name Description

setup