mkdir ~/build
cd ~/build
curl -OL http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz
curl -OL http://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.16-stable.tar.gz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"name": "Connecticut", | |
"abbr": "CT", | |
"section": "1" | |
}, { | |
"name": "Eastern Massachusetts", | |
"abbr": "EMA", | |
"section": "1" | |
}, { | |
"name": "Maine", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sections": [ | |
{ | |
"name": "Connecticut", | |
"abbr": "CT", | |
"area": "1" | |
}, { | |
"name": "Eastern Massachusetts", | |
"abbr": "EMA", | |
"area": "1" |
I hereby claim:
- I am sasimpson on github.
- I am sasimpson (https://keybase.io/sasimpson) on keybase.
- I have a public key whose fingerprint is 24E2 0C0F FF97 6865 E969 5840 A4AE 2A7C 582F 2A14
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import datetime | |
import argparse | |
def is_queso_week(today=None): | |
if today is None: | |
today = datetime.datetime.now() | |
if today.weekday() is not 0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Antarctica: available | |
Europe East 4: available | |
Europe West 5: available | |
Europe West 6: available | |
North America West 3: available | |
North America West 4: available | |
North America East 3: available | |
North America East 4: available | |
Oceanic 2: full | |
Asia: available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mimetypes | |
import requests | |
import cloudauth | |
import os | |
import re | |
token, storage_url = cloudauth.getauth('object-store') | |
headers = {'x-auth-token': token} | |
regexp = re.compile('./output/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
from cloudauth import getauth | |
def update_record(domain_name=None, record_name=None): | |
token, dns_url = getauth('dnsextension:dns') | |
headers = {'x-auth-token': token, 'content-type': 'application/json'} | |
my_ip_resp = requests.get('http://automation.whatismyip.com/n09230945.asp') | |
if my_ip_resp.ok: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def color_bulb(s, bulb, i, rgb): | |
req = "2E %02X %s %02X %02X %02X" % (bulb, i, rgb[0], rgb[1], rgb[2]) | |
print req | |
s.write(binascii.unhexlify(''.join(req.split()))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#define ONE_WIRE_BUS 10 | |
OneWire oneWire(ONE_WIRE_BUS); | |
DallasTemperature sensors(&oneWire); | |
struct RGB { | |
byte red; |
NewerOlder