Skip to content

Instantly share code, notes, and snippets.

@rothgar
rothgar / README.md
Created July 1, 2025 21:08
Kubernetes distros node metrics comparison

This dashboard will let you compare metrics from Kubernetes nodes side-by-side from different clusters. It was used to compare different Kubernetes distributions which you can read about on this blog post.

You need to create clusters and install the node-exporter (yaml below ) and set up prometheus to scrape each node. Then add a prometheus datasource in grafana and import this dashboard.

@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active July 31, 2025 23:36
QEMU with VirtIO GPU Vulkan Support

QEMU with VirtIO GPU Vulkan Support

With its latest reales qemu added the Venus patches so that virtio-gpu now support venus encapsulation for vulkan. This is one more piece to the puzzle towards full Vulkan support.

An outdated blog post on clollabora described in 2021 how to enable 3D acceleration of Vulkan applications in QEMU through the Venus experimental Vulkan driver for VirtIO-GPU with a local development environment. Following up on the outdated write up, this is how its done today.

Definitions

Let's start with the brief description of the projects mentioned in the post & extend them:

@Seneral
Seneral / imgui_impl_opengl3.cpp.diff
Last active October 18, 2024 21:56
Dear ImGUI OpenGL integrated rendering - integrate GL views, update views and labels with partial rendering when UI and rest of screen is only updated on events
diff --git a/backends/imgui_impl_opengl3.cpp b/backends/imgui_impl_opengl3.cpp
index 2a4b1d7..aff8dbc
--- a/backends/imgui_impl_opengl3.cpp
+++ b/backends/imgui_impl_opengl3.cpp
@@ -114,6 +114,7 @@
#endif
#include "imgui.h"
+#include "imgui_internal.h"
#ifndef IMGUI_DISABLE
@mtijanic
mtijanic / rmmsg.c
Created June 10, 2024 11:39
Control OpenRM's log verbosity at runtime
#include <sys/ioctl.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// ctrl0000system.h
#define NV0000_CTRL_CMD_SYSTEM_DEBUG_RMMSG_CTRL (0x121U)
#define NV0000_CTRL_SYSTEM_DEBUG_RMMSG_SIZE 512U
local SECS = 5;
local function Min(x, y) {
if (x < y)
return x;
return y;
}
local function Max(x, y) {
if (x > y)
return x;
@SpencerLeung1024
SpencerLeung1024 / notes_on_lcm_loras_with_openvino_stable_diffusion.md
Last active February 18, 2024 22:27
Observations from using LCM LoRAs with openvinotoolkit/stable-diffusion-webui.
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
typedef unsigned int uint;
#ifndef PICO_PLL_VCO_MIN_FREQ_MHZ
#define PICO_PLL_VCO_MIN_FREQ_MHZ 750
#endif
#ifndef PICO_PLL_VCO_MAX_FREQ_MHZ
@fusetim
fusetim / protonvpn-wireguard-generator.py
Last active July 16, 2025 00:06
Generate lots of Wireguard configuration for your ProtonVPN Account.
import http.client
import http.cookies
import json
import base64
import hashlib
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import x25519
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives import hashes
@andrewrk
andrewrk / zig-perf.md
Last active July 10, 2022 09:14
some measurements of zig self-hosted compiler perf

Building a debug build of Zig:

zig build -Dskip-install-lib-files

Measurements taken on:

  • Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  • 0.10.0-dev.2381+39ebfedd2

stage1

@columbarius
columbarius / debug-pipewire-screencast.sh
Last active August 17, 2023 07:43
PipeWire Screencast Info
#!/bin/sh
pw-dump | jq -r '[.[] | select(.info.props."node.name" | IN("firefox","gnome-shell","kwin_wayland","obs","xdg-desktop-portal-wlr","xdp-screencast.py")) | .id] as $pw_node_ids | [ .[] | select(.info.props."node.id" | IN($pw_node_ids[])) | .id ] as $pw_port_ids | .[] | select(.id | IN(($pw_node_ids + $pw_port_ids)[]))'