Skip to content

Instantly share code, notes, and snippets.

View laszlovandenhoek's full-sized avatar

László van den Hoek laszlovandenhoek

  • The Netherlands
View GitHub Profile
@laszlovandenhoek
laszlovandenhoek / Concrete.java
Created December 21, 2017 09:14
Composition in Java only goes so far :(
abstract class What {
public abstract String foo();
}
interface How {
default String foo() {
return "foo";
}
}
@laszlovandenhoek
laszlovandenhoek / dfe
Created August 29, 2024 09:51
A shell script to quickly inspect a particular file in a docker image, without having to run it.
#!/bin/sh
# Check if the correct number of arguments is provided
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <image> <source_path>"
exit 1
fi
# Assign arguments to variables
image="$1"