Skip to content

Instantly share code, notes, and snippets.

View muhlemmer's full-sized avatar

Tim Möhlmann muhlemmer

View GitHub Profile
@muhlemmer
muhlemmer / config_clean.txt
Created April 21, 2026 11:26
gentoo-kernel config
# Kernel config without CONFIG_CRYPTO_* or CONFIG_DEBUG_* symbols.
# Used to pass to Gemini to do a sanity check agains a Framework 16 Laptop.
CONFIG_CC_VERSION_TEXT="x86_64-pc-linux-gnu-gcc (Gentoo 15.2.1_p20260214 p5) 15.2.1 20260214"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=150201
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24600
CONFIG_LD_IS_BFD=y
@muhlemmer
muhlemmer / docker-compose.yaml
Created October 13, 2023 11:34
zitadel with postgresql and pgadmin
version: '3.8'
services:
zitadel:
image: ghcr.io/zitadel/zitadel:${ZITADEL_VERSION:-latest}
command: start-from-init --masterkeyFromEnv --tlsMode disabled --config /config/zitadel.yaml
environment:
ZITADEL_MASTERKEY: ${ZITADEL_MASTERKEY:-MasterkeyNeedsToHave32Characters}
ZITADEL_SYSTEMDEFAULTS_PASSWORDHASHER_VERIFIERS: pbkdf2
restart: always
@muhlemmer
muhlemmer / glob_test.go
Last active March 3, 2023 09:34
Benchmark glob.Glob vs path.Match
package main
import (
"path"
"testing"
"github.com/gobwas/glob"
)
var patterns = []string{
@muhlemmer
muhlemmer / Dockerfile
Last active October 13, 2021 13:16
VScode .devcontainer for golang/go:master
FROM golang:latest
WORKDIR /master
RUN git clone --depth 1 https://github.com/golang/go.git
WORKDIR /master/go/src
RUN ./make.bash
ENV PATH "/master/go/bin:${PATH}"
RUN echo "PATH=${PATH}" >> /etc/bash.bashrc && echo "${PATH}"
package main
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"io"
"log"
"sync"
package main
import (
"errors"
"fmt"
"sync"
"time"
)
type clientSession struct {
@muhlemmer
muhlemmer / main.go
Created January 31, 2020 13:56
A small example used for presentations on Go routines.
package main
/*
Run with:
go run main.go
Flags:
-number int
Number of requests (default 10)
-wait int
Max wait for requests (default 100)
@muhlemmer
muhlemmer / mapSort.go
Last active February 15, 2019 22:52
Go map patterns
package main
import (
"fmt"
"sort"
)
type myIntMap map[int]string
func (m myIntMap) sort() (index []int) {
# This file is auto-generated by the Mailu configuration wizard.
# Please read the documentation before attempting any change.
# Generated for compose flavor
version: '3.6'
services:
# External dependencies
redis: