Skip to content

Instantly share code, notes, and snippets.

View armamini's full-sized avatar
🦇
Haha, u have found Batman

Arman armamini

🦇
Haha, u have found Batman
View GitHub Profile
@armamini
armamini / llm-wiki.md
Created May 14, 2026 15:43 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@armamini
armamini / xrep.sh
Last active May 3, 2026 08:47
Smart Recursive Search Tool (xrep)
#!/bin/bash
# xrep by @armamini — colorful smart recursive search tool
# ---------- Colors ----------
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
CYAN='\033[0;36m'
@armamini
armamini / README.md
Last active June 1, 2026 05:03
Implement a reliable connection over Websocket via Cloudflare Workers

ساخت با Cloudflare Workers

این راهنما به شما کمک می‌کند تا بدون هزینه و سرور مجازی، یک کانفیگ شخصی با سرعت بالا و پینگ مناسب روی زیرساخت کلادفلر بسازید. (V2Ray over Websocket)


📋 پیش‌نیازها

  1. اکانت Cloudflare: نیاز به یک ایمیل موقت دارید.
  2. کد اسکریپت: کدی که باید در ورکر قرار دهید (موجود در فایل‌های این مخزن).
  3. UUID: یک کد یکتا که به عنوان رمز عبور عمل می‌کند.
@armamini
armamini / README.md
Created December 8, 2025 14:42
A script for generating unique usernames

Preferred Installation

chmod +x idgen.sh && \
echo "alias idgen='$(pwd)/idgen.sh'" >> ~/.zshrc && \
source ~/.zshrc

Usage

idgen
@armamini
armamini / dedup.py
Created November 13, 2025 12:48
ULP deduplicate tool
#!/usr/bin/env python3
import re
from collections import OrderedDict
def extract_credentials(line):
pattern = r'([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}):(.+)$'
match = re.search(pattern, line.strip())
if match:
@armamini
armamini / cors-checker.go
Created June 6, 2025 09:31
CORS Checker
package main
import (
"flag"
"fmt"
"net/http"
"net/url"
"os"
"strings"
"time"
@armamini
armamini / agent.sh
Created January 30, 2025 08:12
Microservices Management Script - This script helps to start and stop multiple microservices using tmux and Docker Compose for running backing services.
#!/bin/bash
# @armamini
SESSION="microservices"
function start_services() {
echo -e "⌛️ Starting all microservices in tmux session '$SESSION'...\n"
docker compose -f ./compose.yml up -d > /dev/null 2>&1
echo "✅ Docker compose services started."
@armamini
armamini / addInBashrc.sh
Last active December 7, 2024 14:56
Make temp file easily
alias tmp='tmpfile=$(mktemp ~/Temp/tempfile.XXXXXX) && { echo "# Temporary file: $tmpfile"; echo ""; } > "$tmpfile" && vi "$tmpfile"'
alias ltmp='[ -f "$tmpfile" ] && vi "$tmpfile" || echo "No temporary file found."'
@armamini
armamini / addresses.txt
Created November 26, 2024 07:03
Fetch PIP packages, freely
Host Address
https://pypi.tuna.tsinghua.edu.cn https://pypi.tuna.tsinghua.edu.cn/simple/
https://mirrors.aliyun.com https://mirrors.aliyun.com/pypi/simple/
https://pypi.mirrors.ustc.edu.cn https://pypi.mirrors.ustc.edu.cn/simple/
https://repo.huaweicloud.com https://repo.huaweicloud.com/repository/pypi/simple/
http://pypi.douban.com http://pypi.douban.com/simple/
http://pypi.sdutlinux.org http://pypi.sdutlinux.org/
http://pypi.hustunique.com http://pypi.hustunique.com/
@armamini
armamini / tpt.txt
Created November 20, 2024 08:12
Burp TLS Pass Through list
.*\.google\.com
.*\.google\.*
.*\.gstatic\.com
.*\.googleapis\.com
.*\.google-analytics\.com
.*\.googletagmanager\.com
.*\.googletagservices\.com
.*\.google\.co.*
.*\.doubleclick\.net
.*\.googleadservices\.com