Skip to content

Instantly share code, notes, and snippets.

openpgp4fpr:7812A288CA3747B597805D159D928C90F0DDE94F

aspe:keyoxide.org:JCGLKRQE6LBWZSEGLCMPXL3DFU

@glennhartmann
glennhartmann / keybase.md
Created April 21, 2022 01:58
keybase.md

Keybase proof

I hereby claim:

  • I am glennhartmann on github.
  • I am glennhartmann (https://keybase.io/glennhartmann) on keybase.
  • I have a public key ASCDGuM07gQWVHpl3jjXX7OiD7iEwK9sXuX3bePyTClk4Qo

To claim this, I am signing this object:

# How to throttle the FCC to dial up modem speeds on your website using Apache.
# Ported from https://gist.github.com/kyledrake/e6046644115f185f7af0
## The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
##
## Current known FCC address ranges:
## https://news.ycombinator.com/item?id=7716915
##
## Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {
@glennhartmann
glennhartmann / dns.py
Created November 14, 2013 02:12 — forked from johnboxall/dns.py
# http://notmysock.org/blog/hacks/a-twisted-dns-story.html
# http://blog.inneoin.org/2009/11/i-used-twisted-to-create-dns-server.html
# twistd -y dns.py
import socket
from twisted.internet.protocol import Factory, Protocol
from twisted.internet import reactor
from twisted.names import dns
from twisted.names import client, server
var empty_list = function(selector) {
return selector(undefined, undefined, true);
};
var prepend = function(el, list) {
return function(selector) {
return selector(el, list, false);
};
};
var head = function(list) {