Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// "broken slow cut 1" @by froos remixed by zitterbewegung
// @version 1.0.1
samples('github:tidalcycles/dirt-samples')
samples({
'slap': 'https://cdn.freesound.org/previews/495/495416_10350281-lq.mp3',
'whirl': 'https://cdn.freesound.org/previews/495/495313_10350281-lq.mp3',
'attack': 'https://cdn.freesound.org/previews/494/494947_10350281-lq.mp3'
})
@zitterbewegung
zitterbewegung / changelog-mar-16-30.md
Last active March 30, 2026 14:33
Sitch Globe — Detailed Changelog Mar 16–30, 2026

Detailed Changelog: March 16–30, 2026

244 commits | 15 consecutive days | 213 files changed | +29,506 / -9,234 lines | 52 new test files

Type Count
Bug fixes 154
Features 49
Performance 17
Tests 5
@zitterbewegung
zitterbewegung / deploy-inky-app-uv-py310.sh
Last active August 23, 2025 20:18
Psychic Paper Install
#!/usr/bin/env bash
set -euo pipefail
# ============================================
# Config
# ============================================
APP_USER="${APP_USER:-${SUDO_USER:-pi}}"
APP_GROUP="${APP_GROUP:-${APP_USER}}"
HOME_DIR="$(getent passwd "${APP_USER}" | cut -d: -f6)"
APP_DIR="${APP_DIR:-${HOME_DIR}/inky-app}"
@zitterbewegung
zitterbewegung / Guide
Last active August 23, 2025 16:45
Psychic Paper Quickstart.
# 1) Copy your files to the Pi (adjust path/host as needed)
# Put setup-inky-app.sh, main.py, requirements-2.txt in the same folder.
# From your local machine:
# scp setup-inky-app.sh main.py requirements-2.txt pi@raspberrypi.local:/home/pi/
# 2) SSH into the Pi:
# ssh pi@raspberrypi.local
# 3) Run the setup (as root):
sudo bash ./setup-inky-app.sh
from deepsearcher.configuration import Configuration, init_config
from deepsearcher.online_query import query
config = Configuration()
# Customize your config here,
# more configuration see the Configuration Details section below.
config.set_provider_config("llm", "OpenAI", {"model": "gpt-4o-mini"})
#config.set_provider_config("embedding", "OpenAIEmbedding", {"model", "text-embedding-ada-002"})
config.set_provider_config("embedding", "MilvusEmbedding", {"model": "jina-embeddings-v3"})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zitterbewegung
zitterbewegung / main_formatted.ts
Last active November 19, 2024 19:33
OpenAI Deno Vision Tutorial
import OpenAI from "npm:openai";
const openai = new OpenAI();
import { encode } from "https://deno.land/std@0.206.0/encoding/base64.ts";
async function main() {
// Ensure a file path argument is provided
if (Deno.args.length === 0) {
console.error("Usage: deno run --allow-read script.ts <image-file-path>");
Deno.exit(1);
}
#!/bin/bash
# Make the script executable
chmod +x install.sh
# Install Python dependencies
echo "Installing Python dependencies from requirements.txt..."
pip install -r requirements.txt
# Check and install Ghidra if needed
#!/bin/bash
sudo apt update
sudo apt install fuse libfuse3-dev libicu-dev bzip2 libbz2-dev cmake git libattr1-dev zlib1g-dev g++
sudo snap install cmake --classic
git clone https://github.com/sgan81/apfs-fuse.git
cd apfs-fuse
git submodule init
git submodule update