Skip to content

Instantly share code, notes, and snippets.

@mtigas
mtigas / 0-hidden-service-subdomains.md
Last active January 11, 2025 16:43
Example code for running a (HTTP/HTTPS) Tor hidden service supporting subdomains.

The following files show an example of how to create subdomains for onion site hidden services. (This hasn't been tested for hidden services for anything other than HTTP/HTTPS.)

(You might also want to read our blog post about ProPublica’s Tor hidden service, including a tutorial and notes on running a hidden service: https://www.propublica.org/nerds/item/a-more-secure-and-anonymous-propublica-using-tor-hidden-services )

In general, this works (maybe just in recent Tor clients) because Tor will handle the connection to www.xxxxxxxxxxxxxxxx.onion as a connection to xxxxxxxxxxxxxxxx.onion. The encapsulated HTTP/HTTPS connection contains the subdomain in the Host: header (and in the case of HTTPS, the SNI

anonymous
anonymous / products.csv
Created February 9, 2016 19:41
We can't make this file beautiful and searchable because it's too large.
ID,URL,Title,Used price (USD),New price (USD),Rank
B012W7BC5K,http://www.amazon.com/Ghost-Gifts-Laura-Spinella-ebook/dp/B012W7BC5K,Ghost Gifts,5.99,5.99,1
1607747308,http://www.amazon.com/The-Life-Changing-Magic-Tidying-Decluttering/dp/1607747308,The Life-Changing Magic of Tidying Up: The Japanese Art of Decluttering and Organizing,6.29,6.99,1
B011UNEZN8,http://www.amazon.com/Last-Girl-Dominion-Trilogy-Book-ebook/dp/B011UNEZN8,The Last Girl (The Dominion Trilogy Book 1),5.99,5.99,2
081298840X,http://www.amazon.com/When-Breath-Becomes-Paul-Kalanithi/dp/081298840X,When Breath Becomes Air,11.05,11.38,2
0143124544,http://www.amazon.com/Me-Before-You-Jojo-Moyes/dp/0143124544,Me Before You,9.0,9.6,3
B00T8RIK44,http://www.amazon.com/Montana-Cherries-Kim-Law-ebook/dp/B00T8RIK44,Montana Cherries,4.99,4.99,3
0061804320,http://www.amazon.com/Happy-Valentines-Day-Mouse-Give/dp/0061804320,"Happy Valentine's Day, Mouse! (If You Give...)",4.22,3.01,4
B011URV0VY,http://www.amazon.com/All-Lasting-Things-David-Hopson-ebook/dp/
@aeris
aeris / death_letter.tex
Created August 9, 2018 10:00
Lettre de la mort GDPR
\documentclass[10pt]{lettre}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{eurosym}
\usepackage{enumitem}
\usepackage[frenchb]{babel}
\begin{document}
\begin{letter}{
@joeytwiddle
joeytwiddle / github_get_all_forks.sh
Last active June 3, 2024 22:36
Add all forks of the current repo as remotes
#!/usr/bin/env bash
set -e
# See also: https://github.com/frost-nzcr4/find_forks (same thing but in python)
origin_url="$(git remote show origin | grep 'Fetch URL:' | sed 's+.*: ++')"
full_repo_name="$(echo "$origin_url" | sed 's+.*github.com/++ ; s+\.git$++')"
forks_url="https://api.github.com/repos/${full_repo_name}/forks"