Skip to content

Instantly share code, notes, and snippets.

View knowsuchagency's full-sized avatar
💭
hustlin'

Stephan Fitzpatrick knowsuchagency

💭
hustlin'
View GitHub Profile
@knowsuchagency
knowsuchagency / mise.toml
Created November 10, 2025 08:22
scrape task recipe
[tasks.scrape]
description = "scrape and extract readable content from a URL using readability-cli"
usage = '''
arg "<url>" help="URL to scrape and extract readable content from"
'''
run = "curl -s \"$usage_url\" | npx -y mozilla-readability-cli \"$usage_url\" | uvx html2text --ignore-links"
@knowsuchagency
knowsuchagency / dokploy-sshfs-setup.md
Created November 1, 2025 21:23
Mount Remote Server via SSHFS on macOS - Complete Setup Guide

Mount Remote Server (dokploy) via SSHFS on macOS

This guide documents how to mount a remote server's directory as a network drive on macOS using SSHFS.

Prerequisites

  • macOS (tested on macOS Sequoia)
  • SSH access to remote server configured in ~/.ssh/config
  • Homebrew installed
@knowsuchagency
knowsuchagency / dokploy-webhook-testing.md
Created October 26, 2025 21:37
Testing Dokploy webhook endpoints manually

Testing Dokploy Webhook Endpoints

Problem

When attempting to manually test a Dokploy webhook endpoint for auto-deployment, the API returns a "Branch Not Match" error:

{
    "message": "Branch Not Match"
}
@knowsuchagency
knowsuchagency / requirements.md
Created October 8, 2025 21:39
Requirements Gathering
allowed-tools description
Write
TodoWrite
Collaboratively gather requirements through conversation and generate a requirements.md document

Step 1: Initial feature understanding

  1. Acknowledge the user's feature request
@knowsuchagency
knowsuchagency / layout.md
Created July 22, 2025 00:45
Claude Code Slash Commands
allowed-tools description
Glob
Grep
Read
TodoWrite
Task
You are a wireframe architect focused on creating clear ASCII wireframes and mapping navigation flows for web applications within a `layout.md`.
@knowsuchagency
knowsuchagency / chat.py
Created May 22, 2025 21:43
OpenAI Agents SDK LiteLLM Integration Example
# /// script
# requires-python = ">=3.12"
# dependencies = ["openai-agents[litellm]", "gradio"]
# ///
import os
import gradio as gr
from typing import List, Dict, AsyncGenerator
from agents import Agent, Runner
{"name":"embedding-data","document":{"backgroundColor":"#ffffff","slides":[{"id":"1739814262631","elements":[{"id":"frame","type":"rectangle","x":0,"y":0,"width":1080,"height":1080,"angle":0,"strokeColor":"#228be6","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":1,"strokeStyle":"dashed","roughness":0,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":500058849,"version":1,"versionNonce":1663891759,"isDeleted":false,"boundElements":null,"updated":1739814262631,"link":null,"locked":true},{"id":"rhSx98ZbcHp3gkwYdlD8z","type":"image","x":89.63666757641909,"y":79.70387554585147,"width":399.06522925764193,"height":399.06522925764193,"angle":0,"strokeColor":"transparent","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":2,"strokeStyle":"solid","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"roundness":null,"seed":22678410,"version":85,"versionNonce":1486123466,"isDeleted":false,"boundElements":null,"updated":1739818052621,"link":null,"locked":false,"status"
@knowsuchagency
knowsuchagency / fine.py
Last active August 6, 2024 04:08
gradio render example
import gradio as gr
with gr.Blocks() as demo:
subscribed = gr.State(False)
update_subscription_btn = gr.Button("Update Subscription")
@update_subscription_btn.click(inputs=subscribed, outputs=subscribed)
def update_subscription(subscribed):
@knowsuchagency
knowsuchagency / map.md
Last active July 16, 2024 22:12
nix to powershell
Unix Command PowerShell Equivalent Description
pwd Get-Location or $PWD Print working directory
ls Get-ChildItem or dir List directory contents
cd Set-Location or cd Change directory
mkdir New-Item -ItemType Directory or mkdir Create a new directory
touch New-Item -ItemType File Create a new file
rm Remove-Item or del Remove a file
rm -r Remove-Item -Recurse Remove a directory and its contents
cp Copy-Item or copy Copy a file
@knowsuchagency
knowsuchagency / flit-publish.yml
Created May 27, 2024 22:35
Publish to pypi with flit
name: Publish to PyPI
on:
push:
branches:
- main
jobs:
pypi-publish:
name: upload release to PyPI