Skip to content

Instantly share code, notes, and snippets.

View toddkaufmann's full-sized avatar

Todd Kaufmann toddkaufmann

View GitHub Profile
Last edited by Todd Kaufmann 3 years ago
= Proposed job scheduler change to support smaller chunksize, greater resilience =
== Idea: instead of looping over instances, loop over the set of jobs ==
for example, 1000 commands, 10 instances --> 100 jobs (0..99), where job N is commands N10 .. N10+9.
Jobs have three states:
done
@toddkaufmann
toddkaufmann / install_python27.sh
Created February 28, 2017 17:36 — forked from cheeseprocedure/install_python27.sh
Installation of Python 2.7 on an Ubuntu 10.04 Server amd64 instance (using deadsnakes PPA).
#!/bin/bash
PYTHON27="/usr/bin/python2.7"
VENV_ROOT="/data/venv"
apt-get update
apt-get -y install python-software-properties
add-apt-repository ppa:fkrull/deadsnakes
apt-get update
@toddkaufmann
toddkaufmann / etckeeper-cheatsheet.txt
Last active October 8, 2016 18:51
etckeeper cheatsheet
* etckeeper
it's so sasy just do it
TODO: how to sync / centralize / push to other server ?
(at least backup/sync the .git folder and you should be safe)
#VCS="git"
VCS="bzr"
# Above was the default in etckeeper.conf;
# changing from default bzr: use the lines below
@toddkaufmann
toddkaufmann / latency.txt
Last active August 29, 2015 14:27 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms