Skip to content

Instantly share code, notes, and snippets.

View fqd511's full-sized avatar
:octocat:
breathing

v fqd511

:octocat:
breathing
View GitHub Profile
@fqd511
fqd511 / claude_3.5_sonnet_artifacts.xml
Created February 20, 2025 15:05 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times
@fqd511
fqd511 / bash
Created May 8, 2022 08:13
macos sys override script
# take screenshots as jpg (usually smaller size) and not png
defaults write com.apple.screencapture type jpg
# do not open previous previewed files (e.g. PDFs) when opening a new one
defaults write com.apple.Preview ApplePersistenceIgnoreState YES
# show Library folder
chflags nohidden ~/Library
# show hidden files
@fqd511
fqd511 / js
Created March 19, 2022 15:17
Cloudflare Worker proxy script
const redirectMap = new Map([
['notion', 'api.notion.com']
]);
function getRealUrl(request) {
const requestURL = new URL(request.url);
const path = requestURL.pathname.split('/')[1];
const target = redirectMap.get(path);
if(target){
requestURL.hostname = target
@fqd511
fqd511 / plink-plonk.js
Created April 10, 2020 10:05 — forked from tomhicks/plink-plonk.js
Listen to your web pages