start new:
tmux
start new with session name:
tmux new -s myname
# 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. |
{ | |
"checks": { | |
"noisy_queue_check": { | |
"handler": "default", | |
"command": "/etc/sensu/plugins/check-queue-length.rb", | |
"interval": 60, | |
"refresh": 60, | |
"occurrences": 10, | |
"subscribers": [ | |
"workers" |
Byobu Commands | |
============== | |
byobu Screen manager | |
Level 0 Commands (Quick Start) | |
------------------------------ | |
<F2> Create a new window |
#!/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' |
A quick overview of the node.js streams interface with basic examples.
This is based on @brycebaril's presentation, Node.js Streams2 Demystified
Streams are a first-class construct in Node.js for handling data.
Think of them as as lazy evaluation applied to data.