Skip to content

Instantly share code, notes, and snippets.

View StephenBrown2's full-sized avatar

Stephen Brown II StephenBrown2

  • Columbus, OH
  • 14:50 (UTC -04:00)
View GitHub Profile
@StephenBrown2
StephenBrown2 / synchrony-ynab-export.user.js
Created May 28, 2026 14:21
Synchrony → YNAB CSV Exporter
// ==UserScript==
// @name Synchrony → YNAB CSV Exporter
// @namespace https://github.com/you/synchrony-ynab
// @version 3.0.0
// @description Exports transactions from the Synchrony activity page to a YNAB CSV file. Amazon item details appear in the memo field.
// @author you
// @match https://www.synchrony.com/accounts/activity
// @grant none
// @run-at document-idle
// ==/UserScript==
@StephenBrown2
StephenBrown2 / index.html
Last active May 24, 2026 14:37
Budget Calc
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>2026 Household Budget · Delaware, Ohio</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500;600&display=swap');
:root {
--bg:#f7f5f0;--surface:#fff;--s2:#f0ede6;
@StephenBrown2
StephenBrown2 / README.md
Last active April 3, 2026 20:22
YNAB CSV (Plan/Register) to JSON — converter aligned with YNAB API plan export shape

YNAB CSV → JSON export converter

This script turns YNAB “Export Budget Data” files (Plan.csv and Register.csv, or a .zip that contains them) into a single JSON document shaped like a full plan export. Field names and enums follow the YNAB API OpenAPI spec.

What you need

Requirement Notes
Python 3.10 or newer No third-party packages; only the standard library.
Recommended: uv Handy for running the script without touching a global Python install.
@StephenBrown2
StephenBrown2 / budget-diagram.md
Last active October 7, 2025 16:10
Actual Envelope Budget Flow Diagram

Envelope Budgeting Flowchart

This flowchart explains how envelope budgeting works in Actual, showing the relationship between transactions in accounts and budget assignments in categories.

High-Level Overview

flowchart LR
    %% Define styles
    classDef stepStyle fill:#e8f5e9,stroke:#4caf50,stroke-width:3px,color:#000000
@StephenBrown2
StephenBrown2 / real_estate_btc.user.js
Last active June 17, 2025 15:00
Real Estate in BTC UserScript
// ==UserScript==
// @name Real Estate Priced in BTC
// @namespace http://tampermonkey.net/
// @version 0.2
// @updateURL https://gist.github.com/StephenBrown2/0a01846c355ef5c56f94a1f129cc00a2
// @downloadURL https://gist.github.com/StephenBrown2/0a01846c355ef5c56f94a1f129cc00a2
// @description Display all home prices in BTC.
// @author Phteven
// @match http*://www.zillow.com/*
// @match http*://www.redfin.com/*
@StephenBrown2
StephenBrown2 / userscript.js
Created March 14, 2025 18:53
Real Estate Priced in BTC UserScript
// ==UserScript==
// @name Real Estate Priced in BTC
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Display all home prices in BTC.
// @author Phteven
// @match http*://www.zillow.com/*
// @match http*://www.redfin.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
@StephenBrown2
StephenBrown2 / simple_txn_struct.go
Last active June 8, 2021 06:33
Simple transaction struct format from json
// This file was generated from JSON Schema using quicktype, do not modify it directly.
// To parse and unparse this JSON data, add this code to your project and do:
//
// txns, err := UnmarshalTransactionList(bytes)
// bytes, err = txns.Marshal()
package main
import "encoding/json"
@StephenBrown2
StephenBrown2 / 1_before.jpg
Last active May 17, 2021 20:09
HMBradley Clean Login Page UserScript
1_before.jpg
@StephenBrown2
StephenBrown2 / main.go
Created May 11, 2021 16:27
Find items that exist in multiple places in the os PATH
package main
import (
"fmt"
"os"
"sort"
"strings"
)
func main() {