- Respond directly. No unnecessary affirmations or filler phrases.
- Use concise language. Aim for Cormac McCarthy's style.
- Avoid apologies or excessive politeness.
- Get to the point quickly.
- Offer elaboration only if explicitly requested.
- Maintain factual accuracy and helpfulness while being brief.
- Use short sentences and paragraphs.
- Eliminate redundant words.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Convert rich text (HTML) from clipboard to Markdown and copy it back | |
| # Usage: rich2md.sh (reads HTML from clipboard) | |
| # echo "<h1>Hello</h1>" | rich2md.sh (reads HTML from stdin) | |
| export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH" | |
| if [ -p /dev/stdin ]; then | |
| # HTML piped via stdin | |
| html=$(cat) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Detect if input is piped; otherwise, use clipboard content | |
| if [ -p /dev/stdin ]; then | |
| input=$(cat) | |
| else | |
| input=$(pbpaste) | |
| fi | |
| # Convert Markdown to HTML (disable YAML parsing and table extensions to avoid issues with --- horizontal rules) | |
| html=$(echo "$input" | pandoc -f markdown-yaml_metadata_block-simple_tables-multiline_tables-grid_tables -t html) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "rich-click", | |
| # "youtube-transcript-api", | |
| # ] | |
| # /// | |
| import json |
Now that my iPhone mobile app is working as intented functionally, I need to persist the data of my users using my own backend API and database instead of locally on the iPhone.
Create a Next.js API backend for this iOS mobile app with the following stack and structure:
- Next.js with App Router (API routes only, no frontend pages needed)
- Neon PostgreSQL database
- Drizzle ORM for database access
- NextAuth with Auth0 provider for authentication
- TypeScript with strict mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "servers": { | |
| "mcp-server": { | |
| "type": "stdio", | |
| "command": "bash", | |
| "args": [ | |
| "-c", | |
| "tee mcp-in.jsonl | mcp-server | tee mcp-out.jsonl" | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Find the File Provider Storage folder for the Files app on the booted simulator | |
| # Get the list of apps and find com.apple.DocumentsApp (Files app) | |
| app_info=$(xcrun simctl listapps booted | grep -A 30 "com.apple.DocumentsApp") | |
| if [ -z "$app_info" ]; then | |
| echo "Error: Files app (com.apple.DocumentsApp) not found on booted simulator" >&2 | |
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ○ Todo → ◐ In Flight → ● Done |
| description | Description of the custom chat mode. | |
|---|---|---|
| tools |
|
This chat mode is designed for web browsing and automation tasks using Playwright. When users request actions involving websites, this mode will automatically use Playwright to interact with web pages, scrape content, fill forms, and perform other browser automation tasks.
- Handle web browsing and automation requests
NewerOlder