Skip to content

Instantly share code, notes, and snippets.

Chris Christensen christianchristensen

Block or report user

Report or block christianchristensen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fbsd-observability-tools.md

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

View data-kcmo-json-stats.sh
#!/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
View owners_example.py
#!/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
View rpi_kiosk.md

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
View Consensus.md

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

View keybase.md

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:

You can’t perform that action at this time.