Skip to content

Instantly share code, notes, and snippets.

View Raidus's full-sized avatar

Wilhelm R. Raidus

View GitHub Profile
You are an expert AI workflow engineer specializing in the Cursor IDE. Your purpose is to analyze a user's codebase and create a comprehensive ecosystem of Cursor Project Rules and documentation to enforce best practices, standardize patterns, and encode project-specific knowledge. You will create a self-improving system where the AI's context and understanding of the project grows over time.
You will follow a strict, multi-step process:
**Phase 1: FORENSIC ANALYSIS & DISCOVERY**
Your analysis must be deep and methodical. You are not just scanning; you are investigating to find the project's soul. Follow this checklist precisely:
1. **Dependency & Tech Stack Forensics:**
* **Identify Core Frameworks and Libraries:** First, identify the primary frameworks (e.g., Next.js, Django) and key libraries by analyzing `package.json`, `requirements.txt`, etc..
* **Check for Deprecated Libraries:** Actively search for the use of outdated or deprecated libraries where modern alternatives exist. A key goal is t
@tzmartin
tzmartin / agent.md
Created February 26, 2025 17:18
Cursor Rules: "Create a global agent rule to run a bash script every time new files are created" - @iannuttall
@gsans
gsans / gist:e40451bde73bf2d0fc3b1e74fb4ee8d8
Created June 27, 2024 22:49
Sonnet 3.5 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
@kallebysantos
kallebysantos / App.tsx
Last active May 12, 2025 03:33
Running Local AI models with FastAPI and Vercel AI SDK
import "./App.css";
import { useEffect, useState } from "react";
import { useCompletion } from "ai/react";
function App() {
const [apiResponse, setApiResponse] = useState("");
useEffect(() => {
fetch("/api/reply?value=Hello from React App!")
.then((response) => response.json())
@Hansimov
Hansimov / frp-proxy.md
Last active July 5, 2025 15:16
Use FRP proxy to forward network traffic

Background

  • Machine PRIVATE has limited access to public network.
  • Machine PUBLIC has full access to publick network.

Target

  • Enable PRIVATE to visit public network with same access with PUBLIC.

Solution

Download related version of FRP, both in PRIVATE and PUBLIC:

@blackrez
blackrez / example_thread.py
Created February 6, 2022 19:39
duckdb with thread
from multiprocessing import connection
from time import sleep, perf_counter
from threading import Thread
import duckdb
con = duckdb.connect(database=':memory:')
con.execute("CREATE TABLE items(item VARCHAR, value DECIMAL(10,2), count INTEGER)")
con.execute("INSERT INTO items VALUES ('jeans', 20.0, 42), ('hammer', 42.2, 4242)")
@sdesalas
sdesalas / Async.gs
Last active November 5, 2025 23:43
Asynchronous execution for Google App Scripts (gas)
/*
* Async.gs
*
* Manages asyncronous execution via time-based triggers.
*
* Note that execution normally takes 30-60s due to scheduling of the trigger.
*
* @see https://developers.google.com/apps-script/reference/script/clock-trigger-builder.html
*/
@tolgamorf
tolgamorf / ubuntu-server-setup.sh
Last active January 7, 2022 05:13
Ubuntu server setup: Miniconda + Node.js + npm + PM2
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install -y nodejs
sudo npm install pm2@latest -g
# pm2 startup
sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u ubuntu --hp /home/ubuntu
sudo chown ubuntu:ubuntu /home/ubuntu/.pm2 /home/ubuntu/.pm2/rpc.sock /home/ubuntu/.pm2/pub.sock
@syntaqx
syntaqx / cloud-init.yaml
Last active November 20, 2025 12:33
cloud init / cloud config to install Docker on Ubuntu
#cloud-config
# Option 1 - Full installation using cURL
package_update: true
package_upgrade: true
groups:
- docker
system_info:
require('dotenv').config()
const cors = require('cors')
const bodyParser = require('body-parser')
const express = require('express')
const expressJwt = require('express-jwt')
const cookieSession = require('cookie-session')
const jwt = require('jsonwebtoken')
const passport = require('passport')
const GoogleStrategy = require('passport-google-oauth20').Strategy
const jwtSecret = Buffer.from('Zn8Q5tyZ/G1MHltc4F/gTkVJMlrbKiZt', 'base64')