Skip to content

Instantly share code, notes, and snippets.

View christianchristensen's full-sized avatar

Chris Christensen christianchristensen

View GitHub Profile

Keybase proof

I hereby claim:

  • I am christianchristensen on github.
  • I am chrischris (https://keybase.io/chrischris) on keybase.
  • I have a public key whose fingerprint is 8C90 2017 EE74 C670 9706 1E0B 39B0 C148 DF44 1D6F

To claim this, I am signing this object:

Consensus

A fundamental problem in distributed computing is to achieve overall system reliability in the presence of a number of faulty processes. This often requires processes to agree on some data value that is needed during computation. Examples of applications of consensus include whether to commit a transaction to a database, agreeing on the identity of a leader, state machine replication, and atomic broadcasts. wiki

Disable cursor and sleep

# /etc/xdg/lxsession/LXDE/autostart
#@xscreensaver -no-splash
@xset s off
@xset -dpms
@xset s noblank

# /etc/lightdm/lightdm.conf
xserver-command=X -nocursor -s 0 dpms
#!/usr/bin/env python
# http://www.chromium.org/developers/owners-files
# https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/8a57ce17e317c0213a95f7e504d13132badcdf2f/owners.py
# https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/master/owners_finder.py
# https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/master/tests/owners_unittest.py
import glob
import os
import owners
#!/bin/sh
# Pull manifest of overview metadata and output summary info.
TMPFILE=`mktemp /tmp/data_kcmo_org.data.XXXX.json`
curl http://data.kcmo.org/data.json | python -mjson.tool > $TMPFILE
date
echo -n 'Total entries: '
grep -c "\"identifier\":" $TMPFILE

systat -vmstat 1 systat -if 1 netstat -na sockstat -l netstat -s fstat top -m io -o write dtrace