start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/ruby | |
# | |
# Moved to: https://github.com/uriel1998/volumerb | |
# | |
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 | |
# Unported License. To view a copy of this license, visit | |
# http://creativecommons.org/licenses/by-sa/3.0/. | |
# | |
# Forked/derived from original by Jasper Van der Jeugt (jaspervdj); |
#!/usr/bin/liquidsoap | |
set("log.file.path", "/dev/null") | |
set("log.stdout", true) | |
set("server.telnet", false) | |
set("harbor.bind_addr","0.0.0.0") | |
# tweak these values if you have lag, skipping, buffer underrun etc | |
# set("frame.duration",0.04) | |
# set("root.max_latency",60.) |
#!/usr/bin/python | |
import time | |
import datetime | |
import random | |
timestr = time.strftime("%Y%m%d-%H%M%S") | |
f = open('access_log_'+timestr+'.log','w') | |
ips=["123.221.14.56","16.180.70.237","10.182.189.79","218.193.16.244","198.122.118.164","114.214.178.92","233.192.62.103","244.157.45.12","81.73.150.239","237.43.24.118"] | |
referers=["-","http://www.casualcyclist.com","http://bestcyclingreviews.com/top_online_shops","http://bleater.com","http://searchengine.com"] |
# change prefix to Ctrl-a (like in gnu-screen) | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# shell | |
set -g default-command /bin/zsh | |
set -g default-shell /bin/zsh |
<canvas id="invoice_status_chart" min-height="300" max-height="500"></canvas> | |
<script type="text/javascript" charset="utf-8"> | |
var invoice_status_data = {}; | |
function invoice_status_chart() { | |
var can = jQuery('#invoice_status_chart'); | |
var ctx = can.get(0).getContext("2d"); | |
var container = can.parent().parent(); // get width from proper parent |
#System Design Cheatsheet
Picking the right architecture = Picking the right battles + Managing trade-offs
##Basic Steps
Execute as root | |
* Install kernel headers | |
apt-get update && apt-get dist-upgrade | |
apt-get install -y build-essential libssl-dev | |
arch="$(uname -m)" | |
release="$(uname -r)" | |
upstream="${release%%-*}" | |
local="${release#*-}" |
This is a fork from the original CoreOS cloud formation template. It adds two EBS disks of 30G, mounted to /var/lib/docker.
This is intended to be used with an m3.large machine which comes with 30G of SSD.
The reason I add two of 30 and not one of 60 is because a BTRFS limitation.
You can use the "btrfs add" approach in the units to create a BTRFS raid.
#!/bin/bash | |
export Register=https://register.example.com | |
export cLink="/v2/_catalog?n=10" | |
export cFile=docker.register.catalog | |
export tFile=docker.register.tags | |
function listFullCatalog { | |
while true; do |