Skip to content

Instantly share code, notes, and snippets.

View jhannah's full-sized avatar

Jay Hannah jhannah

View GitHub Profile
@jhannah
jhannah / gist:7961433dcd9195f907d9d8e82ddb9564
Last active December 29, 2023 22:09
Mortgage: Amortization schedule / payments
2.13% APR
Payment 1: Aug 1 2021
$ pip3 install amortization (https://github.com/roniemartinez/amortization)
$ amortize --principal 176000 --period 180 --interest-rate 0.0213 --schedule
Number Amount Interest Principal Balance
-------- ---------- ---------- ----------- ----------
1 1,143.14 312.40 830.74 175,169.26 Aug 1 2021
2 1,143.14 310.93 832.21 174,337.05
3 1,143.14 309.45 833.69 173,503.36
@jhannah
jhannah / gist:1a235cfb6e013b548cf1605c9ac91ea9
Last active October 30, 2023 02:08
Jay's net worth distribution

As of 20231029. 48 years old. Employed (salary).

  • 47.4% House
  • 27.2% IRAs: Socially Responsible Investing (SRI) (0.89% expense ratio)
  • 26.9% 401K 100% S&P500 index fund (0.04% expense ratio + employer contract fees)
  • -19.3% Mortgage (15 year fixed, 2.18%)
  • 5.7% Vehicles
  • 5.7% Crypto (BTC, ADA, stETH, XTZ, DOGE)
  • 2.8% Checking / Savings / Empower Personal Cash (4.7% APY)
  • 2.3% Precious metals
@jhannah
jhannah / gist:c8113c86f083c6b6645c7d0997d786ee
Last active October 21, 2023 18:16
TypeError("'_cffi_backend.FFI' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')
Full stack dump for https://stackoverflow.com/questions/75503034/valueerror-typeerror-cffi-backend-ffi-object-is-not-iterable-typeerror
✗ pytest --pythonwarnings ignore::DeprecationWarning -k 'test_answer_answer_answer_result' -rPF
================================================= test session starts ==================================================
platform darwin -- Python 3.11.6, pytest-7.4.2, pluggy-1.3.0
plugins: anyio-3.7.1
collected 39 items / 38 deselected / 1 selected
@jhannah
jhannah / omaha_tech.md
Last active October 4, 2023 16:00
Active Omaha Nebraska tech user groups
➜ Jays-2017-MacBook-Pro:argos_ghy git:(production-pipeline) ✗ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15916 100 15916 0 0 76544 0 --:--:-- --:--:-- --:--:-- 80383
=> Downloading nvm from git to '/Users/jhannah/.nvm'
=> Cloning into '/Users/jhannah/.nvm'...
remote: Enumerating objects: 360, done.
remote: Counting objects: 100% (360/360), done.
remote: Compressing objects: 100% (306/306), done.
remote: Total 360 (delta 41), reused 160 (delta 28), pack-reused 0
@jhannah
jhannah / gist:46f621c4faa040a4bb20b64f7bfa3d13
Created August 23, 2023 02:35
Trying to build Norse...
Using my Docker branch from my updated Fork:
https://github.com/jhannah/Norse/pull/1
$ docker exec -it norse sh
/app # nx run client:build
> nx run client:pre-build
@jhannah
jhannah / gist:66bbd0f6ef8f16a9b36420d17c556c8d
Last active August 18, 2023 00:51
YOLO'ing crazy scary freshli-cli git stuff for funsies
-----------------------------------------------------------------------------------------------
So I'm taking my Fork:
https://github.com/jhannah/freshli-cli of the real repo
https://github.com/corgibytes/freshli-cli
And doing CRAZY SCARY STUFF to try to help.
Thread: https://mastodon.social/@mscottford@toot.legacycode.rocks/110900945626250599
Using tecniques from https://stackoverflow.com/a/37001417/4656035
@jhannah
jhannah / mn.md
Last active May 24, 2023 18:11
Minnesota progressive bills passed 2023

"How about some good political news for once? Minnesota passed like 35 bills because their moderates actually decided to work with progressives to get things done" ~from Twitter thread

cool worker stuff:

  • all employees statewide get paid leave
  • non-compete agreements are banned
  • uber and lyft drivers have more protections
  • and more!

cool education stuff:

  • school lunch is free for everyone
@jhannah
jhannah / gist:4abd9672807eb7201a6db35360ad98c4
Created March 3, 2023 18:47
lol huey's vet records make him look like he's a cage fighter who is losing waaaay too many of his fights
02/27/2023 12:00 AM Antisedan Injection - 5mg/ml 1.00
02/27/2023 12:00 AM Canine Bordetella Oral Vaccination Watch Video 1.00
02/27/2023 12:00 AM Canine DA2PP-L Vaccination Watch Video 1.00
02/27/2023 12:00 AM Sedation, IV Dexdomitor/Torbutrol 1.00
02/27/2023 12:00 AM Examination w/ Vaccinations Watch Video 1.00
02/27/2023 12:00 AM Heartworm Test, Antigen Well Watch Video Interactive Animal 1.00
02/20/2023 12:00 AM Acepromazine 25mg 2.00
02/20/2023 12:00 AM Examination w/ Vaccinations Watch Video 1.00
02/20/2023 12:00 AM Gabapentin 600mg Tablets 3.00
02/20/2023 12:00 AM Trazodone 100mg tablets 8.00
@jhannah
jhannah / gist:772396697ab5ea4c7e8a0b09a9065fcb
Last active January 28, 2023 21:13
Nebraska legislature: Bills introduced on March 5th
Repo / HOWTO: https://github.com/jhannah/legislature_calendar/tree/main/experiments/CSV_dumps
Following up on this thread:
https://octodon.social/@deafferret/109759239190597753
Let's pick a random day of the year not in "the first 10 days of a session." I chose March 5th.
How many bills were Introduced on March 5th?
✗ ack -i "Date of introduction" `find ./ -name "history.csv"` | grep "\-03-05" | wc -l