Skip to content

Instantly share code, notes, and snippets.

💀
memento mori

Carlos Alexandro Becker caarlos0

💀
memento mori
Block or report user

Report or block caarlos0

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View relabelings.yaml
prometheus-operator:
kubelet:
serviceMonitor:
metricRelabelings:
- sourceLabels: ["__name__"]
regex: 'storage_operation.*'
action: drop
cAdvisorMetricRelabelings:
- sourceLabels: ["__name__"]
regex: '(container_network_tcp.*|container_network_udp.*|container_fs_.*|container_tasks_state.*|container_memory_failures_total|.*swap.*)'
View kubeval.sh
#!/bin/sh
set -ex
TAR_FILE="/tmp/kubeval.tar.gz"
RELEASES_URL="https://github.com/garethr/kubeval/releases"
test -z "$TMPDIR" && TMPDIR="$(mktemp -d)"
last_version() {
curl -sL -o /dev/null -w %{url_effective} "$RELEASES_URL/latest" |
rev |
@caarlos0
caarlos0 / vale.sh
Created Apr 9, 2018
valelint godownloader script
View vale.sh
#!/bin/sh
set -e
# Code generated by godownloader on 2018-04-09T18:43:07Z. DO NOT EDIT.
#
usage() {
this=$1
cat <<EOF
$this: download go binaries for ValeLint/vale
View instrumented-app.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: example-app
spec:
replicas: 2
template:
metadata:
labels:
app: example-app
View Brewfile
tap 'caarlos0/tap'
tap 'caskroom/cask'
tap 'caskroom/fonts'
tap 'caskroom/versions'
tap 'eqnxio/ngrok'
tap 'getantibody/tap'
tap 'go-delve/delve'
tap 'goreleaser/tap'
tap 'homebrew/bundle'
tap 'homebrew/core'
@caarlos0
caarlos0 / postmortem.md
Created Sep 26, 2016 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491
View postmortem.md

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@caarlos0
caarlos0 / alemanha.txt
Created Aug 21, 2016
Escalações Brasil X Alemanha - Idade dos jogadores - Final Olimpiadas 2016
View alemanha.txt
19 Max Christiansen
20 Julian Brandt
20 Lukas Klostermann
20 Max Meyer
20 Niklas Süle
21 Davie Selke
21 Grischa Prömel
21 Leon Goretzka
21 Robert Bauer
21 Serge Gnabry
View gofiles.sh
#!/bin/sh
go get -u -v github.com/alecthomas/gometalinter
go get -u -v github.com/golang/lint/golint
go get -u -v github.com/lukehoban/go-outline
go get -u -v github.com/mitchellh/gox
go get -u -v github.com/motemen/gore
go get -u -v github.com/newhook/go-symbols
go get -u -v github.com/nsf/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v github.com/tpng/gopkgs
You can’t perform that action at this time.