most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| # Load Json into a Python object | |
| import urllib2 | |
| import json | |
| req = urllib2.Request("http://localhost:81/sensors/temperature.json") | |
| opener = urllib2.build_opener() | |
| f = opener.open(req) | |
| json = json.loads(f.read()) | |
| print json | |
| print json['unit'] |
| #!/usr/bin/env python | |
| """Simple script to merge multiple RRD files together. | |
| Accepts any number of RRD file names as arguments. Produces an "rrdtool dump" | |
| style file on stdout. The last RRD file should have a slot for every possible | |
| record in the resulting merged RRD. | |
| Run something like: | |
| $ python simple-merge-rrd.py filea.rrd fileb.rrd filec.rrd | \ |
| #!/bin/sh | |
| # | |
| # Copyright (C) 2010 Matthias Buecher (http://www.maddes.net/) | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 2 of the License, or | |
| # (at your option) any later version. | |
| # http://www.gnu.org/licenses/gpl-2.0.txt |