Skip to content

Instantly share code, notes, and snippets.

View christianchristensen's full-sized avatar

Chris Christensen christianchristensen

View GitHub Profile

Traceroute notes

Other useful data from traceroute metrics and storage...

traceroute source - mean.awk, median.awk

mtr -l - raw format is useful for programmatic processing (/ht @mattstock)

Standards:

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

#!/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
#!/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

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