Skip to content

Instantly share code, notes, and snippets.

View letsencrypt.md

Install Letsencrypt

# apt-get install git dialog
# git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt

Make .well-known folder for webroot

@waaaaargh
waaaaargh / depdl.sh
Last active Aug 29, 2015
Some tools to facilitate the creation of APT repositories
View depdl.sh
#!/bin/bash
# (c) 2014 by Johannes Fürmann
# Licensed under WTFPL. See http://www.wtfpl.net/txt/copying/
if [ $1 == "" ]; then
echo "depdl.sh"
echo "Download package and Dependencies"
echo ""
echo "USAGE:"
echo "depdl.sh PKGNAME"
@waaaaargh
waaaaargh / MyDescriptorReader
Created Feb 5, 2014
Monkeypatch Stem's DirectoryReader to just care about the relays we're interested in.
View MyDescriptorReader
import os
import tarfile
import stem
from stem.descriptor.reader import DescriptorReader
class MyDescriptorReader(DescriptorReader):
def __init__(self, interesting_fingerprints, *args, **kwargs):
DescriptorReader.__init__(self, *args, **kwargs)
self._interesting_fingerprints = interesting_fingerprints
@waaaaargh
waaaaargh / multiple-processes
Last active Feb 12, 2018
[Draft] This document explains how to run multiple tor processes on one host.
View multiple-processes
Managing multiple Tor processes on one host
===========================================
Due to Tor's internal architecture, running only one Tor process per physical
host is often not enough. As a thumb rule, you should run one Tor process per
physical CPU core to make full use of the host's CPU power. This, however
brings with it other difficulties: The tor network limits the number of Tor
relays per IP in the consensus to 2. Also, the relay nodes should be rechable
on Port 80 and 443 since those ports are often unfiltered and unblocked.