Skip to content

Instantly share code, notes, and snippets.

@caarlos0
caarlos0 / vale.sh
Created April 9, 2018 18:43
valelint godownloader script
#!/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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: example-app
spec:
replicas: 2
template:
metadata:
labels:
app: example-app
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 / shot.png
Last active January 23, 2017 18:41
shot.png
@caarlos0
caarlos0 / postmortem.md
Created September 26, 2016 14:39 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@caarlos0
caarlos0 / alemanha.txt
Created August 21, 2016 15:25
Escalações Brasil X Alemanha - Idade dos jogadores - Final Olimpiadas 2016
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
#!/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
#!/bin/bash
# name: old-files.sh
# author: Carlos Alexandro Becker (caarlos0@gmail.com)
#
# List the files not changed in a git repo in the last X time.
#
# Usage:
# ./old-files.sh 1 year
#
set -eo pipefail
@caarlos0
caarlos0 / clone-all-org-repos.rb
Created November 26, 2015 18:48
Clone all repositories in any given organization.
# clone-all-org-repos.rb
#
# Clone all repositories in any given organization.
#
# Dependencies:
# - octokit
# - celluloid
#
# Usage:
# TOKEN="your-token" ruby clone-all-org-repos.rb TheOrganizationName