Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
arbitrary

Alec Muffett alecmuffett

💭
arbitrary
View GitHub Profile
@alecmuffett
alecmuffett / notes.txt
Created Feb 15, 2020
Messing around with DNSCrypt-Proxy and Onions
View notes.txt
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 / HTMLStreaming.vcl
Created Mar 25, 2019 — forked from section-io-gists/HTMLStreaming.vcl
HTML Streaming solution to cache the HEAD of HTML
View HTMLStreaming.vcl
#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)
View bontchev.tconf
set project bontchev
hardmap %NEW_ONION% bontchev.com
@alecmuffett
alecmuffett / urls.txt
Created Nov 23, 2017
Wikipedia Onion Experiment URLs
View urls.txt
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 Nov 27, 2017
Sample EOTK Output for Wikipedia
View config.yaml
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 / RUNBOOK.md
Last active Apr 14, 2017
Runbook for installing EOTK on a basic production instance with a dedicated balancer and 1+ workers
View 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 / nginx.conf
Created Feb 9, 2017
EOTK demo-sample NGINX and Tor configs
View nginx.conf
# -*- 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
You can’t perform that action at this time.