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 / 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()
// Name: Speed Up Video
// Description: Speed up a video, optionally keeping the first and last X seconds at original speed
// Author: Strajk
import '@johnlindquist/kit';
// Get the video file path, either from selection or prompt
import { Choice } from '@johnlindquist/kit';
const videoPath = await getSelectedFile() || await path({ placeholder: 'Select a video file' });
# Day 1 - Monday
* Spent first hour debugging a prod issue - turned out to be an env var mismatch
* Stand-up meeting ran long due to heated discussion about switching from REST to GraphQL
* Found three security vulnerabilities in deps audit - spent 2 hours updating pkgs
* Wrote docs for the new auth middleware - nobody will read them anyway
* Battled with TypeScript types for a recursive data structure
* Merged 5 PRs that were collecting dust in review
* Coffee machine broke - considered declaring technical bankruptcy
* Actually got into flow state for 2 hours - wrote elegant solution for data sync
* Discovered a memory leak in prod - left it for tomorrow

BananaCrypt Documentation


Overview

BananaCrypt is a revolutionary encryption library inspired by the peeling complexity of bananas. It uses the potassium levels of bananas as the base for its cryptographic algorithms. Perfect for developers who want to keep their secrets safe and fruity.


@Strajk
Strajk / gist:2e7d57e65e69365e02567d103f812496
Created January 5, 2025 16:30
BananaCrypt Documentation
### **BananaCrypt Documentation**
* * *
## **Overview**
BananaCrypt is a revolutionary encryption library inspired by the peeling complexity of bananas. It uses the potassium levels of bananas as the base for its cryptographic algorithms. Perfect for developers who want to keep their secrets safe and fruity.
* * *