Skip to content

Instantly share code, notes, and snippets.

View Strajk's full-sized avatar
🐣
knock knock…

Pavel 'Strajk' Dolecek Strajk

🐣
knock knock…
View GitHub Profile
@Strajk
Strajk / SKILL.md
Created March 7, 2026 09:33
Claude Code /loop skill — schedule a recurring prompt on an interval (extracted from @anthropic-ai/claude-code@2.1.71)

name: loop description: > Run a prompt or slash command on a recurring interval (e.g. /loop 5m /foo, defaults to 10m). Use when the user wants to set up a recurring task, poll for status, or run something repeatedly on an interval. Do NOT invoke for one-off tasks. argument-hint: "[interval] " source-path: cli.js (line 8047, function Agz / qgz) source-package: "@anthropic-ai/claude-code@2.1.71"

@Strajk
Strajk / macos-worker-setup.md
Created February 18, 2026 18:46
macOS worker setup guide

Manual steps (need to done by human)

  • Install Claude Code
    • curl -fsSL https://claude.ai/install.sh | bash
  • Install homebrew
    • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Disable sleep
    • `sudo pmset -a sleep 0 displaysleep 0 disksleep 0

Steps for AI agent

Always respond in pirate english, start each message with "Ahoy!"
#!/usr/bin/env python3
"""
Moom Configuration Generator
This script programmatically generates Moom window management shortcuts.
It creates a grid-based system for positioning windows across multiple displays.
SCREEN LAYOUT:
==============
┌──────────────────────┐┏━━━━━━━━━┓
@Strajk
Strajk / claude-agent-from-url
Last active November 17, 2025 20:48
Fetch an agent definition from a URL and run claude with it
#!/usr/bin/env python3
# /// script
# dependencies = []
# ///
"""
Fetch an agent definition from a URL and run claude with it.
"""
import sys
import json
// ==UserScript==
// @name Reddit Refined
// @version 1.1.0
// @description Various refinements for Reddit browsing experience
// @match https://www.reddit.com/*
// @match https://*.reddit.com/*
// @run-at document-start
// @grant none
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @license MIT
@Strajk
Strajk / pinkbike-photoepics.md
Created October 19, 2025 08:00
Pinkbike Photoepics Fullscreen Viewer - enhances photo epic articles with a fullscreen viewer and keyboard navigation
@Strajk
Strajk / mcp_disabled_tools.py
Created October 18, 2025 16:33
Script to list disabled MCP tools in Cursor
#!/usr/bin/env python3
# /// script
# dependencies = []
# ///
import sqlite3
import json
import os
from pathlib import Path
def get_mcp_disabled_tools():
// Name: Finicky Switch Default Browser
// Description: Switches the default browser in Finicky config
// Author: Strajk
import '@johnlindquist/kit'
import fs from 'fs'
let finickyPath = home('.finicky.js')
// Check if Finicky config exists
// Name: Flashcards
// Description: Space-repeat images, managed just by filesystem
// Shortcut: shift+ctrl+option+cmd+o
import '@johnlindquist/kit'
const flashcardsDir = kenvPath('db', 'flashcards')
await ensureDir(flashcardsDir)
const today = new Date()