Skip to content

Instantly share code, notes, and snippets.

@OLibutzki
OLibutzki / PlaywrightWithTestcontainers.java
Last active February 2, 2022 14:04
Demonstrates how to run Playwright Java in conjunction with Testcontainers
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS com.microsoft.playwright:playwright:1.18.0
//DEPS org.testcontainers:testcontainers:1.16.3
//DEPS org.slf4j:slf4j-nop:1.7.35
import static java.lang.System.out;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.wait.strategy.Wait;
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
@enduml
//usr/bin/env jbang "$0" "$@" ; exit $?
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
@OLibutzki
OLibutzki / Output
Last active August 29, 2015 14:18
TestNG parallelism issue
tetsngparallel.ParallelTestClass@47d384ee: method1 running on thread 12, pool-1-thread-1
tetsngparallel.ParallelTestClass@47d384ee: method2 running on thread 12, pool-1-thread-1
tetsngparallel.ParallelTestClass@47d384ee: method3 running on thread 12, pool-1-thread-1
tetsngparallel.ParallelTestClass@3930015a: method1 running on thread 13, pool-1-thread-2
tetsngparallel.ParallelTestClass@3930015a: method2 running on thread 13, pool-1-thread-2
tetsngparallel.ParallelTestClass@3930015a: method3 running on thread 13, pool-1-thread-2
tetsngparallel.ParallelTestClass@629f0666: method1 running on thread 14, pool-1-thread-3
tetsngparallel.ParallelTestClass@629f0666: method2 running on thread 14, pool-1-thread-3
tetsngparallel.ParallelTestClass@629f0666: method3 running on thread 14, pool-1-thread-3
tetsngparallel.ParallelTestClass@2d6a9952: method1 running on thread 15, pool-1-thread-4
@OLibutzki
OLibutzki / 00doc.txt
Last active August 29, 2015 14:06 — forked from jpmens/00doc.txt
The only way I've been able to get openHAB behind an nginx proxy is by:
For debugging, I ran curl(1) against nginx:
$ curl -k 'https://192.168.1.130:9443/rest/sitemaps/jp?type=json'
{"name":"jp","link":"https://192.168.1.130:9443/rest/sitemaps/jp","homepage
The important thing to look out for here, is that ALL URIs returned are actually of scheme 'https'.