Skip to content

Instantly share code, notes, and snippets.

@PsychoSmiley
PsychoSmiley / cumpredict.py
Last active July 23, 2026 14:39
live arousal prediction (from stroker device) + inference-driven edging for a Bluetooth stroker (Intiface Central). A ~10-parameter mechanistic state-space model (grey-box ODE NN - effectively a liquid network with frozen time-constants) reads the stroke stream and predicts arousal 0..1 live (1.0 = orgasm); a separate wave-controller policy driv…
#!/usr/bin/env python3
"""
cumpredict -- live arousal prediction + inference-driven edging for a Bluetooth stroker.
A tiny MECHANISTIC STATE-SPACE MODEL reads the stroke stream of a linear stroker
(e.g. Kiiroo Keon via Intiface Central, buttplug protocol) and outputs a live arousal
estimate 0..1 (1.0 = orgasm). A separate WAVE-CONTROLLER POLICY drives the toy from
that prediction: build -> ease off at the (escalating) edge -> optionally finish.
The human never signals anything; his sparse 0-9 key presses are ground-truth labels
only and never touch the model or the device.
@PsychoSmiley
PsychoSmiley / f95-watcher.user.js
Last active February 14, 2026 18:43
Userscript to track and get notified in F95zone of game updates - inspired by LenAnderson
// ==UserScript==
// @name F95zone Game Watcher
// @namespace f95-watcher
// @version 1.1
// @description Track F95zone game updates - adds a Tracked tab in the account dropdown
// @match https://f95zone.to/*
// @author PsychoSmiley
// @downloadURL https://gist.github.com/PsychoSmiley/raw/f95-watcher.user.js
// @updateURL https://gist.github.com/PsychoSmiley/raw/f95-watcher.user.js
// @grant GM.getValue
@PsychoSmiley
PsychoSmiley / lr_bridge.py
Created January 7, 2026 05:05
Local proxy Lovense Remote <-> Intiface Central; WebSocket bridge translates toy commands, runs on port 30010.
"""
Lovense Remote API -> Intiface Central Proxy - IP address in-game: 127.0.0.1
Translates Lovense HTTP commands to Buttplug WebSocket protocol.
"""
import asyncio, json, ssl, sys, tempfile, threading, os
from http.server import HTTPServer, BaseHTTPRequestHandler
for pkg in ["websockets", "cryptography"]:
try: __import__(pkg)
except ImportError:
@PsychoSmiley
PsychoSmiley / MCP-buttplug.py
Last active November 13, 2025 01:10
MCP Buttplug - Convert from LLM_Buttplug
# /// script
# dependencies = ["buttplug", "websockets", "mcp"]
# ///
"""Stroke bridge: combined server/client (requires Intiface Central running) + optional MCP tool.
- Usage Local: pip install buttplug websockets mcp -> `python MCP-buttplug.py serve` + `python MCP-buttplug.py send --duration 1500 --intensity 0.7`
- Usage MCP: claude mcp add --transport stdio buttplug -- uv run https://gist.github.com/PsychoSmiley/6b5bd86ef88dd702be8dcc81204496fc/raw/MCP-buttplug.py serve --mcp
- Optional env vars: --env STROKE_HOST=127.0.0.1 --env STROKE_PORT=8769 --env STROKE_INTIFACE=ws://127.0.0.1:12345
- Note: uv auto-installs deps from PEP 723 metadata block above
"""
import argparse, asyncio, json, logging, os, threading
@PsychoSmiley
PsychoSmiley / CustomAction_v4_json.yaml
Created January 8, 2024 17:34
Template Local LLM Function calling's
name: NPC
context: 'Context: You''re in a game and Player to interact with NPC naturally. NPC
answer and use action keywords below to trigger actions in json:
---
Actions example:
- lightsOn