- English as language in macOS install
- FileVault activated
- Logged in with Apple-Id
****
- Installed Homebrew via Curl script
- asdf installed via Homebrew
- asdf Ruby plugin installed
- Ruby 2.7.6 installed globally with asdf
- Gem
xcode-installed
globally for Ruby 2.7.6 - XCode installed via
xcversion install 13.3.1
Gitlab Runner installed viabrew install gitlab-runner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package handler | |
// Handler handles commands | |
type Handler struct { | |
db *sql.DB | |
instrumentation instrumentation | |
} | |
type Deps struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://steveholgado.com/nginx-for-nextjs/ | |
# - /var/cache/nginx sets a directory to store the cached assets | |
# - levels=1:2 sets up a two‑level directory hierarchy as file access speed can be reduced when too many files are in a single directory | |
# - keys_zone=STATIC:10m defines a shared memory zone for cache keys named “STATIC” and with a size limit of 10MB (which should be more than enough unless you have thousands of files) | |
# - inactive=7d is the time that items will remain cached without being accessed (7 days), after which they will be removed | |
# - use_temp_path=off tells NGINX to write files directly to the cache directory and avoid unnecessary copying of data to a temporary storage area first | |
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=STATIC:10m inactive=7d use_temp_path=off; | |
upstream nextjs_upstream { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"reflect" | |
) | |
type Something interface{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/http" | |
) | |
func main() { | |
mux := http.NewServeMux() | |
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run: | |
concurrency: 4 | |
timeout: 5m | |
# Do not fail, we check the output for errors with severity "critical" | |
issues-exit-code: 0 | |
tests: true | |
output: | |
format: line-number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type recyclableReader struct { | |
originalReader io.Reader | |
teeReader io.Reader | |
buffer *bytes.Buffer | |
} | |
func newRecyclableReader(file io.Reader) *recyclableReader { | |
buffer := new(bytes.Buffer) | |
teeReader := io.TeeReader(file, buffer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goos: darwin | |
goarch: arm64 | |
pkg: github.com/barakmich/go-popcount | |
BenchmarkCountBytes/32-10 314055555 3.808 ns/op 8402.63 MB/s | |
BenchmarkCountBytes/128-10 378914162 3.167 ns/op 40410.70 MB/s | |
BenchmarkCountBytes/1K-10 82149579 14.22 ns/op 72006.56 MB/s | |
BenchmarkCountBytes/16K-10 5750053 208.5 ns/op 78598.68 MB/s | |
BenchmarkCountBytes/128K-10 727538 1636 ns/op 80130.24 MB/s | |
BenchmarkCountBytes/1M-10 92504 12951 ns/op 80963.91 MB/s | |
BenchmarkCountBytes/16M-10 4234 253830 ns/op 66096.21 MB/s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "MyFirstTestPool", | |
"description": "The pool that tests all the pools", | |
"ticker": "TSTCL", | |
"homepage": "https://teststakepool.com" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.15 as builder | |
WORKDIR /app | |
COPY . . | |
RUN CGO_ENABLED=0 go build -o bin/test | |
# --- |
NewerOlder