Skip to content

Instantly share code, notes, and snippets.

View jhannah's full-sized avatar

Jay Hannah jhannah

View GitHub Profile
@jhannah
jhannah / Airflow.md
Created July 19, 2025 20:06
ChatGPT 4o responses regarding Airflow

I had my work laptop closed, and forgot the name of "Airflow." I asked ChatGPT, and found this interaction interesting.

List the AWS products that can be used to create a dashboard of run statuses of AWS Glue jobs.

To create a dashboard showing the run statuses of AWS Glue jobs, here are the key AWS products you can use:

Core AWS Services

| Service | Purpose |

@jhannah
jhannah / Makefile.PL
Last active June 26, 2025 14:39
word highlighting in diff markdown blocks
# defaults for LIBS & INC & CCFLAGS params that we later pass to Writemakefile
my $INC_magick = '-I/opt/homebrew/Cellar/imagemagick/7.1.1-47 -I/opt/homebrew/Cellar/imagemagick/7.1.1-47/include/ImageMagick-7 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2 -I"' . $Config{'usrinc'} . '/ImageMagick-7"';
my $LIBS_magick = '-L/opt/homebrew/Cellar/imagemagick/7.1.1-47/lib -lMagickCore-7.Q16HDRI -lm -L' . $Config{'archlib'} . '/CORE';
my $CCFLAGS_magick = "$Config{'ccflags'} -I/usr/include/freetype2 -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16";
my $LDFLAGS_magick = "-L/usr/local/lib -lMagickCore-7.Q16HDRI $Config{'ldflags'} ";
my $LDDLFLAGS_magick = "-L/usr/local/lib -lMagickCore-7.Q16HDRI $Config{'lddlflags'} ";
@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