Skip to content

Instantly share code, notes, and snippets.

@kwohlfahrt
kwohlfahrt / debug.log
Created August 25, 2025 20:56
mkosi repart error log
‣ Loading configuration file /mnt/build/mkosi/mkosi.conf
‣ /mnt/build/mkosi/mkosi.conf: Setting ImageId specified by specifier '%i' in %i-%v is not yet set, ignoring
‣ Loading configuration file /tmp/tmp_gx3z7sx/resources/mkosi-tools/mkosi.conf
‣ Loading configuration file /tmp/tmp_gx3z7sx/resources/mkosi-tools/mkosi.conf.d/azure-centos-fedora/mkosi.conf
‣ Loading configuration file /tmp/tmp_gx3z7sx/resources/mkosi-tools/mkosi.conf.d/azure-centos-fedora/mkosi.conf.d/efi.conf
‣ Loading configuration file /tmp/tmp_gx3z7sx/resources/mkosi-tools/mkosi.conf.d/azure-fedora/mkosi.conf
‣ Loading configuration file /tmp/tmp_gx3z7sx/resources/mkosi-tools/mkosi.conf.d/fedora/mkosi.conf
‣ Loading configuration file /tmp/tmp_gx3z7sx/resources/mkosi-tools/mkosi.profiles/misc/mkosi.conf
‣ Loading configuration file /tmp/tmp_gx3z7sx/resources/mkosi-tools/mkosi.profiles/misc/mkosi.conf.d/azure-centos-fedora.conf
‣ Loading configuration file /tmp/tmp_gx3z7sx/resources/mkosi-tools/mkosi.profiles/package-manager/mkosi.conf.d/fed
@kwohlfahrt
kwohlfahrt / controller.log
Created May 14, 2024 17:48
Actions Runner fsGroup logs
2024-05-14T17:44:59Z INFO EphemeralRunnerSet Ephemeral runner counts {"ephemeralrunnerset": {"name":"kai-k8s-cpu-5zj55","namespace":"actions-runner-66769bad"}, "pending": 0, "running": 1, "finished": 0, "failed": 0, "deleting": 0}
2024-05-14T17:44:59Z INFO EphemeralRunnerSet Scaling comparison {"ephemeralrunnerset": {"name":"kai-k8s-cpu-5zj55","namespace":"actions-runner-66769bad"}, "current": 1, "desired": 1}
2024-05-14T17:44:59Z INFO EphemeralRunner Ephemeral runner container is still running {"ephemeralrunner": {"name":"kai-k8s-cpu-5zj55-runner-b2277","namespace":"actions-runner-66769bad"}}
2024-05-14T17:44:59Z INFO EphemeralRunnerSet Ephemeral runner counts {"ephemeralrunnerset": {"name":"kai-k8s-cpu-5zj55","namespace":"actions-runner-66769bad"}, "pending": 0, "running": 1, "finished": 0, "failed": 0, "deleting": 0}
2024-05-14T17:44:59Z INFO EphemeralRunnerSet Scaling comparison {"ephemeralrunnerset": {"name":"kai-k8s-cpu-5zj55","namespace":"actions-runner-66769bad"}, "current": 1, "desired": 2}
2024-05-1
@kwohlfahrt
kwohlfahrt / DDP.ipynb
Created March 29, 2024 19:07
Fairscale Sharded DDP investigation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kwohlfahrt
kwohlfahrt / controller.log
Created February 8, 2024 15:07
GHA Docker Bug Logs
2024-02-08T14:51:43Z INFO EphemeralRunnerSet Ephemeral runner counts {"ephemeralrunnerset": {"name":"k8s-gpu-hl278","namespace":"actions-runner-dde6186c"}, "pending": 2, "running": 4, "finished": 0, "failed": 0, "deleting": 0}
2024-02-08T14:51:43Z INFO EphemeralRunnerSet Scaling comparison {"ephemeralrunnerset": {"name":"k8s-gpu-hl278","namespace":"actions-runner-dde6186c"}, "current": 6, "desired": 6}
2024-02-08T14:51:43Z INFO EphemeralRunner Ephemeral runner container is still running {"ephemeralrunner": {"name":"k8s-gpu-hl278-runner-842q4","namespace":"actions-runner-dde6186c"}}
2024-02-08T14:51:47Z INFO EphemeralRunner Finalizing ephemeral runner {"ephemeralrunner": {"name":"k8s-cpu-4d6n8-runner-d5c6l","namespace":"actions-runner-dde6186c"}}
2024-02-08T14:51:47Z INFO EphemeralRunner Cleaning up the runner pod {"ephemeralrunner": {"name":"k8s-cpu-4d6n8-runner-d5c6l","namespace":"actions-runner-dde6186c"}}
2024-02-08T14:51:47Z INFO EphemeralRunner Waiting for ephemeral runner owned resources to be deleted {
@kwohlfahrt
kwohlfahrt / spark.py
Created April 5, 2022 17:48
Weird Spark Filter Planning
from pyspark.sql import SparkSession, functions as F
@F.udf(returnType=T.BooleanType())
def do_foo(x: str) -> bool:
return True
spark = SparkSession.builder.getOrCreate()
df = spark.createDataFrame([("bla",), ("blah",), ("blarg",)], schema=["x"])
df = df.repartition(20)
df = df.withColumn("foo", do_foo(df.x))
@kwohlfahrt
kwohlfahrt / addr
Last active May 27, 2020 17:43
Strongswan Logs
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
inet6 fd01::3/128 scope global nodad
valid_lft forever preferred_lft forever
inet6 2a00::e4df/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 315359984sec preferred_lft 315359984sec
inet6 fdaa::e4df/64 scope global mngtmpaddr noprefixroute
valid_lft forever preferred_lft forever
@kwohlfahrt
kwohlfahrt / index.ts
Created April 8, 2020 12:53
Minimal WebRTC call
type ServerMessage =
| {
type: "Hello";
peers: number[];
}
| {
type: "AddPeer";
peer: number;
}
| {
@kwohlfahrt
kwohlfahrt / index.html
Last active March 17, 2020 10:37
WebGL Balls
<html>
<meta charset="utf-8">
<script type="text/javascript" src="./main.js"></script>
<body>
<canvas id="glCanvas" width="720" height="720"></canvas>
</body>
</html>
@kwohlfahrt
kwohlfahrt / callback.js
Created October 23, 2019 14:47
React batched updates
const MyComp = () => {
const [state, setState] = React.useState({foo: 0})
return <div onClick={() => setTimeout(() =>
// Without this, react will do many VDOM diffs
ReactDOM.unstable_batchedUpdates(() => {
for (const i = 0; i < 100; i++) setState({foo: i});
}),
0,
)} />;
};
@kwohlfahrt
kwohlfahrt / coin.py
Created October 23, 2019 10:19
PyMC3 for coin flips
import pymc3 as pm
import numpy as np
with pm.Model() as model:
flips = {}
def getFlip(n):
if n not in flips:
flips[n] = pm.DiscreteUniform(f"coin-{n}", 1, 2)
return flips[n]