I hereby claim:
- I am sergray on github.
- I am sergray (https://keybase.io/sergray) on keybase.
- I have a public key whose fingerprint is 8D10 3889 4812 2AC6 FCE4 C2AA 72C7 36F2 8A57 BBFC
To claim this, I am signing this object:
#!/usr/bin/env python | |
from __future__ import print_function | |
from datetime import datetime | |
from subprocess import call | |
from mercury206 import commands, communications, config | |
#!/bin/bash | |
rrdtool graph power.png --vertical-label=W*h --font=DEFAULT:11:Arial -w 900 -h 600 \ | |
DEF:apower=pcv.rrd:power:AVERAGE CDEF:whpower=apower,1000,\* LINE2:whpower#FF0000 |
#!/usr/bin/env python | |
"Checkout git branch with name substring" | |
from __future__ import print_function | |
import sys | |
from subprocess import check_output | |
#!/usr/bin/env python | |
"""Checkout the latest version of git branch by name substring""" | |
from __future__ import print_function | |
import sys | |
from subprocess import check_output | |
"""Asynchronous requests in Flask with gevent""" | |
from time import time | |
from flask import Flask, Response | |
from gevent.pywsgi import WSGIServer | |
from gevent import monkey | |
import requests |
$ for p in NUM1 NUM2; do curl -H "Accept: application/vnd.github.v3+json" \ | |
-H "Authorization: token OAUTH-TOKEN" \ | |
https://api.github.com/repos/:ORG:/:REPO:/pulls/$p/commits | \ | |
python -c "from flatdict import FlatDict; import json, csv, sys; rows = json.load(sys.stdin); \ | |
writer = csv.DictWriter(sys.stdout, [u'commit:author:name', u'commit:author:date', u'commit:tree:sha', u'commit:message'], extrasaction='ignore', delimiter='\t'); writer.writerows(FlatDict(row) for row in rows)" \ | |
> GH-PR-$p.txt; done |
For me to watch: | |
==== | |
Great speakers + interesting topics | |
---- | |
- How I built a power debugger out of the standard library and things I found on the internet | |
https://www.youtube.com/watch?v=g8kF9tuYZ6s | |
- Glyph - Shipping Software To Users With Python - PyCon 2016 | |
https://www.youtube.com/watch?v=5BqAeN-F9Qs | |
- Andrew Godwin - Reinventing Django for the Real-Time Web - PyCon 2016 | |
https://www.youtube.com/watch?v=2sEPipctTxw |
var favorites = []; | |
$$('.listItem').forEach(function(it){ | |
favorites.push({ | |
link: it.attributes['data-detailpage'].value, | |
image: $('.listImage img', it).attr('src'), | |
price: $('.listItemHeaderPrice', it).text().trim(), | |
date: $('.listItemHeaderEZ', it).text().trim(), | |
mileage: $('.listItemHeaderMileage', it).text().trim(), | |
title: $('span.fontLoud', it).text().trim(), | |
address: $('span.fontSilent', it).text().trim() |
I hereby claim:
To claim this, I am signing this object:
jamesmead@floehopper.local:~$ sudo dd bs=1m if=/Users/jamesmead/Downloads/2015-02-16-raspbian-wheezy.img of=/dev/disk2
pi@raspberrypi ~ $ sudo raspi-config
# Choose option 1 to "Expand Filesystem" - Ensures that all of the SD card storage is available to the OS
# Choose Finish & reboot
pi@raspberrypi ~ $ sudo apt-get update