Skip to content

Instantly share code, notes, and snippets.

View jhannah's full-sized avatar

Jay Hannah jhannah

View GitHub Profile
@jhannah
jhannah / gist:4560a7e8e71815b3941a146eedf4145b
Last active October 23, 2024 20:52
Git history visual clarity

So we've got 2 primary branches: main (prod) and develop. We use GitHub. The develop branch is protected: You need a PR to change develop. So on production release: develop merges to main. The code is now identical, but those two branches are not the same commit. (main has an "extra" merge commit.) I can't push to get them on the same commit:

git:(develop) ✗ git merge origin/main --ff-only
Updating bf8228b..f9c3e42
Fast-forward
@jhannah
jhannah / AGA_goals.md
Last active May 17, 2024 00:46
Open letter to AGA (American Go Association https://www.usgo.org/)

Possible AGA 2024/5 Goals

2024/05/14 | James Story [email protected]

  1. Create an AGA Hall of Fame. This could be something simple, like just announcing it via email and/or a page on the AGA website.

  2. Create criteria for induction into the AGA Hall of Fame. Suggestions:

    • over-the-board excellence
  • lifetime of service
@jhannah
jhannah / neal.pl
Created May 11, 2024 15:10
Neal Stephenson book page 480
#!/usr/bin/perl -s
$f = $d ? -1 : 1;
$D = pack('C*',33..86);
$p = shift;
$p =~ y/a-z/A-Z/;
$U ='$D =- s/(.*)U$/U$1/; $D =~ s/U(.)/$1U/;'
($V=$U) =~ s/U/V/g;
$p =~ s/[A-Z]/$k=ord($&)-64,&e/eg;
$k = 0;
@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
Last active June 3, 2024 22:39
Trying to build Norse...
$ git fetch --all
Fetching upstream
Fetching origin
$ git show | head -1
commit adbfe44695e420f4839925d8a3cfe957f299b877
$ git show upstream/refactor-main | head -1
commit adbfe44695e420f4839925d8a3cfe957f299b877
docker container rm norse
docker image rm norse
@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/@[email protected]/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