Skip to content

Instantly share code, notes, and snippets.

@quells
quells / tiny-ca.sh
Created February 8, 2021 16:51
Tiny certificate authority for LAN
#!/bin/bash
# Based on https://deliciousbrains.com/ssl-certificate-authority-for-local-https-development/
if [ "$#" -ne 1 ]; then
echo "Usage: tiny-ca.sh <domain>"
exit 1
fi
DOMAIN=$1
@quells
quells / pihole-unbound.docker-compose.yml
Last active April 2, 2021 23:23
Pi-Hole + Unbound Docker Compose Script
version: "3"
networks:
dns_net:
driver: bridge
ipam:
config:
- subnet: 172.31.41.0/24
services:
@quells
quells / ubnt-dns-blacklist
Created April 16, 2021 23:04
Pi-Hole Blacklist for UniFi/Ubiquiti Devices
# Copied from https://github.com/StevenBlack/hosts
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
127.0.0.1 local
255.255.255.255 broadcasthost
::1 localhost
::1 ip6-localhost
::1 ip6-loopback
fe80::1%lo0 localhost
@quells
quells / boox-dns-blacklist
Created July 1, 2021 15:29
Pi-Hole Blacklist for BOOX devices
# Copied from https://github.com/StevenBlack/hosts
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
127.0.0.1 local
255.255.255.255 broadcasthost
::1 localhost
::1 ip6-localhost
::1 ip6-loopback
fe80::1%lo0 localhost
@quells
quells / bmp.go
Last active February 4, 2025 05:28
package main
import (
"image"
"image/color"
"log"
"os"
"golang.org/x/image/bmp"
)
import json
import os
import sys
from typing import Dict, List, Tuple
def main():
query = ""
if len(sys.argv) > 1:
query = sys.argv[1].lstrip(".")
@quells
quells / WEBDAV.md
Created January 13, 2026 08:18
WebDAV Setup for Sprite

WebDAV Setup Guide for Sprite VM

This guide documents the complete setup process for running a WebDAV server in a Sprite VM, allowing file access via HTTP from macOS or other WebDAV clients.

Overview

  • Server: WsgiDAV (Python-based WebDAV server)
  • Web Server: Cheroot (bundled with WsgiDAV)
  • Port: 8080 (configured as Sprite HTTP service)
  • Served Directory: /home/sprite (entire home directory)