Skip to content

Instantly share code, notes, and snippets.

View tunnckoCore's full-sized avatar
🔒
Fighting for freedom, security and privacy 🔐

Charlike Mike Reagent tunnckoCore

🔒
Fighting for freedom, security and privacy 🔐
View GitHub Profile
@tunnckoCore
tunnckoCore / llm-wiki.md
Created April 19, 2026 04:50 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@tunnckoCore
tunnckoCore / pi-session.jsonl
Created April 7, 2026 19:32
Pi session file format
This file has been truncated, but you can view the full file.
{"type":"session","version":3,"id":"8978f545-a3dd-401d-99e4-7287c663146e","timestamp":"2026-04-07T14:46:20.637Z","cwd":"/home/arcka/tryingmempalace"}
{"type":"model_change","id":"7a4e1eaa","parentId":null,"timestamp":"2026-04-07T14:46:20.638Z","provider":"openai-codex","modelId":"gpt-5.4"}
{"type":"thinking_level_change","id":"341de6ae","parentId":"7a4e1eaa","timestamp":"2026-04-07T14:46:20.638Z","thinkingLevel":"high"}
@tunnckoCore
tunnckoCore / .zshrc
Created January 17, 2026 02:26 — forked from jnsahaj/.zshrc
Peter Steinberger's Multiple Checkout aliases
# Create a new clone and branch for parallel development.
# Usage: ga <branch-name> [base-branch]
ga() {
if [[ -z "$1" ]]; then
echo "Usage: ga <branch-name> [base-branch]"
return 1
fi
local branch="$1"
local repo_name="$(basename "$PWD")"
local repo_url="$(git remote get-url origin)"
@tunnckoCore
tunnckoCore / 0_SecureReleaseProtocol.md
Last active November 29, 2025 15:59
Secure Release Protocol for node/typescript/npm packages, without publishing to NPM registry. Everything is secured by Github features, and it's Github-only and Github-native.

Secure Release Protocol

This document outlines the secure, tamper-resistant release protocol for npm packages. The setup uses GitHub Actions workflows to automate building, attesting provenance, and releasing packages while enforcing immutability through repository rulesets. This ensures that releases are verifiable, auditable, and protected against unauthorized modifications.

Overview

The protocol consists of two chained GitHub Actions workflows:

  1. Build & Push Workflow: Handles building the package and pushing built artifacts to a dedicated release branch.
  2. Attest & Release Workflow: Triggered only after a successful build; generates Sigstore attestations, creates GitHub releases, uploads assets.
@tunnckoCore
tunnckoCore / example.ts
Created November 28, 2025 06:53
Basic send BTC from WIF/privateKey
// Example usage
const privateKeyWIF = "WIF_HERE";
const recipientAddress = `bc1pk42g9szvyl7xxdpdszn5ql6ce2mzc0wmy05y97qfmu7hs8uftnns5tc37k`;
const amount = 32000;
const feeRate = 1;
sendBTC(privateKeyWIF, recipientAddress, amount, feeRate)
.then((result) => {
console.log("Send successful:", result);
@tunnckoCore
tunnckoCore / convex-queue.ts
Created November 6, 2025 21:19
civex queue pattern
// Enqueue an email
export const enqueueEmail = mutation({
args: { recipient: v.string(), body: v.string() },
handler: async (ctx, args) => {
await ctx.db.insert("emails", args);
}
});
// Process a batch of emails (e.g., the first 10)
export const processBatchOfEmails = mutation({
const foo = [
{ name: "Alice", age: 25 },
{ name: "Bob", age: 30 },
{ name: "Charlie", age: 35 },
{ name: "David", age: 40 },
];
export type Item = { name: string; age: number };
export async function foobar(collection: Item[]) {
@tunnckoCore
tunnckoCore / 0xnekos-eths.json
Last active October 28, 2025 03:58
Metadata for 0xNeko NFTs, Ordinals, and Ethscriptions
[
{
"block_hash": "0x63b52be2e50bc426e23d3d29638acc054f5d77abd0ab15a5913f62046c138c00",
"block_number": 17673466,
"block_timestamp": 1689116087,
"content_sha": "0x3420e1c19389a3cac01ae5b6ab21cf8a54762b8ef25dd7c7cf4342c02af1c2c4",
"creator": "0xa20c07f94a127fd76e61fbea1019cce759225002",
"current_owner": "0xa20c07f94a127fd76e61fbea1019cce759225002",
"event_log_index": null,
"id": "0x77469acb50576b226f04949c54f39dd99989581cd7a5716b6b496ed90d001e5b",
@tunnckoCore
tunnckoCore / fetch-all-nekos.ts
Last active October 2, 2025 02:42
Fetcher for all 192 ethscribed 0xNekos OG - could output item by item, or a collection manifest
import * as cheerio from "cheerio";
export type Attribute = {
trait_type: string;
value: string;
};
export type CollectionItem = {
id: string;
index: number;
@tunnckoCore
tunnckoCore / 1_ethscriptions-social-README.md
Last active November 30, 2025 21:22
WGW.black - social network for Ethscriptions

wgw.black

Protocol for social networking built on Ethscriptions. Cuz I'm sick and tired of Twitter.

Previously i had Likes For Ethscriptions, but it was very early and.. not that extensible.

There's also TIC meta protocol by Chopper, it's fine for comments & reactions.

Here's what i think and need: