Skip to content

Instantly share code, notes, and snippets.

View gpshead's full-sized avatar

Gregory P. Smith gpshead

View GitHub Profile
@gpshead
gpshead / workaround_cpython_issue115533.py
Created February 22, 2024 10:01
workaround_cpython_issue115533.py
#!/usr/bin/env python3.12
# LICENSE: Apache 2.0
import itertools
import time
import threading
import sys
def issue115533_workaround_wait_for_non_daemon_threads(
@gpshead
gpshead / Dockerfile
Last active November 30, 2023 04:22
Build a Linux 4 Tegra with CUDA Ubuntu 22.04 docker image for the nVidia Jetson Nano using its final JetPak 4.6.3
# Make an Ubuntu 22.04 Docker image supporting CUDA and Linux 4 Tegra stuff on
# the nVidia Jetson Nano. I ran this from the final nano Linux 4 Tegra JetPak
# image aka jetson-nano-jp461-sd-card-image.zip which I updated to 4.6.3
# using apt. -- @gpshead
#
# Is there any real point to doing this? I have no idea. :P
# If you don't care about toying with the GPU stuff, just go install Armbian.
#
# This is based off of the instructions on
# https://github.com/NVIDIA/nvidia-docker/wiki/NVIDIA-Container-Runtime-on-Jetson
@gpshead
gpshead / ipv6-only-host.md
Last active February 2, 2024 20:16
IPv6 Only Linux host HOW-TO [Ubuntu]

Making a Linux host IPv6 only (No IPv4 at all)

Notes on what I had to do it setup an IPv6 only Ubuntu bionic 20.04 host.

Revisions:

updated: 2020-04-06 (virus times, whatcha gonna do?)
updated: 2020-10-24 (still virus times...)
2022-03-22, Posted as a Gist because it always should've been...


@gpshead
gpshead / python-1.4.18.diff
Created April 2, 2018 01:54
Patches needed to make Python 1.4 compile.
diff -Nru Python-1.4/Include/modsupport.h Python-1.4.18/Include/modsupport.h
--- Python-1.4/Include/modsupport.h 1996-10-25 07:38:33.000000000 -0700
+++ Python-1.4.18/Include/modsupport.h 2018-04-01 18:47:56.279934265 -0700
@@ -93,7 +93,7 @@
The full MS_DLL_VERSION_ID is imbedded in the core DLL, and
is so installers can determine incremental changes.
*/
-#define MS_DLL_ID "1.4.0"
+#define MS_DLL_ID "1.4.18"
#define MS_DLL_VERSION_ID MS_DLL_ID "." PYTHON_API_STRING