Skip to content

Instantly share code, notes, and snippets.

View jkinred's full-sized avatar
🐵

Jonathan Kinred jkinred

🐵
View GitHub Profile
@jkinred
jkinred / gist:0238fcb06c8ebbad65c6dbe7176f5aff
Created December 2, 2022 21:27
cimg/go:1.18-node failure
E: Sub-process returned an error code
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code
The command '/bin/bash -exo pipefail -c sudo apt-get update && sudo apt-get install -y RUN sudo apt-get update && sudo apt-get install -y rsync python3-pip git-lfs patchelf && sudo pip3 install pipenv ansible==2.9.10 'Jinja2<3.1' 'PyYAML<5.5' jmespath requests boto3 awscli Authlib' returned a non-zero code: 100
Exited with code exit status 100
@jkinred
jkinred / sierrakeygen.py
Created January 4, 2021 09:44
Sierra Keygen
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# (c) B.Kerler 2019 under MIT license
# If you use my code, make sure you refer to my name
# If you want to use in a commercial product, ask me before integrating it
import serial
import sys
import argparse
from binascii import hexlify, unhexlify
@jkinred
jkinred / gist:a9d10f6c98d10e79f32567e0331dd1f3
Created September 13, 2019 03:32
All availability zones in all regions
for region in `aws ec2 describe-regions --all-regions | jq -r .Regions[].RegionName`; do aws ec2 describe-availability-zones --region $region | jq .AvailabilityZones[].ZoneName; done
@jkinred
jkinred / bootstrap_flux.md
Created July 18, 2018 10:51
Bootstrap Flux into a K8s cluster

Bootstrap flux into a cluster

These instructions assume a working cluster with the Helm Tiller already installed.

GIT_REPO=git@github.org:jkinred/flux-example
helm install \
    --name flux \
    --set helmOperator.create=true \

--set git.url=$GIT_REPO \

`Or else what?' said Alice, for the Knight had made a sudden pause.
`Or else it doesn't, you know. The name of the song is called "Haddocks' Eyes."'
`Oh, that's the name of the song, is it?' Alice said, trying to feel interested.
`No, you don't understand,' the Knight said, looking a little vexed. `That's what the name is called. The name really is "The Aged Aged Man."'
`Then I ought to have said "That's what the song is called"?' Alice corrected herself.
@jkinred
jkinred / gist:9404888
Created March 7, 2014 03:43
Interpretation of HAproxy manual in regard to HTTP keepalive
It seems that these two statements from http://haproxy.1wt.eu/download/1.4/doc/configuration.txt are not consistent.
In "1.1. The HTTP transaction model" section:
"Once established, the connection is persisted both on the client and
server sides."
In "option http-server-close" section:
"By default, when a client communicates with a server, HAProxy will only
analyze, log, and process the first request of each connection."
@jkinred
jkinred / gist:7964830
Last active December 31, 2015 09:09
Code used to combine a Compeo+ and 76s tracklog.
#!/usr/bin/env python
import datetime
from igc2kmz.igc import IGC
garmin = IGC(open('blackheath_blackville_garmin.igc'))
compeo = IGC(open('blackheath_blackville_compeo.igc'))
g_track = garmin.track()
c_track = compeo.track()
#!/usr/bin/env python
import datetime
from igc2kmz.igc import IGC
garmin = IGC(open('blackheath_blackville_garmin.igc'))
compeo = IGC(open('blackheath_blackville_compeo.igc'))
g_track = garmin.track()
c_track = compeo.track()
@jkinred
jkinred / MRI-41808-notests.patch
Last active December 28, 2015 11:29
Patch Ruby 1.8.7-p357 to build on Fedora 19.
--- trunk/ext/openssl/ossl_pkey_ec.c 2013/07/05 22:16:09 41807
+++ trunk/ext/openssl/ossl_pkey_ec.c 2013/07/05 22:46:42 41808
@@ -762,8 +762,10 @@
method = EC_GFp_mont_method();
} else if (id == s_GFp_nist) {
method = EC_GFp_nist_method();
+#if !defined(OPENSSL_NO_EC2M)
} else if (id == s_GF2m_simple) {
method = EC_GF2m_simple_method();
+#endif
@jkinred
jkinred / MRI-41808.patch
Last active December 28, 2015 11:29
Patch Ruby 1.9.3-p374 to build on Fedora 19.
--- trunk/ext/openssl/ossl_pkey_ec.c 2013/07/05 22:16:09 41807
+++ trunk/ext/openssl/ossl_pkey_ec.c 2013/07/05 22:46:42 41808
@@ -762,8 +762,10 @@
method = EC_GFp_mont_method();
} else if (id == s_GFp_nist) {
method = EC_GFp_nist_method();
+#if !defined(OPENSSL_NO_EC2M)
} else if (id == s_GF2m_simple) {
method = EC_GF2m_simple_method();
+#endif