This file contains 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
Following https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/ | |
# main upgrade | |
dnf upgrade --refresh | |
dnf install dnf-plugin-system-upgrade | |
dnf system-upgrade download --releasever=36 | |
dnf system-upgrade reboot | |
# refresh all locally modified config files | |
dnf install rpmconf |
This file contains 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 org.hamcrest.FeatureMatcher; | |
import org.hamcrest.Matcher; | |
import java.io.IOException; | |
import java.io.ObjectOutputStream; | |
import java.io.OutputStream; | |
import java.io.Serializable; | |
import java.io.UncheckedIOException; | |
import java.lang.invoke.SerializedLambda; | |
import java.util.Objects; |
This file contains 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 jakarta.json.Json; | |
import jakarta.json.JsonValue; | |
import jakarta.json.stream.JsonParser; | |
import org.junit.jupiter.api.Test; | |
import java.io.StringReader; | |
public class DoesWhatTheJavadocSaysTest { | |
@Test |
This file contains 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 java.time.LocalTime; | |
import java.time.format.DateTimeFormatter; | |
import java.util.Locale; | |
public class WhenDoPeriodsStart { | |
public static void main(String[] args) { | |
Locale locale = Locale.forLanguageTag(args[0]); | |
System.out.println("vendor = " + System.getProperty("java.vm.vendor")); |
This file contains 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
-- Journal begins at Tue 2020-07-07 21:08:36 BST, ends at Sat 2021-06-26 19:32:45 BST. -- | |
2021-06-26T19:20:27.868675+0100 rife kernel: microcode: microcode updated early to revision 0xea, date = 2021-01-25 | |
2021-06-26T19:20:27.868703+0100 rife kernel: Linux version 5.12.12-300.fc34.x86_64 (mockbuild@bkernel01.iad2.fedoraproject.org) (gcc (GCC) 11.1.1 20210531 (Red Hat 11.1.1-3), GNU ld version 2.35.1-41.fc34) #1 SMP Fri Jun 18 14:30:51 UTC 2021 | |
2021-06-26T19:20:27.868714+0100 rife kernel: Command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-5.12.12-300.fc34.x86_64 root=/dev/mapper/fedora_localhost--live-root ro resume=/dev/mapper/fedora_localhost--live-swap rd.lvm.lv=fedora_localhost-live/root rd.luks.uuid=luks-53565114-c06e-4499-9365-4302e0eb1b2c rd.lvm.lv=fedora_localhost-live/swap rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 | |
2021-06-26T19:20:27.868721+0100 rife kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' | |
2021-06-26T19:20:27.868727+0100 rif |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
@keyframes colour-scale { | |
0% { | |
background-color: red; | |
} | |
50% { |
This file contains 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
public class Class1 { | |
public static <Type1, Type2 extends Collection<Type1>> Type2 method(Supplier<Type2> parameter1, Collection<Type1> parameter2, Collection<Type1> parameter3) { | |
Type2 variable = Stream.concat(parameter2.stream() | |
.filter(Predicate.not(parameter3::contains)), | |
parameter3.stream() | |
.filter(Predicate.not(parameter2::contains))) | |
.collect(Collectors.toCollection(parameter1)); | |
return variable; | |
} |
This file contains 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
class Foo { | |
public static <T> Function<T, Stream<T>> foo(Predicate<T> predicate) { | |
return new Function<>() { | |
private T previous; | |
@Override | |
public Stream<T> apply(T current) { | |
if (predicate.test(current)) { | |
if (previous != null) { | |
T previous = this.previous; |
This file contains 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 jakarta.json.JsonObject; | |
import jakarta.json.spi.JsonProvider; | |
import jakarta.json.stream.JsonParser; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
public class ParseTest { |
This file contains 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.imageio.ImageIO; | |
import java.awt.image.BufferedImage; | |
import java.awt.image.WritableRaster; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Objects; |