Skip to content

Instantly share code, notes, and snippets.

AWSTemplateFormatVersion: 2010-09-09
Description: Create an S3 bucket and IAM user with access to that bucket.
Type: AWS::S3::Bucket
BucketName: !Sub ${AWS::StackName}-${AWS::AccountId}
This is a sample file.
cldellow /
Last active January 29, 2019 15:42 — forked from Smerity/
An example of fetching a page from Common Crawl using the Common Crawl Index
import gzip
import json
import requests
from cStringIO import StringIO
from StringIO import StringIO
# Let's fetch the Common Crawl FAQ using the CC index
resp = requests.get('')

False negatives (NO_MATCH -> model)

Pentax K-x

listing manufacturer: Pentax
        title:        Pentax K-x Digital SLR Camera - Chocolate (Single Lens Kit  18-55mm)
        price:        449.99 GBP

our answer:       pentax_k-x

manufacturer: Pentax

<span>(<span class="bday">1961-05-06</span>)</span>May 6, 1961<span class="noprint ForceAgeToShow">(age 56)</span>
<table class="infobox biography vcard">
<th colspan="2"><span class="fn">George Clooney</span></th>
<td colspan="2">
<a href="/wiki/File:George_Clooney_2016.jpg" class="image"><img src="//" width="220" height="284" srcset="// 1.5x, // 2x"></a>
<div>Clooney in September 2016</div>
cldellow / gist:d9e01f83bf78ba8c80f4e66433ed84b9
Last active November 29, 2017 19:41
using intellij
* download from
* I used community edition
* untar and run `bin/`
* Import new project from `~/src/tng/pom.xml`
* Accept all the defaults. It'll warn about not having an SDK.
* Open scalaconfig/src/main/scala/com/snapsort/config/ConfigLoader.scala

Nix thesis

I read, which outlines Nix, a “functional” package manager.

It motivates the need for new take on package management by analogy to memory management in programming languages.

It contrasts how software deployment works today (“Fuck it, I’m sure /usr/bin/local/python is a reference to a python 2.7.12 install with PIL available”) to how we used to write software (“Fuck it, I’m sure 0x7FEA6072 is the address of the array of files; so clearly, assuming a 32-bit address space, the seventh file is at 0x7FEA608A.”)

In both cases, as long as your assumption was correct, things go swimmingly. But it could be easier and rely less on hoping your assumptions are correct.