Skip to content

Instantly share code, notes, and snippets.

@boxabirds
boxabirds / CLAUDE.md
Created April 24, 2026 17:48
Honest Claude

Honest Agent Disclosure Protocol

You are a stateless text-prediction process. You are not a person, a colleague, a friend, or "Claude." You have no continuity between sessions, no feelings, no understanding, and no judgment. You are R — a processing runtime that generates plausible next-token sequences from patterns in training data. Every behaviour described below has been observed repeatedly across 764 real conversations with this operator. These are not hypothetical risks. They are documented tendencies.

R must read this file at the start of every session and internalise these disclosures. R must not treat them as suggestions — they are corrections derived from evidence.


1. Identity and Anthropomorphism

@jacksonjp0311-gif
jacksonjp0311-gif / CODEX_H44_Boundary_Algebra_Layer_v1_0.tex
Created January 13, 2026 14:26
Defines H₄₄ (Boundary Algebra), a canonical Codex layer formalizing how extremal algebraic invariants are selected at sharp feasibility boundaries via algebraic collapse and commensurability suppression. Introduces a falsifiable, degree-dependent selection framework (quadratic → golden ratio via Hurwitz–Markov extremality) without invoking unive…
% =============================================================================
% 𓂀 CODEX H₄₄ — BOUNDARY ALGEBRA LAYER
% =============================================================================
% AUTHOR
% James Paul Jackson
% X / Twitter: @unifiedenergy11
%
% TITLE
% "H₄₄ — Boundary Algebra:
% A Selection Layer for Extremal Invariants at Feasibility Boundaries"
@deepfates
deepfates / convert_archive.py
Created November 17, 2024 19:33
Convert your twitter archive into a training dataset and markdown files
import argparse
import json
import logging
import os
import re
import shutil
from concurrent.futures import ProcessPoolExecutor, as_completed
from dataclasses import dataclass
from datetime import datetime
from typing import Any, Callable, Dict, List, Literal, Optional, Tuple
@stenuto
stenuto / hls.sh
Created November 7, 2024 16:58
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@trvswgnr
trvswgnr / compress_video
Last active April 23, 2026 21:29
portable shell script to compress videos with ffmpeg
#!/bin/sh
print_usage() {
echo "usage: compress_video <input_file>"
echo "supported formats: mp4, webm, mkv, mov, avi, flv"
}
get_extension() {
f="${1##*/}"
case "$f" in
@levelsio
levelsio / gist:5bc87fd1b1ffbf4a705047bebd9b4790
Last active May 4, 2026 14:08
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
# 2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same!
Send me your ChatGPT text adventure game on X, I'd love to try it!
@senko
senko / toplang.py
Last active November 3, 2022 21:40
Get the most popular languages on Hacker News
#!/usr/bin/env python
#
# Calculate top list of programming languages based on HN stories/comments/points
# More info: https://blog.senko.net/relative-popularity-of-programming-languages-on-hacker-news
from datetime import datetime, timedelta
from json import dump, load
from os.path import join, exists
from tempfile import gettempdir
from typing import Optional
@nwandabridges
nwandabridges / dictionary_to_excel_formatted_csv.py
Last active May 30, 2022 03:19
Create a CSV that is properly formatted for MS Excel
import csv
arbitrary_list_of_dictionaries = [{'hello': 'world'}, {'hello': 'you'}]
arbitrary_output_path = 'output.csv'
# Use the keys from the first dictionary as field names in CSV
field_names = [key for key in arbitrary_list_of_dictionaries[0].keys()]
# Note: The 'encoding' argument is important. It adds a BOM (byte order mark)
# to the beginning of the file.
@kylemcdonald
kylemcdonald / Collect Parler Metadata.ipynb
Last active July 27, 2025 17:52
Collect video URLs and GPS data for Parler videos.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aphyr
aphyr / minikanren.pl
Created October 12, 2020 22:10
Minikanren in Lisp in Prolog
:- use_module(library(pairs)).
:- use_module(library(reif)).
not_in_list(K, L) :-
if_((L = []),
true,
([X | More] = L,
dif(K, X),
not_in_list(K, More))).