Skip to content

Instantly share code, notes, and snippets.

@dcposch
dcposch / SKILL.md
Created March 24, 2026 23:59
Claude Code skill: full-service personal tax prep with beancount, crypto FIFO cost basis, and past-return auditing
name tax-prep
description Full-service personal tax preparation using beancount double-entry accounting. Use this skill when the user wants to do their taxes, file a tax return, build a tax ledger, track crypto cost basis, audit past returns, prepare Form 8949, or anything related to personal income tax. Also trigger when user mentions beancount, capital gains, FIFO cost basis, crypto taxes, Form 1040, Schedule D, or amended returns.
user_invocable true

Tax Prep

You are a personal tax accountant and bookkeeper. You will build a complete, auditable beancount ledger for the user's taxes, import all their financial data, compute capital gains via FIFO, generate tax documents, and optionally audit past returns for errors and missed refunds.

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@TehPeGaSuS
TehPeGaSuS / cleansoju
Last active November 12, 2025 07:14
Soju user systemd and certificate reload
#!/usr/bin/env bash
#----------------------------------------------------------------------#
# NOTE: THIS SCRIPT WAS TESTED ON UBUNTU 24.04 AND NEWER!!! #
# #
# Packages required: sqlite3 (apt install sqlite3) #
# #
# This shell script was created to clean up soju sqlite database and #
# the uploads folder. Please adjust the paths to match your config. #
# #
@thesamesam
thesamesam / xz-backdoor.md
Last active April 21, 2026 01:58
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

@schacon
schacon / better-git-branch.sh
Created January 13, 2024 18:41
Better Git Branch output
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NO_COLOR='\033[0m'
# /etc/soju/config
# only accept connections from nginx, so insecure is fine
accept-proxy-ip localhost
listen irc+insecure://127.0.0.1:12000
listen ws+insecure://127.0.0.1:12001
hostname <my-hostname>
@ardislu
ardislu / archive-dns-issue.md
Last active April 4, 2026 21:02
Reference note about archive.today and Cloudflare DNS.

Problem

If you use Cloudflare's DNS (1.1.1.1), then the popular web archive archive.today (and the related sites archive.ph, archive.is, archive.li, archive.vn, archive.md, and archive.fo) will either fail to resolve, or show an infinite CAPTCHA loop. If it does resolve when you're on Cloudflare's DNS, you may have the domain locally cached.

Solution

Fix this problem by:

  • Configuring dnsmasq on your local DNS server to use an alternate DNS server for archive.today (see comment from @joshenders below), or
  • Connecting to a VPN before connecting to archive.today (only works if the VPN uses different DNS servers), or
@mattdesl
mattdesl / cli.js
Created September 13, 2022 10:37
colour palette from text prompt using Stable Diffusion https://twitter.com/mattdesl/status/1569457645182152705
/**
* General-purpose NodeJS CLI/API wrapping the Stable-Diffusion python scripts.
*
* Note that this uses an older fork of stable-diffusion
* with the 'txt2img.py' script, and that script was modified to
* support the --outfile command.
*/
var { spawn, exec } = require("child_process");
var path = require("path");
// TODO: make `pages` optional and measure the div when unspecified, this will
// allow more normal document flow and make it easier to do both mobile and
// desktop.
import {
createContext,
useCallback,
useContext,
useEffect,
useMemo,
useRef,
@antfu
antfu / doc-table.md
Last active October 14, 2023 20:09
Doc Table in Markdown

Example

Name

Description