start new:
tmux
start new with session name:
tmux new -s myname
Name: logstash | |
Version: 1.1.0 | |
Release: 1%{?dist} | |
Summary: logstash is a tool for managing events and logs | |
Group: System/Logging | |
License: ASL 2.0 | |
URL: http://logstash.net/ | |
Source0: http://semicomplete.com/files/logstash/logstash-%{version}-monolithic.jar | |
Source1: logstash |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
#!/bin/bash | |
## Adjustments | |
PATH=/bin:/usr/bin:/sbin:/usr/sbin | |
CARBON_SCRIPT=/etc/init.d/carbon-cache | |
CARBON_CONF=/etc/carbon/carbon.conf | |
RSYNC_OPTIONS='-av --ignore-existing' | |
WHISPER_BIN=/usr/bin | |
execute_cutover () { |
import os | |
import os.path | |
import sys | |
from graphite.render.hashing import ConsistentHashRing | |
instances = [] | |
unwelcome_instances = [] | |
for arg in sys.argv[1:]: | |
unwelcome = False |
local random = math.random | |
local function uuid() | |
local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' | |
return string.gsub(template, '[xy]', function (c) | |
local v = (c == 'x') and random(0, 0xf) or random(8, 0xb) | |
return string.format('%x', v) | |
end) | |
end |
[cache] | |
CACHE_QUERY_INTERFACE = <%= private_ipaddress || ipaddress %> | |
CACHE_QUERY_PORT = 7002 | |
LINE_RECEIVER_INTERFACE = <%= private_ipaddress || ipaddress %> | |
LINE_RECEIVER_PORT = 2013 | |
PICKLE_RECEIVER_INTERFACE = <%= private_ipaddress || ipaddress %> | |
PICKLE_RECEIVER_PORT = 2014 | |
CONF_DIR = /etc/graphite/ |
user www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
sendfile on; |
#!/bin/bash | |
usage() { | |
cat << EOF | |
Usage: $0 [OPTION]... COMMAND | |
Execute the given command in a way that works safely with cron. This should | |
typically be used inside of a cron job definition like so: | |
* * * * * $(which "$0") [OPTION]... COMMAND | |
Arguments: |
# This is an example of the Stack Exchange Tier 1 HAProxy config | |
# The only things that have been changed from what we are running are: | |
# 1. User names have been removed | |
# 2. All Passwords have been remove | |
# 3. IPs have been changed to use the example/documentation ranges | |
# 4. Rate limit numbers have been changed to randome numbers, don't read into them | |
userlist stats-auth | |
group admin users $admin_user | |
user $admin_user insecure-password $some_password |