Skip to content

Instantly share code, notes, and snippets.

View rnaveiras's full-sized avatar

Raúl Naveiras rnaveiras

  • London, United Kingdom
  • 03:20 (UTC +01:00)
View GitHub Profile
@rnaveiras
rnaveiras / monzo-alertmanager-config.yaml
Created August 13, 2019 15:30 — forked from milesbxf/monzo-alertmanager-config.yaml
Monzo's Alertmanager Slack templates
###################################################
##
## Alertmanager YAML configuration for routing.
##
## Will route alerts with a code_owner label to the slack-code-owners receiver
## configured above, but will continue processing them to send to both a
## central Slack channel (slack-monitoring) and PagerDuty receivers
## (pd-warning and pd-critical)
##
@rnaveiras
rnaveiras / Makefile
Last active August 2, 2018 14:56 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
#!/usr/bin/python
# largely taken from python examples
# http://docs.python.org/library/email-examples.html
import os
import sys
from email import encoders
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart

Keybase proof

I hereby claim:

  • I am rnaveiras on github.
  • I am rnaveiras (https://keybase.io/rnaveiras) on keybase.
  • I have a public key ASA87mNTRBuWRgmAjmZ26fNJHPxUI0i-d0wLbpGdMYUEvAo

To claim this, I am signing this object:

{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"region": "eu-west-1",
"source_ami": "",
"version": "1.0.0",
"chef_server": ""
"validation_key": "",
"environment": "",
build_package_patched() {
# These three patches are included when RVM builds REE
cd source
wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/tcmalloc.patch'
wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/stdout-rouge-fix.patch'
# already applied?!: wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/no_sslv2.diff'
patch -p1 < tcmalloc.patch
patch -p1 < stdout-rouge-fix.patch
# patch -p1 < no_sslv2.diff
cd ..
# Set prefix key
set -g prefix C-a
unbind C-b
# Send prefix
bind C-a send-prefix
# Reload key
bind R source-file ~/.tmux.conf \; display "Reloaded!"
@rnaveiras
rnaveiras / .tmux.conf
Last active December 22, 2015 00:19
My tmux config
# Set prefix key
set -g prefix C-a
unbind C-b
# Send prefix
bind C-a send-prefix
# Reload key
bind R source-file ~/.tmux.conf \; display "Reloaded!"
build_package_patched() {
# These three patches are included when RVM builds REE
cd source
wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/tcmalloc.patch'
wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/stdout-rouge-fix.patch'
# already applied?!: wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/no_sslv2.diff'
patch -p1 < tcmalloc.patch
patch -p1 < stdout-rouge-fix.patch
# patch -p1 < no_sslv2.diff
cd ..
{
"template": "logstash-*",
"settings" : {
"number_of_shards" : 1,
"number_of_replicas" : 0,
"index" : {
"query" : { "default_field" : "@message" },
"store" : { "compress" : { "stored" : true, "tv": true } }
}
},