Skip to content

Instantly share code, notes, and snippets.

@sspaeti
sspaeti / html2markdown.py
Created September 26, 2021 08:43
Convert exported HTML pages to Markdown pages recursively where you start this script from
"Convert exported HTML pages to Markdown pages recursively where you start this script from"
import os
from markdownify import markdownify
from pathlib import Path
for dirpath, dirs, files in os.walk("."):
print("--" + dirpath)
for filename in files:
if filename.endswith(".html"):
@wolfeidau
wolfeidau / openid.yaml
Last active November 24, 2024 10:26
openid JSON openapi specification
openapi: 3.0.2
info:
title: OTK Server APIs
version: 4.3.1
description: "All API's available in OAuth Toolkit server"
paths:
/auth/oauth/v2/authorize:
get:
tags:
- Authorization Server APIs
@mcpower
mcpower / aoc-tips.md
Last active April 23, 2025 18:05
Tips for getting on the Advent of Code leaderboard

Hi, I'm mcpower. I've done Advent of Code seriously for two years now in Python, placing 9th in 2018 and 12th in 2017. This year, I'm taking a break from aiming for the leaderboard - while it's fun and all, it is a bit stressful at times (the good kind of stress, though!). As such, I'd like to share a few tips for anyone wanting to aim for the leaderboard.

This is everything that worked for me. Your mileage may vary, though - don't take this as gospel, see what works for you.

Go fast

Go fast.

@stuartpreston
stuartpreston / Convert-Base64EncodedDerToPem.sh
Created February 3, 2015 14:52
[OpenSSL] Convert base64 encoded DER to PEM format (e.g. to convert Microsoft Azure Management Certificate to .PEM format for cross-platform compatibility)
openssl base64 -d -A -in mgmtcert.pfx -out decoded.der
openssl pkcs12 -in decoded.der -out mgmtcert.pem -nodes