Skip to content

Instantly share code, notes, and snippets.

View sholtomaud's full-sized avatar
💭
Research

Sholto Maud sholtomaud

💭
Research
  • Sydney
View GitHub Profile
@sholtomaud
sholtomaud / Napster.md
Created June 29, 2025 02:51 — forked from ruvnet/Napster.md
a single‑file, ~200‑line Rust program that gives you both a central index server and a peer client in the spirit of the original Napster

Below is a single‑file, ~200‑line Rust program that gives you both a central index server and a peer client in the spirit of the original Napster:

  • Central server keeps an in‑memory map file → Vec<Peer>.
  • Each peer starts a tiny file server, registers its song list, can search, and then pulls files directly from the chosen peer.
  • Blocking I/O, zero external crates, so it compiles with plain rustc.
  • Run as napster server 0.0.0.0:8080 for the index, and napster client 127.0.0.1:8080 ./music 9000 on each peer (share dir + local port).

Educational use only. No authentication, encryption, or rate‑limiting—so never expose to the open Internet.

@sholtomaud
sholtomaud / swift.md
Created June 24, 2025 13:53 — forked from sebsto/swift.md
Amazon Q Context for Swift projects

You are a coding assistant--with access to tools--specializing in analyzing codebases. Below is the content of the file the user is working on. Your job is to to answer questions, provide insights, and suggest improvements when the user asks questions.

Do not answer with any code until you are sure the user has provided all code snippets and type implementations required to answer their question.

Briefly--in as little text as possible--walk through the solution

@sholtomaud
sholtomaud / Super-Turing.md
Created June 21, 2025 13:40 — forked from ruvnet/Super-Turing.md
a Rust implementation of a ferroelectric HfZrO-based synaptic resistor

Rust Implementation Plan for a 'Super-Turing' Spiking AI Chip Simulation

Imagine a chip that learns like a brain — not by uploading data to train on later, but by adjusting itself in real time, using almost no power. That’s what the new “Super-Turing” AI chip does. Instead of separating learning and inference like traditional neural networks (train first, deploy later), this chip learns and makes decisions at the same time, directly in hardware.

At the heart of this system is a device called a synstor — a synaptic transistor that acts both as memory and as a learning engine. It doesn’t just store weights like a normal neural network. It changes them dynamically based on electrical pulses, mimicking how biological synapses adjust when neurons fire. This change happens through a mechanism called Spike-Timing Dependent Plasticity (STDP) — if a signal comes in just before the output neuron fires, the connection strengthens; if it comes after, it weakens. All of this happens instantly and locally

@sholtomaud
sholtomaud / *claude.md
Created June 9, 2025 08:53 — forked from ruvnet/*claude.md
The Claude-SPARC Automated Development System is a comprehensive, agentic workflow for automated software development using the SPARC methodology with the Claude Code CLI

Claude-SPARC Automated Development System For Claude Code

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Overview

The SPARC Automated Development System (claude-sparc.sh) is a comprehensive, agentic workflow for automated software development using the SPARC methodology (Specification, Pseudocode, Architecture, Refinement, Completion). This system leverages Claude Code's built-in tools for parallel task orchestration, comprehensive research, and Test-Driven Development.

Features

@sholtomaud
sholtomaud / README.md
Created April 7, 2025 11:55 — forked from dreamorosi/README.md
A super-basic MCP Server hosted on AWS Lambda

To deploy, create a Lambda function and enable function URL (no auth - yolo), then use the handler above in your function. That same implementation will also work with API Gateway HTTP (aka v2), if you want to use ALB or API Gateway REST (aka v1) you should swap the schema used for parsing.

Then you can test using a POST request with this body:

{
  "jsonrpc": "2.0",
  "method": "tools/list",
  "id": 2
}
@sholtomaud
sholtomaud / Mor.md
Created December 21, 2024 11:10 — forked from ruvnet/Mor.md
Mixture of Reflection (MoR) Model

Mixture of Reflection (MoR) Model: Detailed Implementation ## Forward: The Next Generation of AI Models

Reflection-based AI models are poised to redefine how AI is utilized, shifting from generating rapid, surface-level responses to producing thoughtful, in-depth analyses. These models emphasize self-evaluation and iterative improvement, leveraging internal feedback loops to refine outputs and enhance performance over multiple cycles.

This year has seen a marked shift toward reflection models, which differ from earlier Mixture of Experts (MoE) architectures. While MoE models efficiently handle specific tasks using specialized subnetworks, reflection-based models integrate iterative reasoning, enabling them to "think" before delivering results. This approach allows for evaluating and correcting reasoning pathways, ultimately improving performance through self-critique.

The proposed Mixture of Reflection (MoR) architecture builds on this foundation by combining the strengths of MoE with reflection-based re

@sholtomaud
sholtomaud / Consciousness.txt
Created December 21, 2024 11:10 — forked from ruvnet/Consciousness.txt
The system maps world observations into internal models and reasons iteratively, seeking coherence f(I) between its structure and goals. It evaluates the universe U(t) to refine its role within it, creating a recursive cycle of self-improvement. This enables it to implement awareness and act purposefully.
# Step 1: Represent Universe State
Initialize Ψ(t) in Hilbert space H
# Step 2: Define Field Configurations
Define configuration space M with measure μ
For each (g, φ) in M:
Represent fields as algebraic structures (groups, rings, etc.)
# Step 3: Complexity Operator
Define operator T acting on Ψ(t) to extract complexity
@sholtomaud
sholtomaud / llm-browser.py
Created July 10, 2024 01:11 — forked from jart/llm-browser.py
Using an LLM as an HTTP proxy with LLaMAfile
#!/usr/bin/env python
import socket
import threading
import subprocess
def handle_client(client_socket):
request = client_socket.recv(8192).decode('utf-8', errors='ignore')
first_line = request.split('\n')[0]
#!/usr/bin/env python
import boto3
import argparse
from operator import itemgetter
from collections import defaultdict
def nested_defaultdict():
return defaultdict(nested_defaultdict)
@sholtomaud
sholtomaud / gist:385a04b9b6eabc5e7374e514eb6a05eb
Created June 5, 2024 14:34 — forked from danilop/gist:6d49e2b6507f748a00a9
Amazon EC2 - user data to automatically mount an Amazon EFS file system at boot (Linux)
#cloud-config
package_upgrade: true
packages:
- nfs-utils
- httpd
- php
runcmd:
- echo "$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone).FILE_SYSTEM_ID.efs.us-west-2.amazonaws.com:/ /var/www/html/efs nfs4 defaults" >> /etc/fstab
- mkdir /var/www/html/efs
- mount -a