Skip to content

Instantly share code, notes, and snippets.

View alecmuffett's full-sized avatar
💭
arbitrary

Alec Muffett alecmuffett

💭
arbitrary
View GitHub Profile
@alecmuffett
alecmuffett / ls-hsdir.py
Created February 12, 2017 22:24
ls-hsdir.py
#!/usr/bin/env python
import sys
import stem
import datetime
from time import gmtime, strftime
from stem.control import Controller
now = datetime.datetime.utcnow()
@alecmuffett
alecmuffett / RUNBOOK.md
Last active April 14, 2017 10:30
Runbook for installing EOTK on a basic production instance with a dedicated balancer and 1+ workers
@alecmuffett
alecmuffett / urls.txt
Created November 23, 2017 17:02
Wikipedia Onion Experiment URLs
https://www.qgssno7jk2xcr2sj.onion/hello-onion/
https://en.qgssno7jk2xcr2sj.onion/hello-onion/
https://ceb.qgssno7jk2xcr2sj.onion/hello-onion/
https://sv.qgssno7jk2xcr2sj.onion/hello-onion/
https://de.qgssno7jk2xcr2sj.onion/hello-onion/
https://fr.qgssno7jk2xcr2sj.onion/hello-onion/
https://nl.qgssno7jk2xcr2sj.onion/hello-onion/
https://ru.qgssno7jk2xcr2sj.onion/hello-onion/
https://it.qgssno7jk2xcr2sj.onion/hello-onion/
https://es.qgssno7jk2xcr2sj.onion/hello-onion/
@alecmuffett
alecmuffett / config.yaml
Last active November 27, 2017 23:31
Sample EOTK Output for Wikipedia
LOG_LEVEL: info
TOR_ADDRESS: 127.0.0.1
TOR_PORT: 9055
REFRESH_INTERVAL: 600
PUBLISH_CHECK_INTERVAL: 300
INITIAL_DELAY: 60
STATUS_SOCKET_LOCATION: /Users/alecm/src/eotk/onionbalance.d/ob-status.sock
DESCRIPTOR_VALIDITY_PERIOD: 86400
DESCRIPTOR_OVERLAP_PERIOD: 3600
DESCRIPTOR_UPLOAD_PERIOD: 3600
@alecmuffett
alecmuffett / bontchev.tconf
Created January 27, 2018 11:57
Example for Vess
set project bontchev
hardmap %NEW_ONION% bontchev.com
@alecmuffett
alecmuffett / HTMLStreaming.vcl
Created March 25, 2019 15:00 — forked from section-io-gists/HTMLStreaming.vcl
HTML Streaming solution to cache the HEAD of HTML
#Example of HTML Streaming. This gist involves both Varnish and nginx LUA reverse proxies
#Varnish:
sub vcl_recv {
# Do not stream on non-get requests
if (req.method != "GET" && req.method != "HEAD" && req.method != "PURGE") {
return (pass);
}
# By defaul disable holepunch unless below cases fall through (do not modify this line)
@alecmuffett
alecmuffett / notes.txt
Created February 15, 2020 14:36
Messing around with DNSCrypt-Proxy and Onions
dnsstamp.py doh -l -s -f -a 169.254.255.253 -n dns4torpnlfs2ifuz2s2yf3fc7rdmsbhm6rw75euj35pac6ap25zgqad.onion -p /dns-query
DoH DNS stamp
=============
DNSSEC: yes
No logs: yes
No filter: yes
IP Address: 169.254.255.253
Hashes: []
@alecmuffett
alecmuffett / nginx.conf
Created February 9, 2017 22:27
EOTK demo-sample NGINX and Tor configs
# -*- awk -*-
# eotk (c) 2017 Alec Muffett
# EMACS awk mode works quite well for nginx configs
# logs and pids
pid /Users/alecm/src/eotk/projects.d/digital-rights.d/nginx.pid;
error_log /Users/alecm/src/eotk/projects.d/digital-rights.d/log.d/nginx-error.log debug;
# performance