Skip to content

Instantly share code, notes, and snippets.

View jhannah's full-sized avatar

Jay Hannah jhannah

View GitHub Profile
@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:4659532da44743a01a6926ce914efb61
Last active January 28, 2023 21:13
Nebraska Bills Introduced after Jan 25th
Repo / HOWTO: https://github.com/jhannah/legislature_calendar/tree/main/experiments/CSV_dumps
So here are all the Nebraska Bills (LB)
NOT Resolutions (LR)
NOT Appropriation Bills (LB#####A)
introduced after Jan 25th of any year
sqlite> select h.date, b.bill_number, b.title, b.state_link
from bills b, history h
where b.bill_id = h.bill_id
@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
@jhannah
jhannah / gist:c7dc48c532b1b3929143d4815639662b
Created January 12, 2023 21:41
Am I taking too much / too little time off?
With our "unlimited PTO" policy, I was curious if I've been, roughly, taking too much or too little time off.
So I dumped all my worked hours out of Tempo (Jira) since 2018.
Here's my source code:
https://github.com/jhannah/sandbox/blob/main/jhannah/hours.pl
And here's the result of running the program:
✗ perl hours.pl
Per year: 4 weeks off (PTO + sick) + 11 holidays