Skip to content

Instantly share code, notes, and snippets.

View burn2delete's full-sized avatar
:octocat:
Building an open-source world....

Matt Ratzke burn2delete

:octocat:
Building an open-source world....
View GitHub Profile
@burn2delete
burn2delete / README.md
Created October 3, 2026 18:43
Unused Workflow Postgres Worlds eagerly open stream listeners outside the shared pool (5.0.1)

Unused Postgres Worlds open stream listeners and can reject out of band

This standalone reproduction uses public @workflow/world-postgres@5.0.1, Node 24 and PostgreSQL 17. It calls createWorld five times with the same pg.Pool({max:1}), without starting a World, enqueueing, reading, or writing streams. Four dedicated clients issue LISTEN workflow_event_chunk; a fifth exceeds a synthetic non-superuser role's four-connection limit and rejects an internal promise without a handler. pool.totalCount remains zero.

The SQLSTATE 53300 is forced by role ownership, not by filling the server's

@burn2delete
burn2delete / README.md
Created October 3, 2026 18:42
Unpatched Eve 0.70.2/0.71.0: Nitro named exports and cancellation caller identity, with isolated minimal repairs

Eve instrumentation exports and cancellation identity reproductions

Standalone reproductions of two defects in the unpatched npm package eve@0.70.2. No application source, credentials, provider calls, external services, or database are needed. All caller identities and handler responses are synthetic.

Use Node.js 24.21.0. The lockfile was generated with npm 11.19.0.

npm ci --ignore-scripts --legacy-peer-deps --include=optional --no-audit --no-fund
@burn2delete
burn2delete / README.md
Created October 3, 2026 06:29
Eve 0.70.2 minimal reproduction: model-resolution cancellation is converted into MODEL_SELECTION_FAILED

Eve 0.70.2: cancellation during model resolution becomes a session failure

A standalone reproduction using the unpatched published eve@0.70.2 package. No API keys, network model requests, desktop application, or database is needed.

Run

Use Node.js 24.21.0 (tested) or a version supporting node:test module mocks. Save all four gist files together, then run:

@burn2delete
burn2delete / isEmpty.ts
Last active December 23, 2023 17:07
Utilities written in Typescript
/**
* Checks if the given value is null or undefined.
*
* @param {any} value - The value to check.
* @returns {boolean} - Returns true if the value is null or undefined, false otherwise.
*/
const isNullOrUndefined = (value: any): boolean => value === null || value === undefined;
/**
* Checks if the given value is an array.
@burn2delete
burn2delete / Compare-ITGluePasswordsHIBP.ps1
Created February 27, 2019 22:09
ITGlue Passwords HIBP
###
# https://gcits.com/knowledge-base/check-it-glue-passwords-against-have-i-been-pwned-breaches/
###
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$key = "ENTERAPIKEYHERE"
$ITGbaseURI = "https://api.itglue.com"
$headers = @{
@burn2delete
burn2delete / New-TenantSecureScore.ps1
Last active May 18, 2025 16:12
Generate O365 Tenante Secure Score
###
# SOURCE: https://gcits.com/knowledge-base/export-customers-microsoft-secure-scores-to-csv-and-html-reports/
###
# This script needs to be run by an admin account in your Office 365 tenant
# This script will create an Azure AD app in your organisation with permission
# to access resources in yours and your customers' tenants.
$externalCSS = "<link rel=`"stylesheet`" href=`"https://dl.dropbox.com/s/vpx9ysgr11cah4u/reports.css?dl=0`">"
$yourLogo = "https://gcits.com.au/wp-content/uploads/GCITSlogowordpress.png"
@burn2delete
burn2delete / spec.cljs
Last active June 7, 2017 10:20
Use data to validate data.
;; Basic Specs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(spec/def ::fn fn?)
(spec/def ::any any?)
(spec/def ::map map?)
(spec/def ::nil nil?)
(spec/def ::set set?)
@burn2delete
burn2delete / index.cljs.hl
Created February 9, 2017 07:03
Hoplon/Bidi Index file
(page "index.html"
(:require [hoplon.bidi]
[app.views :as view]
[app.routing :as routing])
(:require-macros [hoplon.bidi :refer [route-tpl]]))
(html
(head
(html-meta :http-equiv "content-type" :content "text/html; charset=utf-8")
(html-meta :name "viewport" :content "width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0")
@burn2delete
burn2delete / client.cljs
Created February 9, 2017 04:59
CLJS/Feathers.js Client
(ns app.client
(:require [cljsjs.socket-io]
[goog.object :as obj]
[feathers.client :as feathers]
[feathers.client.services :as svc]))
;; Feathers Client ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(def app (feathers/feathers))
@burn2delete
burn2delete / server.cljs
Last active February 9, 2017 05:05
CLJS/Feathers.js Server
(ns app.server
(:require [feathers.app :as feathers]
[app.services :as services]))
(enable-console-print!)
(def app (feathers/feathers))
(def public (str js/__dirname "/../../"))