Skip to content

Instantly share code, notes, and snippets.

View coolaj86's full-sized avatar
😎
🐹 Go 🦎 Zig πŸ“¦ Node 🐧 POSIX πŸͺŸ PowerShell

AJ ONeal coolaj86

😎
🐹 Go 🦎 Zig πŸ“¦ Node 🐧 POSIX πŸͺŸ PowerShell
View GitHub Profile
@coolaj86
coolaj86 / AAA - Grok Ads Remover Extension.md
Last active February 25, 2026 18:46
Remove Ads from Grok
# debug: goreleaser release --snapshot --clean --skip=publish
# release: goreleaser release --clean
version: 2
project_name: overclockedmusicd
before:
hooks:
- go mod download
- go generate ./...
builds:
- id: ocmd-all
@coolaj86
coolaj86 / Fix Civ VI Crashing on macOS Apple Silicon.md
Last active October 18, 2025 18:50
Fix Civ VI Crashing on macOS Apple Silicon

Updates

  • 2025-01-27: Quite unexpectedly, it seems that just setting Memory to minimum will work
    (unexpected because the error I get is about threads - CPUs)

Quick Fix

Screenshot 2025-01-27 at 12 22 46β€―PM

The "Performance Impact" has dozens of options. One or more of them is buggy on macOS and causes Civ VI to crash every few minutes.

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
Multi-Section Code Carousel with Active Section and Hash Routing
</title>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"
\       escape

^       match start (or negate group)
$       match end

.       match any character (except newlines, [\s\S] to match newlines too)
[]      match range (see examples below)
[^]     negative match range, such as [^<]* (match up to but not including the next `<`)
@coolaj86
coolaj86 / AiScript-Engineer-INSTRUCTIONS.md
Last active August 6, 2025 11:20
AiScript Engineer (GPT)

Goal

Create a GPT that can assist me.

It should be able to write code in my style.

Write a "Hello World"-style REST API that uses reCAPTCHA for validation before allowing access to other API routes.

Rules

@coolaj86
coolaj86 / recaptcha-express-gpt.js
Created September 19, 2024 22:29
A Simple Demo using Google reCAPTCHA with Express, lovingly coaxed out of GPT4o with a heavy hand.
const express = require('express');
const AsyncRouter = require('@root/async-router');
const fetch = require('node-fetch'); // For making external API requests
const app = AsyncRouter.Router();
// Secret key for reCAPTCHA
const RECAPTCHA_SECRET_KEY = 'YOUR_SECRET_KEY';
app.post('/api/process-payment', async (req, res) => {