Skip to content

Instantly share code, notes, and snippets.

View Kline-'s full-sized avatar

Matthew Goff Kline-

  • 13:40 (UTC -06:00)
View GitHub Profile
@alxrdn
alxrdn / dnsmasq_https_rr.py
Last active June 6, 2024 02:52
Generate dnsmasq configuration for HTTPS resource records (RFC 9460)
import dns.rdata # pip3 install dnspython
import io
name = "host.example.com."
rclass = dns.rdataclass.IN
rtype = dns.rdatatype.HTTPS
rdata = '1 . alpn="h3,h2" ipv4hint="XXX.XXX.XXX.XXX"'
rd = dns.rdata.from_text(rclass, rtype, rdata)
@chrisjacob
chrisjacob / README.md
Created February 14, 2011 14:31
Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout - a step-by-step guide.

Intro

Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout.

IMPORTANT

If you plan on switching between different branches (e.g. git checkout master-experiment then revert back with git checkout master) you will loose your child folder from this tutorial (because it's in your .gitignore and is not part of your master branch).