Skip to content

Instantly share code, notes, and snippets.

View AliveDevil's full-sized avatar

Jöran Malek AliveDevil

View GitHub Profile
@AliveDevil
AliveDevil / 01-Result.txt
Created September 19, 2025 19:49
JsonSerializerContext construction benchmark.
// * Summary *
BenchmarkDotNet v0.15.3, Linux Ubuntu 25.04 (Plucky Puffin)
Intel Core i5-7200U CPU 2.50GHz (Max: 2953.19GHz) (Kaby Lake), 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.305
[Host] : .NET 8.0.20 (8.0.20, 8.0.2025.41914), X64 RyuJIT x86-64-v3
DefaultJob : .NET 8.0.20 (8.0.20, 8.0.2025.41914), X64 RyuJIT x86-64-v3
| Method | Mean | Error | StdDev | Ratio | RatioSD | Gen0 | Gen1 | Allocated | Alloc Ratio |
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
BenchmarkRunner.Run<Program>(args: args);
[MemoryDiagnoser]
@AliveDevil
AliveDevil / backends.map
Last active August 23, 2025 15:52
Dynamic HAproxy backend lookup
target_server_https http
enum ParserMode
{
Unspecified = -1,
Progress = 1,
Version = 2
}
~# dnf update
Letzte Prüfung auf abgelaufene Metadaten: vor 0:14:33 am Fr 18 Okt 2024 20:06:32 CEST.
Abhängigkeiten sind aufgelöst.
==============================================================================================================
Paket Architektur Version Paketquelle Größe
==============================================================================================================
Aktualisieren:
dotnet-host x86_64 9.0.0~rc.1.24431.7-0.11.fc40 updates 206 k
netstandard-targeting-pack-2.1 x86_64 9.0.100~rc.1.24452.1-0.11.fc40 updates 1.3 M
#!/usr/bin/env bash
SERVICE_NAME=${1?"Arg 1 should be set to the service name"}
WORKDIR=${2?"Arg 2 should be set to the workdir"}
WORKDIR=$(realpath "${WORKDIR:+${WORKDIR}/}")
ENV_FILE=".env.${SERVICE_NAME}"
ENV_PATH="${WORKDIR}/${ENV_FILE}"
set -a
@AliveDevil
AliveDevil / Program.cs
Created October 14, 2023 22:59
AvaloniaUI Microsoft.Extensions.Hosting interop
using Avalonia;
using Avalonia.Threading;
using Avalonia.ReactiveUI;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using ReactiveUI;
using Splat;
@AliveDevil
AliveDevil / Cursed.cs
Last active July 13, 2023 10:16
Cursed.
using System.Runtime.CompilerServices;
Console.WriteLine("Hello, World!");
ConcreteWindow w = new();
Window<int> a = Unsafe.As<Window<int>>(w);
a.Show();
;
public interface IViewFor<T> { }
raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: Fehler beim Bearbeiten des Paketes linux-image-6.1.0-10-amd64 (--configure):
»installiertes post-installation-Skript des Paketes linux-image-6.1.0-10-amd64«-Unterprozess gab den Fehlerwert 1 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von linux-image-amd64:
linux-image-amd64 hängt ab von linux-image-6.1.0-10-amd64 (= 6.1.37-1); aber:
Paket linux-image-6.1.0-10-amd64 ist noch nicht konfiguriert.
dpkg: Fehler beim Bearbeiten des Paketes linux-image-amd64 (--configure):
1D0S-read: (g=0): rw=read, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=psync, iodepth=1
fio-3.30
Starting 1 process
1D0S-read: Laying out IO file (1 file / 5120MiB)
1D0S-read: (groupid=0, jobs=1): err= 0: pid=2160: Sun Oct 16 19:38:10 2022
read: IOPS=2240, BW=8963KiB/s (9178kB/s)(263MiB/30001msec)
clat (usec): min=216, max=89999, avg=444.53, stdev=925.64
lat (usec): min=216, max=89999, avg=444.71, stdev=925.65
clat percentiles (usec):