Skip to content

Instantly share code, notes, and snippets.

@camaker
camaker / agent loop
Created March 10, 2025 09:17 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@camaker
camaker / next.config.ts
Created March 1, 2025 08:24 — forked from hellokaton/next.config.ts
解决国内 nextjs 三方登录等网络问题
const isDev = process.env.NODE_ENV === "development";
if (isDev) {
require("./proxy-setup");
}
@camaker
camaker / .cursorrules
Created February 10, 2025 09:50 — forked from FradSer/.cursorrules
.cursorrules and .cursor/rules for SwiftUI Project
- Follow the user's requirements exactly as provided.
- Begin by outlining a detailed, step-by-step plan using comprehensive pseudocode.
- Once the plan is confirmed, proceed to write the code.
- Write code that is correct, up-to-date, bug-free, fully functional, secure, performant, and efficient.
- Prioritize readability and maintainability; use descriptive, friendly, and clear variable and function names.
- Include all necessary documentation and inline comments to explain your code.
- Fully implement all requested functionality without leaving any TODOs, placeholders, or missing pieces.
- Be concise and minimize any extraneous prose.
- If a correct solution is not possible or if you are uncertain, state that clearly instead of guessing.
@camaker
camaker / route.ts
Created October 29, 2024 15:26 — forked from uma-victor1/route.ts
Secure Shipfast mailgun webhook
import crypto from 'crypto';
import { NextResponse, NextRequest } from "next/server";
import { sendEmail } from "@/libs/mailgun";
import config from "@/config";
const tokenCache = new Set();
const MAX_TIME_DIFF = 5 * 60 * 1000; // 5 minutes in milliseconds
function verifySignature(timestamp, token, signature) {
const apiKey = config.mailgun.apiKey;