Skip to content

Instantly share code, notes, and snippets.

View AliveDevil's full-sized avatar

Jöran Malek AliveDevil

View GitHub Profile
#!/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):
//
// Copyright(c) 2022 Jöran "AliveDevil" Malek
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//

Keybase proof

I hereby claim:

  • I am alivedevil on github.
  • I am alivedevil (https://keybase.io/alivedevil) on keybase.
  • I have a public key ASDXRVOmCS9cu1b426UUsdyG8dbLbuUiHFe5fEeBR1dPIgo

To claim this, I am signing this object:

@AliveDevil
AliveDevil / keybase.md
Created March 29, 2014 20:55
keybase.md

Keybase proof

I hereby claim:

  • I am alivedevil on github.
  • I am alivedevil (https://keybase.io/alivedevil) on keybase.
  • I have a public key whose fingerprint is 7A9D 1C48 A4DA 44BA 75BE F95D 6E3C 8ABD E9FB B9DA

To claim this, I am signing this object: