Skip to content

Instantly share code, notes, and snippets.

View matjam's full-sized avatar

Nathan Ollerenshaw matjam

View GitHub Profile
@matjam
matjam / 0001-feat-PP-7886-point-server-side-marketplace-calls-at-.patch
Created July 22, 2026 22:39
PP-7886 landing-page-client-next MARKETPLACE_API_BASE_URL cutover patch
From fba63ebe8b4e25931596611f91de317bc1e4f734 Mon Sep 17 00:00:00 2001
From: Nathan Ollerenshaw <nollerenshaw@nerdwallet.com>
Date: Wed, 22 Jul 2026 15:38:56 -0700
Subject: [PATCH] feat(PP-7886): point server-side marketplace calls at
marketplace-api
Add MARKETPLACE_API_BASE_URL to env files and use it for insurance
marketplace search instead of the hardcoded edge URL.
Refs: PP-7886
@matjam
matjam / seo-pages-PP-7810.patch
Created July 22, 2026 22:14
PP-7810 seo-pages MARKETPLACE_API_BASE_URL cutover patch
From 277594be4cfba3b1d4c741ca83b0a9bd3568f980 Mon Sep 17 00:00:00 2001
From: Nathan Ollerenshaw <nollerenshaw@nerdwallet.com>
Date: Wed, 22 Jul 2026 15:12:52 -0700
Subject: [PATCH] feat(PP-7810): point seo-pages-subgraphs marketplace API at
marketplace-api
Point stage and prod MARKETPLACE_API_BASE_URL at marketplace-api for the
seo-pages-subgraphs Lambda. Prod subgraph remains disabled; URL is set for
when it is enabled.

Critical Analysis: Kessler Codebase

Kessler is a ~3,700 line Go CLI tool that scans a developer's filesystem for build artifacts and deletes them — either to trash or permanently via os.RemoveAll. It includes an auto-pilot daemon that runs unattended via cron/launchd. The stakes for bugs in this codebase are high: a misidentified artifact means deleted source code.


I. CRITICAL — Data Loss Vectors

1. Git safety check fails open

// the simplest MEGA65 test
.cpu _45gs02
* = $2001
.word basend // next BASIC line
.word 1206 // line #
.byte $fe,$02,$30 // BANK 0
.byte $3a,$9e // :SYS
@matjam
matjam / gist:ffd408cbb0bf89905018c9554918fffa
Last active March 29, 2024 22:09
env vars for hyprland
#!/usr/bin/bash
export XCURSOR_SIZE=24
export QT_QPA_PLATFORMTHEME=qt5ct # change to qt6ct if you have that
export ELECTRON_OZONE_PLATFORM_HINT=auto
export GDK_BACKEND=wayland,x11
export SDL_VIDEODRIVER=wayland
export CLUTTER_BACKEND=wayland
export MOZ_ENABLE_WAYLAND=1
export MOZ_DISABLE_RDD_SANDBOX=1
glyphBit(const FT_GlyphSlot &glyph, const int x, const int y)
{
int pitch = abs(glyph->bitmap.pitch);
unsigned char *row = &glyph->bitmap.buffer[pitch * y];
char cValue = row[x >> 3];
return (cValue & (128 >> (x & 7))) != 0;
}
// When update() is called, we scan through each character and look in the m_glyph_images map
struct Quad {
sf::Vertex &a;
sf::Vertex &b;
sf::Vertex &c;
sf::Vertex &d;
};
inline Quad &
getQuadForScreenLocation(sf::Vector2i location)
{
inline bool
glyphBit(const FT_GlyphSlot &glyph, const int x, const int y)
{
int pitch = abs(glyph->bitmap.pitch);
unsigned char *row = &glyph->bitmap.buffer[pitch * y];
char cValue = row[x >> 3];
return (cValue & (128 >> (x & 7))) != 0;
}
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"${vcpkgRoot}/x64-windows/include",
"${vcpkgRoot}/x64-windows-static/include",
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.26.28801/include"
],
fn compileShader(file: var, shader_type: c_uint) !c.GLuint {
std.debug.warn("shader loading file: {}\n", .{file});
const source = try std.fs.cwd().readFileAlloc(std.heap.c_allocator, file, 1000000);
defer std.heap.c_allocator.free(source);
var shader = c.glCreateShader(shader_type);
c.glShaderSource(shader, 1, &(&source[0]), null);
c.glCompileShader(shader);
// check for shader compile errors