This file contains hidden or 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/env python | |
import os | |
import sys | |
import time | |
import subprocess | |
import urllib2 | |
import boto |
This file contains hidden or 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
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: |
This file contains hidden or 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
""" | |
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 |
NewerOlder