Skip to content

Instantly share code, notes, and snippets.

View brennovich's full-sized avatar
👋
Hey, there

Brenno Costa brennovich

👋
Hey, there
View GitHub Profile
.fc {
direction: ltr;
text-align: left; }
.fc table {
border-collapse: collapse;
border-spacing: 0; }
.fc .btn {
line-height: 1.2em; }
html .fc {

Keybase proof

I hereby claim:

  • I am brennovich on github.
  • I am brennovich (https://keybase.io/brennovich) on keybase.
  • I have a public key whose fingerprint is E6C7 B01C C850 A7D9 9EB0 969E 21DA 987A 821E 84FB

To claim this, I am signing this object:

  • Make sure you are aware of the problem/feature.
  • Don't be rude, be polite.
  • Give suggestions and make clear why do you think you suggestion is better than the current approach.
  • Don't point out just the bad things, tell about what do you think is great as well.
  • Make it part of your daily workflow. (use github notifications)
  • http://www.dein.fr/2015-02-18-maslows-pyramid-of-code-review.html

pyramid

@brennovich
brennovich / error_budget.md
Last active April 25, 2019 09:58
Key points of [Embrancing Risk chapter of Google's SRE book](https://landing.google.com/sre/sre-book/chapters/embracing-risk/)
@brennovich
brennovich / release_ips.sh
Created April 19, 2019 20:13 — forked from phspagiari/release_ips.sh
Release Calico unused IPs from CIDR Block (Bug v3.3.x)
#!/bin/bash
# Works for /16 CIDR Blocks, change / upgrade the script if you need
CIDR_PREFIX="172.20"
for oct1 in {128..255}; do
# Generate a new list of used IPs on every block
calicoctl get wep --all-namespaces | awk '{print $4}' |cut -d "/" -f1 > valid_ips.txt
for oct2 in {1..254}; do
if grep "${CIDR_BLOCK}.$oct1.$oct2" ./valid_ips.txt; then
#!/bin/bash
#
# Simple wrapper of Redis' SCAN command. It can control batch size, patterns and cursors.
if [ $# -ne 3 ]
then
echo "Find matching a pattern using SCAN "
echo "Usage: $0 <host> <port> <pattern>"
exit 1
fi
@brennovich
brennovich / pair
Created November 21, 2012 17:56 — forked from steveklabnik/pair
A ruby script to change pairs
#!/usr/bin/env ruby
def usage
puts "./pair [name]: pair two people"
puts "./pair : switch to just steve"
exit
end
def set_config(name, email)
`git config user.name "#{name}"`
@brennovich
brennovich / etc_init.d_unicorn_example.co.uk
Created February 5, 2012 14:06 — forked from scottlowe/etc_init.d_unicorn_example.co.uk
Ruby on Rails server setup on Ubuntu 11.04 with Nginx, Unicorn, Rbenv
#! /bin/bash
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the unicorn web server
# Description: starts unicorn

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@brennovich
brennovich / gist:3744380
Created September 18, 2012 17:13
.vimrc.after
" Use UTF-8 without BOM
set encoding=utf-8 nobomb
" Highlight current line
set cursorline
" Add some line space for easy reading
set linespace=4
" Show “invisible” characters