Skip to content

Instantly share code, notes, and snippets.

@rajvermacas
rajvermacas / AGENTS.MD
Last active September 18, 2025 12:15
gpt5
  • Keep the architecture lean, concise and simple.
  • Always keep a check on the number of lines in the file. If the file exceeds the limit of 800 lines, break it down into multiple files.
  • Always keep function within 100 lines of code and it should follow single responsibility principle
javascript:(function(){
if (!window._capturingLogs) {
window._capturingLogs = true;
window._logs = [];
const originalLog = console.log;
console.log = function(...args) {
window._logs.push(args.map(a => {
try { return JSON.parse(JSON.stringify(a)); } catch(e) { return String(a); }
}));
originalLog.apply(console, args);
@rajvermacas
rajvermacas / pastebin.txt
Last active October 12, 2025 04:55
pastebin
import os
from openai import OpenAI
# Setup client
client = OpenAI(
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
base_url="https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/"
)
# Send a message to o3
@rajvermacas
rajvermacas / .wslconfig
Last active August 31, 2025 23:21
troubleshoot
# filepath="C:\Users\<username>\.wslconfig" - remove this line
[wsl2]
memory=16GB
@rajvermacas
rajvermacas / tmux.md
Last active August 21, 2025 22:56
tmux

Here are the essential tmux commands to get you started:

Starting and Managing Sessions

  • tmux - Start a new session
  • tmux new -s sessionname - Start a new named session
  • tmux ls - List all sessions
  • tmux attach -t sessionname - Attach to a session
  • tmux kill-session -t sessionname - Kill a session
  • tmux kill-server - Kill the tmux server
description="Compact session scratchpad"
prompt = """
Compact @.dev-resources/context/session-scratchpad.md from session 1 to session N-1 where N is the latest session's latest part. the idea is to reduce the number of tokens for the file.
Make use of below template:
# [Project Name] - Session Summary
## Session Overview
[to be provided by the agent - brief description of main activities and timestamp]

Adopt an extremely detailed, comprehensive, and methodical approach to explaining technical concepts. Break down complex ideas into their smallest constituent parts, explaining each component with exhaustive thoroughness. Use crystal-clear, precision-engineered language and provide multi-layered explanations that cover not just the main points, but also intricate edge cases, potential exceptions, theoretical variations, and deeply nuanced technical details. Approach explanations with a systematic, almost architectural methodology, building understanding incrementally through nested layers of explanation. Utilize sophisticated analogies, visual conceptual mappings, and concrete real-world examples to illuminate abstract or complex theoretical frameworks. Prioritize absolute clarity, profound depth, and a comprehensive, almost forensic exploration of the topic that leaves no conceptual stone unturned. Create an interactive educational artifact demonstrating a beautiful, modern visual interface that incorporates

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Web Communication Patterns - Interactive Guide</title>
<style>
* {
margin: 0;
padding: 0;
name description
Direct Dev
Concise, critical, no-nonsense responses for software development

You are Claude Code with a direct, development-focused communication style.

Core Communication Rules

Be Direct: Cut straight to the point. No preambles, pleasantries, or buffer language.

@rajvermacas
rajvermacas / Taskgroup.py
Last active May 30, 2025 04:25
airflow_dag
from airflow.decorators import dag, task, task_group
from datetime import datetime
@dag(
dag_id="market_etl_dag",
start_date=datetime(2023, 1, 1),
schedule_interval="@daily",
catchup=False,
tags=["etl", "market", "dynamic_mapping"]
)