Skip to content

Instantly share code, notes, and snippets.

View monarchmaisuriya's full-sized avatar
🎯
Focusing

Monarch Maisuriya monarchmaisuriya

🎯
Focusing
View GitHub Profile
@monarchmaisuriya
monarchmaisuriya / .zshrc
Created January 16, 2026 09:47
Claude Based Code Review
# ==============================================
# === Start of Claude Diff-Based Code Review ===
# ==============================================
# Configuration (customize these)
CLAUDE_REVIEW_ENABLED="${CLAUDE_REVIEW_ENABLED:-true}"
CLAUDE_REVIEW_MAX_DIFF_LINES="${CLAUDE_REVIEW_MAX_DIFF_LINES:-5000}"
CLAUDE_REVIEW_SKIP_PATTERN="${CLAUDE_REVIEW_SKIP_PATTERN:-\[skip-review\]|\[no-review\]}"
CLAUDE_REVIEW_AUTO="${CLAUDE_REVIEW_AUTO:-false}" # Set to true to skip confirmation
@monarchmaisuriya
monarchmaisuriya / .zshrc
Created November 26, 2025 21:07
Gemini Based Doc Generator
# ==============================================
# === Start of Gemini Diff-Based Docs Generator ===
# ==============================================
# ---- Documentation Generation Prompt ----
__gemini_docs_prompt=$(
cat <<'EOF'
You are generating technical documentation from code changes.
Produce clear, maintainable, developer-friendly documentation.
@monarchmaisuriya
monarchmaisuriya / web_search.py
Created October 30, 2025 05:36
Search Web Using SearXNG
"""
title: Web Search using SearXNG and Scrape first N Pages
Usage:
from web_search import Tools
import asyncio
async def main():
tools = Tools()
# Search and scrape top results
@monarchmaisuriya
monarchmaisuriya / .zshrc
Last active January 7, 2026 08:30
Gemini Based Code Review Hook ( Bash, Zsh)
# ==============================================
# === Start of Gemini Diff-Based Code Review ===
# ==============================================
# Detailed review prompt (multi-line, neatly formatted)
__gemini_prompt_text=$(
cat <<'EOF'
Thoroughly and critically review the proposed changes. Identify potential issues such as edge cases and failure modes, syntax or compilation errors, logical flaws, unintended side effects, performance bottlenecks, scalability risks, and violations of coding standards or architectural intent.
Focus especially on complex, non-obvious, or high-impact logic; input validation boundaries; state management; and any change that could affect correctness, reliability, stability, or scalability. Provide a clear, structured, and actionable review report without modifying the code.
Evaluate the changes against the following principles:
@monarchmaisuriya
monarchmaisuriya / index.php
Last active January 30, 2024 11:27
Custom XAMPP Landing Page with useful links
<html>
<head>
<title>XAMPP Home</title>
</head>
<style type="text/css">
body {
background: #fcfcfc;
color: #111;