I hereby claim:
- I am hughdbrown on github.
- I am hughdbrown (https://keybase.io/hughdbrown) on keybase.
- I have a public key whose fingerprint is 9CD4 F942 05BA F9CC 4ABD CB31 A9D2 7566 110A B89D
To claim this, I am signing this object:
| """ | |
| Python script to backup data in src to dst using sha1 hashes of the files | |
| in a backing directory. | |
| Hugh Brown | |
| [email protected] | |
| """ | |
| from hashlib import sha1 | |
| import os |
| weights = [215, 275, 335, 355, 420, 580] | |
| limit = 1505 | |
| ds = { | |
| i * w: [w] * i | |
| for w in weights | |
| for i in range(1, 1 + (limit // w)) | |
| } | |
| for w in weights: |
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| import time | |
| import subprocess | |
| import urllib2 | |
| import boto |
I hereby claim:
To claim this, I am signing this object:
| Day | Time | Total |
|---|---|---|
| Friday | 2.00 hours | |
| Saturday | 10:00 - 18:00 | 8.00 hours |
| Saturday | 19:30 - 21:30 | 2.00 hours |
| Sunday | 4.00 hours | |
| Monday | 10:00 - 17:30 | 7.50 hours |
| Tuesday | 09:00 - 17:00 | 8.00 hours |
31.5 hours total
| import ConfigParser | |
| import os.path | |
| def get_creds(): | |
| botofile = os.path.expanduser("~/.boto") | |
| with open(botofile) as f: | |
| c = ConfigParser.ConfigParser() | |
| c.readfp(f) | |
| return tuple( |
| from scapy.all import * | |
| AMAZON_TABLE = { | |
| '74:75:48:5f:99:30': 'Huggies, | |
| '10:ae:60:00:4d:f3': 'Elements', | |
| } | |
| def is_arp(arp): | |
| return (arp.op, arp.prc) == (1, '0.0.0.0') |