Skip to content

Instantly share code, notes, and snippets.

View deybhayden's full-sized avatar
🕸️
Web slingin'

Ben Hayden deybhayden

🕸️
Web slingin'
View GitHub Profile
@emschwartz
emschwartz / README.md
Last active February 5, 2026 20:54
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

@shortjared
shortjared / list.txt
Last active January 2, 2026 19:07
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@plentz
plentz / nginx.conf
Last active February 4, 2026 12:36
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@willurd
willurd / web-servers.md
Last active February 3, 2026 15:05
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@cnelsonsic
cnelsonsic / jimmy_johns.py
Created April 20, 2012 01:04
Get a random Jimmy Johns sandwich for lunch. I can never pick.
#!/bin/env python2.7
'''This module loads the Jimmy John's menu from their website and provides
you with a random selection from their main (numbered) sandwich menu.
Recommended usage is to just run it as a script.
'''
from BeautifulSoup import BeautifulSoup
import requests
import random
import re
@chrisroos
chrisroos / gpg-import-and-export-instructions.md
Created September 9, 2011 10:49
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...