Skip to content

Instantly share code, notes, and snippets.

@luisvega
luisvega / fluent.conf
Created July 27, 2018 00:20 — forked from chris-codaio/fluent.conf
Fluent.conf
# encoding: UTF-8
# This file pulled from https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/fluentd-elasticsearch/fluentd-es-image/td-agent.conf
# This configuration file for Fluentd / td-agent is used
# to watch changes to Docker log files. The kubelet creates symlinks that
# capture the pod name, namespace, container name & Docker container ID
# to the docker logs for pods in the /var/log/containers directory on the host.
# If running this fluentd configuration in a Docker container, the /var/log
# directory should be mounted in the container.
@luisvega
luisvega / queue_checks.json
Created July 18, 2016 22:00 — forked from jswank/queue_checks.json
Example Sensu check, which only alerts after 10 failures on a 60 second interval, and won't alert on nights or weekends.
{
"checks": {
"noisy_queue_check": {
"handler": "default",
"command": "/etc/sensu/plugins/check-queue-length.rb",
"interval": 60,
"refresh": 60,
"occurrences": 10,
"subscribers": [
"workers"
@luisvega
luisvega / tmux-cheatsheet.markdown
Created December 9, 2015 22:57 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@luisvega
luisvega / byobuCommands
Created December 7, 2015 18:38 — forked from jshaw/byobuCommands
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@luisvega
luisvega / Inconsolata-dz-Powerline.otf
Created October 15, 2015 13:30 — forked from qrush/Inconsolata-dz-Powerline.otf
vim-powerline patched fonts
@luisvega
luisvega / osx-for-hackers.sh
Last active September 3, 2015 14:48 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@luisvega
luisvega / README.md
Last active August 29, 2015 14:24 — forked from joyrexus/README.md

A quick overview of the node.js streams interface with basic examples.

This is based on @brycebaril's presentation, Node.js Streams2 Demystified

Overview

Streams are a first-class construct in Node.js for handling data.

Think of them as as lazy evaluation applied to data.