Skip to content

Instantly share code, notes, and snippets.

View wumpz's full-sized avatar
🎯
Focusing

Tobias wumpz

🎯
Focusing
View GitHub Profile
@wumpz
wumpz / gist:fee4f4fe438831602e8d18a6a09b7f89
Created March 27, 2024 13:29
extract encoded text from resteasy MultipartFormDataInput variable
MultipartFormDataInput input;
String param = new String(input.getFormDataPart("param", byte[].class, null), "UTF-8");
feature-styles:
- rules:
- title: raster
filter: ${isCoverage()=true}
symbolizers:
- raster:
opacity: 1.0
- title: gold polygon
filter: ${dimension(geometry())='2'}
symbolizers:
@wumpz
wumpz / gist:ad2e37e4317ade4206e05cb86380a29f
Created October 5, 2018 09:37
Setting root LogBack logger to only Warning
ch.qos.logback.classic.Logger root = (ch.qos.logback.classic.Logger) org.slf4j.LoggerFactory.getLogger(ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME);
root.setLevel(ch.qos.logback.classic.Level.WARN);
@wumpz
wumpz / gist:29d4724271934647bd4738352d2d30a4
Created August 2, 2018 06:25
relative path of two File instances in java
new File(baseDirectory).toURI().relativize(new File(subpathItem).toURI()).getPath()
@wumpz
wumpz / gist:03998be02b3eecfc6797246db5739f11
Created January 4, 2018 13:56
maven plugin config to extract data using liquibase and maven (generateChangeLog) (structure and data)
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>test-data-liquibase</id>
<configuration>
<target xmlns:liquibase="antlib:liquibase.integration.ant">
<macrodef name="extract-data">
<attribute name="output" />
@wumpz
wumpz / gist:5846559
Created June 23, 2013 21:12
list authors of a git repository including commit count and email
git shortlog -e -s -n