I hereby claim:
- I am bwplotka on github.
- I am bwplotka (https://keybase.io/bwplotka) on keybase.
- I have a public key ASBF3WaAmnBy4NO6giWMh5EvF0VTevLiRedpJYGZzb4fawo
To claim this, I am signing this object:
| .DEFAULT_GOAL := fmt | |
| MD_FILES_TO_FORMAT=$(shell find . -name "*.md") | |
| .PHONY: fmt | |
| fmt: ## Format docs. | |
| fmt: | |
| @echo "Formatting markdown files..." | |
| # <command that correctly formats $(MD_FILES_TO_FORMAT) files> | |
| .PHONY: check |
| package test | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "os" | |
| "os/exec" |
| package yolo | |
| import ( | |
| "context" | |
| "testing" | |
| "github.com/google/go-cmp/cmp" | |
| // Ecosystem is moving away from "gopkg.in/yaml.v2", so let's use what will be used long term | |
| // (does not matter much). |
| #!/bin/bash | |
| #set -x | |
| # Shows you the largest objects in your repo's pack file. | |
| # Written for osx. | |
| # | |
| # @see https://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
| # @author Antony Stubbs | |
| # set the internal field separator to line break, so that we can iterate easily over the verify-pack output |
| // Copyright (c) The Thanos Authors. | |
| // Licensed under the Apache License 2.0. | |
| package e2e_test | |
| import ( | |
| "context" | |
| "fmt" | |
| "net" | |
| "net/http" |
| // Copyright (c) The Thanos Authors. | |
| // Licensed under the Apache License 2.0. | |
| package manual | |
| import ( | |
| "context" | |
| "io/ioutil" | |
| "os" | |
| "testing" |
| #!/usr/bin/env bash | |
| set -e | |
| # Copyright (c) Bartłomiej Płotka @bwplotka | |
| # Licensed under the Apache License 2.0. | |
| # Yolo script allowing nice benchmark framework for iterative work on Go performance. | |
| # Requirements: | |
| # * Prepare worktree if you want to benchmark in background: git worktree add ../thanos_b yolo |
| package replayable | |
| import ( | |
| "bytes" | |
| "io" | |
| ) | |
| type Reader struct { | |
| wrapped io.Reader |
| package main | |
| import ( | |
| "testing" | |
| ) | |
| var sink1 = 0 | |
| func BenchmarkNotDefered(b *testing.B) { | |
| for n := 0; n < b.N; n++ { |
I hereby claim:
To claim this, I am signing this object: