Skip to content

Instantly share code, notes, and snippets.

@reitzig
reitzig / Dockerfile
Last active July 22, 2025 22:21
Run whisper.cpp as Container
FROM debian:11 AS build
RUN apt-get update \
&& apt-get install -y libsdl2-dev alsa-utils g++ make wget
RUN mkdir /whisper && \
wget -q https://github.com/ggerganov/whisper.cpp/tarball/master -O - | \
tar -xz -C /whisper --strip-components 1
WORKDIR /whisper
@Jguer
Jguer / fan-out_ordered.go
Created October 10, 2021 20:59
Ordered Fan-Out and collect in Go
package main
import (
"fmt"
"math/rand"
"os"
"runtime"
"strings"
"sync"
"time"
@arschles
arschles / keep-cool-with-fans.go
Last active August 19, 2023 10:10
Fan-out and Fan-in with Go
package fans
// this code was inspired by https://talks.golang.org/2012/concurrency.slide#36
//
// it uses the context package (which wasn't available when that presentation was made) instead of a timer to
// do timeouts
import (
"context"
"time"
@harlow
harlow / golang_job_queue.md
Last active August 23, 2025 04:12
Job queues in Golang