Skip to content

Instantly share code, notes, and snippets.

@justincormack
justincormack / content.go
Created July 8, 2018 13:48
Enforcing content addressed storage on S3 with signed URLs and sha256 hashes
package main
import (
"crypto/sha256"
"encoding/hex"
"flag"
"fmt"
"io"
"net/http"
"os"
@gombosg
gombosg / getBlockLists.sh
Last active November 27, 2020 21:58 — forked from johntyree/getBlockLists.sh
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Link good as of May 2020
# Download lists, unpack and filter, write to stdout
curl -s -A 'Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0' https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*\?list=.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'