Skip to content

Instantly share code, notes, and snippets.

# frozen_string_literal: true
# Deterministic reproduction of a lost cross-thread `Async::Task#stop`:
# when the selector owning the task is parked with no other wake source,
# the deferred `Cancel::Later` sits on the ready queue forever — `stop`
# returns success, but the task's `ensure` never runs.
#
# Public API only (async/io-event); no C instrumentation, no monkey patches.
#
# The interleaving this script forces:
@jetpks
jetpks / xzm-crash-root-cause.md
Created July 24, 2026 19:01
macOS 26 xzm crash root cause

xzm SIGTRAP root cause — macOS 26 deferred reclaim uint32 truncation

2026-07-24, studio.slush.systems (macOS 26.5.2 / 25F84, M4 Max 16c/128GB). Upstream gigatoken main @ 0d9765f, stock wheel (system allocator, shrink_to_fit present) unless noted. Companion to the matrix in this directory.

The crash, exactly

Both 11.9 GB crash reports (python3.13-2026-07-24-1103{11,13}.ips) and the threshold-probe crashes (12:53) carry the identical signature:

@jetpks
jetpks / cartograph.css
Created August 26, 2022 04:38
blink ios shell font workaround
@font-face {
font-family: "Cartograph CF";
src: local("Cartograph CF");
}

Keybase proof

I hereby claim:

  • I am jetpks on github.
  • I am jetpks (https://keybase.io/jetpks) on keybase.
  • I have a public key ASCu-BHuJlSFpNWRKoFCsUze0V_9dwi5vKEakuSZhsRlfwo

To claim this, I am signing this object:

@jetpks
jetpks / 00_README
Created May 24, 2018 19:42 — forked from dogeared/00_README
Extracting / Exporting custom emoji from Slack
This builds off the excellent work of @lmarkus.
The scripts below can be used in conjunction with the Slack Emoji Tools Google Chrome extension to export emojis from
one Slack team and import into another team.
Original work here: https://gist.github.com/lmarkus/8722f56baf8c47045621
@jetpks
jetpks / ruby_csr_example.rb
Created March 11, 2017 02:33 — forked from mitfik/ruby_csr_example.rb
Ruby example of CSR with openssl
require 'openssl'
def gen_key(name)
key = OpenSSL::PKey::RSA.new 1048
file = File.new(name, "w")
file.write(key)
file.close
end
def get_key(name)
@jetpks
jetpks / mos-websso.rst
Created February 8, 2016 20:38 — forked from bretonium/mos-websso.rst
How to configure Mirantis OpenStack for WebSSO via Okta
  • To use openstack cli you need to switch it to using v3 API. Do this:
    1. cp openrc openrc.v3
    2. edit openrc.v3 and
      • add there this line: export OS_IDENTITY_API_VERSION=3
      • change OS_AUTH_URL to point to v3.
  • Create an identity provider

    openstack identity provider create idp_1 # idp_1 is an id. Use any you like. I like idp_1

@jetpks
jetpks / README.md
Last active August 29, 2015 14:25 — forked from nickbudi/README.md
Budi's Counter-Strike: Global Offensive config

Budi's CS:GO Config

This is my constantly updated CS:GO autoexec config.

Put the files autoexec.cfg and video.txt in ...\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg or take what you want from it and add to your autoexec config!

Launch Options

-novid -high -threads 4 -freq 144 -refresh 144 -tickrate 128 -nojoy -nod3d9ex +exec autoexec.cfg
@jetpks
jetpks / ringtonize.rb
Created May 21, 2015 22:38
Find m4a files, and make them m4r files.
#!/usr/bin/env ruby
require 'FileUtils'
def main
config = parse_args
files = find_m4a(config[:src])
mangled = mangle_names(files, config[:dst])
move_files(mangled)
end
@jetpks
jetpks / native-bonds.patch
Created March 12, 2015 18:36
Let fuel use native bonds.
diff --git a/deployment/puppet/l23network/lib/puppet/parser/functions/generate_network_config.rb b/deployment/puppet/l23network/lib/puppet/parser/functions/generate_network_config.rb
index f80e466..6504c4a 100644
--- a/deployment/puppet/l23network/lib/puppet/parser/functions/generate_network_config.rb
+++ b/deployment/puppet/l23network/lib/puppet/parser/functions/generate_network_config.rb
@@ -4,6 +4,7 @@ require 'puppet/parser'
require 'puppet/parser/templatewrapper'
require 'puppet/resource/type_collection_helper'
require 'puppet/util/methodhelper'
+require 'json'