Bug demo:
quoted block 1 start
fenced pre block 1
quoted block 1 end
module radix-bug | |
go 1.14 | |
require ( | |
github.com/mediocregopher/radix/v3 v3.5.1 | |
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a | |
) |
artyom@rpi:~ $ sudo cryptsetup benchmark | |
# Tests are approximate using memory only (no storage IO). | |
PBKDF2-sha1 359593 iterations per second for 256-bit key | |
PBKDF2-sha256 539390 iterations per second for 256-bit key | |
PBKDF2-sha512 261359 iterations per second for 256-bit key | |
PBKDF2-ripemd160 266136 iterations per second for 256-bit key | |
PBKDF2-whirlpool 47489 iterations per second for 256-bit key | |
argon2i 4 iterations, 230664 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time) | |
argon2id 4 iterations, 240514 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time) | |
# Algorithm | Key | Encryption | Decryption |
FROM golang:alpine AS builder | |
WORKDIR /app | |
ENV GOPROXY=https://proxy.golang.org CGO_ENABLED=0 | |
COPY . . | |
RUN go build -ldflags='-s -w' -o server | |
FROM scratch | |
EXPOSE 8080 | |
VOLUME /web | |
COPY --from=builder /app/server . |
Bug demo:
quoted block 1 start
fenced pre block 1
quoted block 1 end
//+build generate | |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"go/doc" | |
"go/parser" | |
"go/token" |
# Correctly display UTF-8 with combining characters. | |
if [ "$TERM_PROGRAM" = "Apple_Terminal" ]; then | |
setopt combiningchars | |
fi | |
disable log | |
export CLICOLOR=1 | |
export GREP_OPTIONS='--color=auto' | |
export LESS='-iFXc' |
MemTotal: 3889744 kB | |
MemFree: 82304 kB | |
MemAvailable: 18652 kB | |
Buffers: 32 kB | |
Cached: 4572 kB | |
SwapCached: 0 kB | |
Active: 514320 kB | |
Inactive: 2472 kB | |
Active(anon): 512444 kB | |
Inactive(anon): 224 kB |
// TODO describe program | |
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"os" | |
"strings" |
module github.com/artyom/upload-s3-random-data | |
require ( | |
github.com/aws/aws-sdk-go v1.15.6 | |
github.com/davecgh/go-spew v1.1.0 // indirect | |
github.com/gopherjs/gopherjs v0.0.0-20180628210949-0892b62f0d9f // indirect | |
github.com/jtolds/gls v4.2.1+incompatible // indirect | |
github.com/pmezard/go-difflib v1.0.0 // indirect | |
github.com/smartystreets/assertions v0.0.0-20180803164922-886ec427f6b9 // indirect | |
github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a // indirect |
// TODO describe program | |
package main | |
import ( | |
"fmt" | |
"io" | |
"math/rand" | |
"net/http" | |
"os" | |
"strconv" |