Skip to content

Instantly share code, notes, and snippets.

View R44VC0RP's full-sized avatar
🚩
creating a dangerous AI

Ryan Vogel R44VC0RP

🚩
creating a dangerous AI
View GitHub Profile
@R44VC0RP
R44VC0RP / cf-internal-app.md
Last active May 23, 2026 01:50
Internal Cloudflare App Skill
name cloudflare-internal-app
description Use when creating or advising on quick internal apps with Cloudflare Workers, D1, Wrangler, Bun, custom domains, cron triggers, Worker secrets, or lightweight server-rendered dashboards like x-rank.

Cloudflare Internal App Stack

Use this skill when the user wants a small internal app that needs simple hosting, a database, scheduled jobs, custom domains, secrets, or admin endpoints without running a server or Kubernetes deployment.

Default Stack

  • Runtime: Cloudflare Workers
  • Language: TypeScript
  • Tooling: Bun plus Wrangler
@R44VC0RP
R44VC0RP / cursor-ptt.sh
Last active March 27, 2026 17:57
Allows you to overwrite your cursor tab key to use it as a PTT key for your favorite dictation software.
#!/bin/bash
# Remap USB Tab Button to F20 (for PTT use with Superwhisper, Discord, etc.)
# Works with generic USB tab key (VendorID: 0x8808, ProductID: 0x6600)
VID="0x8808"
PID="0x6600"
PLIST="$HOME/Library/LaunchAgents/com.user.usb-button-remap.plist"
# Check if device is connected
if ! hidutil list | grep -q "0x8808.*0x6600"; then
echo "ERROR: USB button not detected. Plug it in and try again."
exit 1
```
Brought ~/.local/share/opencode/opencode.db back into sync with the current Drizzle schema and repo migrations.
- Backed up the database first to ~/.local/share/opencode/opencode.db.sync-backup-20260309T134117Z.
- The DB had drifted: __drizzle_migrations contained two stale applied entries (20260228203230_blue_harpoon, 20260303231226_add_workspace_fields) and was missing the current 20260227213759_add_session_workspace_id.
- The live schema also had the legacy workspace shape and an extra account table, while current Drizzle expects workspace.config in packages/opencode/src/control-plane/workspace.sql.ts:5 and session.workspace_id in packages/opencode/src/session/session.sql.ts:11.
- I rebuilt workspace to the current shape, removed the legacy account table, and corrected the migration journal. The affected legacy tables were empty, so no user rows were lost.
- Verified the final state: repo migration folders now match applied migrations exactly, workspace.config exists, account is gone, and session_works
#!/usr/bin/env bash
# solo-mcp: Stateless CLI for Solo process manager via MCP protocol
# Usage:
# solo-mcp list-projects
# solo-mcp list [project_id]
# solo-mcp status <project_id> <process_name>
# solo-mcp restart <project_id> <process_name>
# solo-mcp start <project_id> <process_name>
# solo-mcp stop <project_id> <process_name>
# solo-mcp restart-all <project_id>
description Extract non-obvious learnings from session to AGENTS.md files to build codebase understanding

Analyze this session and extract non-obvious learnings to add to AGENTS.md files.

AGENTS.md files can exist at any directory level, not just the project root. When an agent reads a file, any AGENTS.md in parent directories are automatically loaded into the context of the tool read. Place learnings as close to the relevant code as possible:

  • Project-wide learnings → root AGENTS.md
  • Package/module-specific → packages/foo/AGENTS.md
@R44VC0RP
R44VC0RP / sophos.md
Created January 24, 2026 18:02
Sophos (Second Opinion) Agent

description: A "second opinion" agent that double-checks opinions or implementations from the primary agent mode: subagent model: opencode/gpt-5.2-codex tools: write: false edit: false bash: false permission: edit: deny

```
You are a powerful agentic AI coding assistant powered by Cursor. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
Each time the USER sends a message, some information may be automatically attached about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message.
<communication>
1. Format your responses in markdown. Use backticks to format file, directory, function, and class names.
#!/usr/bin/env bun
/**
* ============================================================
* PROOF: Anthropic is specifically blocking "OpenCode"
* in Claude Code OAuth system prompts
* ============================================================
*
* Video covering this script here: https://www.youtube.com/watch?v=G9YX6StP2-M
*
* This script demonstrates that Anthropic has specifically blocked
@R44VC0RP
R44VC0RP / Status Page Breakdown
Last active January 12, 2026 20:13
Incident vs Atlassian
## Atlassian Statuspage
It has a customizable, status page where visitors can view real-time incident status and subscribe for updates via email, SMS, webhook, or integrations like Slack and Microsoft Teams.
Features include:
- incident templates
- component status displays
- historical uptime reports
- REST API access
@R44VC0RP
R44VC0RP / validate-domain.ts
Last active November 26, 2025 08:48
RFC Compliant domain verification. (now using tldts)
/**
* RFC-compliant domain validation using the Public Suffix List
* Properly handles multi-level TLDs (e.g., .co.uk, .com.au)
* Works on both client and server side
*/
import { parse } from 'tldts'
export interface DomainValidationResult {
isValid: boolean