Skip to content

Instantly share code, notes, and snippets.

@Dreamacro
Dreamacro / Dockerfile
Created January 21, 2024 14:04
secnetperf docker image
FROM debian:bullseye-slim as builder
RUN apt update && apt install -y g++ cmake make git wget && \
wget -q https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/powershell_7.4.1-1.deb_amd64.deb && \
dpkg -i powershell_7.4.1-1.deb_amd64.deb && \
git clone --depth 1 https://github.com/microsoft/msquic.git && \
cd msquic && \
git submodule update --init && \
pwsh -c "./scripts/build.ps1 -Config Release -Clean"
@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