Skip to content

Instantly share code, notes, and snippets.

@tekener
tekener / .zshrc
Last active December 12, 2019 20:00
Automatically choose sdkman java version as defined in .sdkmanjavarc file when entering directory (oh-my-zshell, .nvmrc)
sdkman_find_sdkmanjavarc () {
local dir
dir="$(sdkman_find_up '.sdkmanjavarc')"
if [ -e "${dir}/.sdkmanjavarc" ]
then
echo "${dir}/.sdkmanjavarc"
fi
}
sdkman_find_up () {
@tekener
tekener / pom.xml
Created September 11, 2012 17:10
Ensure that Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files are installed using maven-enforcer-plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>enforce</id>
<configuration>
<rules>