Skip to content

Instantly share code, notes, and snippets.

@itobey
itobey / html-toc.js
Last active August 18, 2020 14:04 — forked from simov/html-toc.js
Generate Table of Contents (TOC) for Dillinger Styled HTML export
// extract all headers
var headers = []
function walk (nodes) {
nodes.forEach((node) => {
var sub = Array.from(node.childNodes)
if (sub.length) {
walk(sub)
}
@itobey
itobey / instructions.md
Last active May 29, 2021 09:51 — forked from bitoiu/self-signed-wildcard-cert-for-ghes.md
Self-Signed Wildcard certificate with SAN using openssl / SSL

Copy the default template of openssl.cnf to a writable location.

cp /usr/lib/ssl/openssl.cnf .

Uncomment the req_extensions = v3_req

req_extensions = v3_req # The extensions to add to a certificate request

Add subjectAltName to v3_req section