most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| org.guanxi.xal.saml_2_0.protocol.ResponseDocument responseDoc; | |
| responseDoc = ResponseDocument.Factory.parse(pod.getBag().getSamlResponse()); | |
| To access the attributes in a SAML2 Response, see: | |
| org.guanxi.sp.guard.AttributeConsumer::processSAML2Response |
| @Typed package org.mbte.akkatest | |
| import se.scalablesolutions.akka.actor.* | |
| import java.util.concurrent.TimeUnit | |
| import java.util.concurrent.CountDownLatch | |
| import se.scalablesolutions.akka.config.JavaConfig.AllForOne | |
| import se.scalablesolutions.akka.config.JavaConfig.RestartStrategy | |
| import se.scalablesolutions.akka.config.ScalaConfig.Server | |
| class Akka { |
| #! /bin/sh | |
| # ================================================================== | |
| # ______ __ _____ | |
| # /_ __/___ ____ ___ _________ _/ /_ /__ / | |
| # / / / __ \/ __ `__ \/ ___/ __ `/ __/ / / | |
| # / / / /_/ / / / / / / /__/ /_/ / /_ / / | |
| #/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/ | |
| # Multi-instance Apache Tomcat installation with a focus | |
| # on best-practices as defined by Apache, SpringSource, and MuleSoft |
| #!/bin/bash | |
| while : | |
| do | |
| clear | |
| git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $* | |
| sleep 1 | |
| done |
| package net.unicon.cas.addons.persondir; | |
| import java.util.List; | |
| import java.util.Map; | |
| ... | |
| /** | |
| * Sketch of an attribute DAO that computes a new attribute value from the input. | |
| */ |
| @Configuration | |
| @EnableWebMvcSecurity | |
| public class WebSecurityConfig extends WebSecurityConfigurerAdapter { | |
| @Bean | |
| public ServiceProperties serviceProperties() { | |
| ServiceProperties serviceProperties = new ServiceProperties(); | |
| serviceProperties.setService("https://localhost:8443/cas-sample/j_spring_cas_security_check"); | |
| serviceProperties.setSendRenew(false); | |
| return serviceProperties; |
| #!/bin/bash | |
| # Oracle hasn't updated the Java 1.7u65 installer to support Yosemite, | |
| # so here's a way to get it installed. | |
| # This is actually what I used to get IntelliJ IDEA running, but even | |
| # if you aren't running that IDE, this is a quick script to get Java | |
| # going strong on your fresh install of OS X 10.10 | |
| # Install Java 6 for OS X |
| #!/usr/bin/env bash | |
| # If you're using docker-machine, call this script with your | |
| # environment name | |
| # Ex: ./vpn_fix dev | |
| DEFAULTVM="boot2docker-vm" | |
| [ $(id -u) = 0 ] || { echo "You must be root (or use 'sudo')" ; exit 1; } | |
| report_success () |
| @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.* |