Skip to content

Instantly share code, notes, and snippets.

Avatar

Jérémie Panzer Athou

  • Brussels, Belgium
View GitHub Profile
@Athou
Athou / docker-wsl2-setup.sh
Last active Sep 20, 2022
install docker in Debian 11/WSL2 without Docker Desktop
View docker-wsl2-setup.sh
# install docker in Debian 11/WSL2
# uses systemd-genie since docker requires systemd but it's not available for WSL
# this is an alternative to Docker Desktop
# prerequisites
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ca-certificates curl wget gnupg lsb-release apt-transport-https
# systemd-genie requires dotnet runtime, add Microsoft repo
@Athou
Athou / PlaywrightTestBase.java
Created Aug 27, 2021
Playwright JUnit5 base class that saves artifacts on failed test
View PlaywrightTestBase.java
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Optional;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.extension.BeforeEachCallback;