Skip to content

Instantly share code, notes, and snippets.

View andir's full-sized avatar

Andreas Rammhold andir

View GitHub Profile
{ pkgs, lib, config, ... }:
let
inherit (lib) types;
sandboxOptions = types.submodule ({ name, ... }: {
options = {
packages = lib.mkOption {
type = types.listOf types.package;
default = [ ];
};
entryPoint = lib.mkOption {
@andir
andir / sm.md
Last active February 18, 2026 20:13

🧾 The Simple Sabotage Guide for Cloud-Native Organizations

(A Satirical Field Manual for Maximum Bureaucratic Drag)

General Principles

  1. Prefer Meetings Over Progress When a decision can be made in Slack, schedule a 60-minute Zoom. When a 60-minute Zoom will suffice, create a recurring weekly sync. Always conclude with: “Let’s take this offline.”
import sys
import os
from PIL import Image
import numpy as np
def recolor_blue_to_red(image_path):
img = Image.open(image_path)
# Preserve original format
@andir
andir / foo.el
Last active March 23, 2026 12:42
;;
;; * Corfu, Embark, Consult, Cape
;; Corfu enhances in-buffer completion by displaying a compact popup with current
;; candidates, positioned either below or above the point. Candidates can be
;; selected by navigating up or down.
#+begin_src emacs-lisp :tangle "post-init.el"
(use-package corfu
:ensure t
{
pkgs ? import <nixpkgs> { },
lib ? pkgs.lib,
}:
with (import <nixpkgs/nixos/lib/qemu-flags.nix> { inherit pkgs; });
{
mkVM =
{
name,
config ? { },