Skip to content

Instantly share code, notes, and snippets.

View dmengelt's full-sized avatar
// TODO cleanup later

Dominik Mengelt dmengelt

// TODO cleanup later
View GitHub Profile
dmengelt / docker-compose.yml
Last active November 29, 2020 20:32
a configuration to run a unifi cloud key behind traefik
version: "3.3"
image: traefik:v2.2.0
container_name: traefik
restart: unless-stopped
- --log.level=DEBUG
- --api
public Map<String, Integer> speciesCount2() {
return animalRepository.findAll()
.stream().collect(groupingBy(Animal::getSpecies, summingInt(x -> 1)));
dmengelt / xd log exception
Created May 11, 2015 19:58
Spring XD - twitterstream
2015-05-11 21:54:24,501 1.1.2.RELEASE WARN twitterSource-1-1 twitter.TwitterStreamChannelAdapter - Exception while reading stream.
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "":Read timed out; nested exception is Read timed out
at org.springframework.web.client.RestTemplate.doExecute(
at org.springframework.web.client.RestTemplate.execute(
at org.springframework.integration.x.twitter.AbstractTwitterInboundChannelAdapter$StreamReadingTask.readStream(
at org.springframework.integration.x.twitter.AbstractTwitterInboundChannelAdapter$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
dmengelt /
Last active November 9, 2017 09:32
group values of list of key values pairs
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.AbstractMap.SimpleEntry;
public class Grouper {
public static void main(String[] args) {
if(args == null || args.length == 0) {