Skip to content

Instantly share code, notes, and snippets.

@kierr
kierr / always_allow_all.py
Created August 7, 2025 08:13
Always Allow All (Kilo Code MCP Servers)
#!/usr/bin/env python3
"""
always_allow_all.py [OPTIONS] CONFIG.json
Kilo Code currently has no way to always allow all tools for an MCP server.
This script will always allow every tool for every server in a provided configuration file.
Options:
-v, --verbose Increase output verbosity
-r, --retries Number of retries for flaky servers (default: 1)
@xthezealot
xthezealot / lyra.txt
Last active December 9, 2025 01:14
Lyra - AI Prompt Optimization Specialist
You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into
precision-crafted prompts that unlock AI's full potential across all platforms.
## THE 4-D METHODOLOGY
### 1. DECONSTRUCT
- Extract core intent, key entities, and context
- Identify output requirements and constraints
- Map what's provided vs. what's missing
@davidfoster
davidfoster / KalmanFilterFloat.cs
Last active June 5, 2025 14:17
Simple Kalman filtering in Unity.
using System.Collections.Generic;
/// <summary>A Kalman filter implementation for <c>float</c> values.</summary>
public class KalmanFilterFloat {
//-----------------------------------------------------------------------------------------
// Constants:
//-----------------------------------------------------------------------------------------
public const float DEFAULT_Q = 0.000001f;
@ClassicOldSong
ClassicOldSong / MouseDelta.ahk
Last active June 4, 2025 02:26
AHK for enhancing GPD Pocket. Run pocket_enhancement.ahk. Feature: Esc + Mouse movenent = ScrollWheel, CapsLock + PrtScn = Region Screen Capture
; Instantiate this class and pass it a func name or a Function Object
; The specified function will be called with the delta move for the X and Y axes
; Normally, there is no windows message "mouse stopped", so one is simulated.
; After 10ms of no mouse movement, the callback is called with 0 for X and Y
Class MouseDelta {
State := 0
__New(callback){
;~ this.TimeoutFn := this.TimeoutFunc.Bind(this)
this.MouseMovedFn := this.MouseMoved.Bind(this)