This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun FIXME(reason: String) { | |
val callStack = Thread.currentThread().stackTrace | |
.filter { stackTraceElement -> stackTraceElement.methodName != "FIXME" && (stackTraceElement.className != "java.lang.Thread" && stackTraceElement.methodName != "getStackTrace") } | |
.take(4) | |
.joinToString(separator = "\n") { stackTraceElement -> " at $stackTraceElement" } | |
System.err.println("FIXME: $reason\ncallstack:\n$callStack") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: digitalfrontiers-sample-ingress | |
spec: | |
rules: | |
- host: sample-service.example.com | |
http: | |
paths: | |
- path: / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
country=DE | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
network={ | |
ssid="MY_SSID" | |
psk="SOME_AMAZING_SECURE_PASSWORD" | |
key_mgmt=WPA-PSK | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download the docker installation script | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
# I prefer to have a brief look at the contents of such scripts | |
# this is optional - as long as you trust the source | |
# vim get-docker.sh | |
# finally run the installation | |
chmod +x get-docker.sh | |
./get-docker.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.levigo</groupId> | |
<artifactId>junit5-playground</artifactId> | |
<version>1.0-SNAPSHOT</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Configuration context listener which registers the PrintDocumentServerTransaction within the jadice web toolkit. | |
*/ | |
public class ConfigurationContextListener extends WebtoolkitServletContextListener { | |
@Override | |
protected void contextInitialized(ServletContextEvent sce, WebtoolkitServerContext webtoolkitContext) { | |
// ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.print.PrintService; | |
import javax.print.PrintServiceLookup; | |
public class ListInstalledPrintservices { | |
public static void main(String[] args) { | |
for (PrintService service : PrintServiceLookup.lookupPrintServices(null, null)) { |