Skip to content

Instantly share code, notes, and snippets.

View GitPatrickHarris's full-sized avatar

Patrick Harris GitPatrickHarris

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Permissions1",
"Effect": "Allow",
"Action": [
"polly:SynthesizeSpeech",
"s3:HeadBucket",
"polly:DescribeVoices"
import subprocess, urllib, random
class NoBlocks(Exception): pass
def getblocks():
r = urllib.urlopen("http://{?REDACTED?}/grab").read()
if '<html' in r.lower(): raise NoBlocks
return r.split()
import sys
if len(sys.argv) > 1: