Skip to content

Instantly share code, notes, and snippets.

@felschr
felschr / firefox-parse-site-security.nu
Last active October 24, 2025 12:41
Parsing & editing `SiteSecurityServiceState.bin` via nushell script.
#! /usr/bin/env nu
# See format description for `SiteSecurityServiceState.bin`:
# https://gitlab.torproject.org/tpo/applications/tor-browser/-/blob/tor-browser-128.7.0esr-14.5-1/security/manager/ssl/data_storage/src/lib.rs#L349-353
# Format is [checksum][score][last accessed][key][value]
let browsers = [
{ name: "Firefox" path: "~/.mozilla/firefox" }
{ name: "Tor Browser" path: "~/.tor project/firefox" }
@mortn
mortn / hickorydns.container
Last active September 12, 2025 21:57
HickoryDNS Podman Quadlet (rootless, yea baby!)
# .config/containers/systemd/hickorydns.container
[Container]
ContainerName=hickorydns
Image=docker.io/hickorydns/hickory-dns:latest
PublishPort=53:53/udp
UserNS=keep-id:uid=100,gid=100
Volume=%h/hickory/etc:/etc:ro
Volume=%h/hickory/zones:/var/named:ro
AutoUpdate=registry
AddCapability=NET_BIND_SERVICE
@Geofferey
Geofferey / hschip.sh
Last active October 29, 2025 06:25
A script for changing IPs of nodes in headscale v0.23.0
#!/bin/bash
## Put me in your PATH to quickly change headscale node IPs
## Written by:
### Engineer: Geofferey
TESTED_VER="v0.23.0"
TS_CIDR="100.64.0.0/10"
if [ -z ${HEADSCALE_DB} ]; then
@kmalloy24
kmalloy24 / md-filename-as-title.py
Last active March 25, 2025 17:13
A Python script that adds the filename as Title frontmatter to all .md or .mdx files in the directory that it is run in.
import os
import re
# Function to generate title from filename
def generate_title(filename):
# Remove the extension
base = os.path.splitext(filename)[0]
# Remove numbers
base = re.sub(r'\d+', '', base)
# Replace dashes and underscores with spaces
@mofosyne
mofosyne / autodoc-justfile.py
Created August 10, 2024 06:36
Autogenerated Documentation For Justfiles
#!/usr/bin/env python3
# Autogenerated Documentation For Justfiles
# This was created to support this issue ticket https://github.com/casey/just/issues/2033#issuecomment-2278336973
import json
import subprocess
from typing import Any
# just --dump --dump-format json --unstable | jq > test.json
json_output = subprocess.run(
["just", "--dump", "--dump-format", "json", "--unstable"],
@artlung
artlung / happyscribe.com_molly_white_interview_transcript.txt
Last active May 23, 2024 18:37
Entering a New Phase of the Web, with Citation Needed’s Molly White https://about.flipboard.com/inside-flipboard/molly-white/
(Transcript made with HappyScribe.com)
[ NOTE: NOT FULLY COPYEDITED ]
https://about.flipboard.com/inside-flipboard/molly-white/
[00:00:02.240] Welcome to Dotsocial, the first podcast to explore the
world of decentralized social media. Each episode, host Mike McHieu
talks to a leader in this movement, someone who sees the Fediverse's
tremendous potential and understands that this could be the internet's
@lorenzolewis
lorenzolewis / StarlightMultiSidebar.astro
Last active November 8, 2024 00:12
Use the built-in Starlight sidebar config to create a multi-sidebar layout
---
import type { Props } from "@astrojs/starlight/props";
import Default from "@astrojs/starlight/components/Sidebar.astro";
import { AstroError } from "astro/errors";
// Styles and CSS logic derived from https://daisyui.com/components/collapse/
// This Sidebar override uses the top-level items from the Starlight sidebar config to create sidebars.
// Go through each top-level sidebar item from the Astro config to...
@q3k
q3k / hashes.txt
Last active October 21, 2025 14:24
liblzma backdoor strings extracted from 5.6.1 (from a built-in trie)
0810 b' from '
0678 b' ssh2'
00d8 b'%.48s:%.48s():%d (pid=%ld)\x00'
0708 b'%s'
0108 b'/usr/sbin/sshd\x00'
0870 b'Accepted password for '
01a0 b'Accepted publickey for '
0c40 b'BN_bin2bn\x00'
06d0 b'BN_bn2bin\x00'
0958 b'BN_dup\x00'
@thesamesam
thesamesam / xz-backdoor.md
Last active November 2, 2025 15:34
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@jdittrich
jdittrich / Researching User Researchers.md
Last active July 11, 2024 12:30
Publications analyzing user research in HCI and UX
  • Agre, Philip E. „Conceptions of the user in computer systems design“. In CAMBRIDGE SERIES ON HUMAN COMPUTER INTERACTION, 67–106. CAMBRIDGE SERIES ON HUMAN COMPUTER INTERACTION, 1995.
    • Similar to Woolgar’s studies on the topic
  • Agre, Philip E “Surveillance and capture: Two models of privacy”, The information society, 1994, 101-127.
    • More interesting from a theoretical aspect, as Agre traces how studies of work and the subsequent implementation of these workflows in products is not a neutral act but changes the very work it analyzed. 
  • Anderson, R. J. „Representations and Requirements: The Value of Ethnography in System Design“. Human-computer Interaction 9, Nr. 2 (1994): 151–182. https://doi.org/10.1207/s15327051hci0902_1.
    • What do Designers mean when they say ‘Ethnography’: “Instead of fixing upon [Ethnographies] analytic aspects, designers have defined it as a form of data collection.”
  • Akrich, Madeleine. „The De-scription of Technic