Skip to content

Instantly share code, notes, and snippets.

View Dreamacro's full-sized avatar

Dreamacro Dreamacro

View GitHub Profile
@Dreamacro
Dreamacro / Dockerfile
Last active July 21, 2025 16:30
secnetperf docker image
FROM debian:bookworm-slim AS builder
RUN apt update && apt install -y g++ cmake make git wget && \
wget -q https://github.com/PowerShell/PowerShell/releases/download/v7.5.2/powershell_7.5.2-1.deb_amd64.deb && \
dpkg -i powershell_7.5.2-1.deb_amd64.deb && \
git clone --depth 1 https://github.com/microsoft/msquic.git && \
cd msquic && \
git submodule update --init ./submodules/openssl/ && \
pwsh -c "./scripts/build.ps1 -Config Release -Clean -Tls openssl -DisableTest -DisableTools -Static"
@Dreamacro
Dreamacro / .zshrc
Last active January 22, 2022 08:37
A simple docker image and shell function for pprof
gopprof() {
echo $1 $2 $#
if [ "$1" = "ui" ]; then
docker run --rm -w `pwd` -v `pwd`:/where/your/ci/path -p 8081:8081 -it pprof go tool pprof -http="0.0.0.0:8081" "http://$2:6060/debug/pprof/heap"
else
docker run --rm -w `pwd` -v `pwd`:/where/your/ci/path -it pprof go tool pprof "http://$1:6060/debug/pprof/heap"
fi
}
@Dreamacro
Dreamacro / ACMESH.md
Last active May 14, 2023 17:37
acme.sh docker-compose

How to use

$ docker-compose -f acmesh.yaml up -d
# Run once
$ docker exec -it acme --issue --dns dns_cf \
    -d \*.example.com \
    --key-file /certs/privkey.pem \
    --fullchain-file /certs/fullchain.pem \
 --standalone