Skip to content

Instantly share code, notes, and snippets.

@armamini
armamini / README.md
Created December 12, 2025 16:35
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
@armamini
armamini / iplf.go
Created October 26, 2024 08:33
IP Address and Location Finder in Go
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net"
"net/http"
)
@armamini
armamini / example_csaf.json
Created September 10, 2024 09:48
CSAF Example
{
"document": {
"category": "csaf_security_advisory",
"title": "Example Security Advisory",
"csaf_version": "2.0",
"tracking": {
"id": "CSAF-2023-0001",
"status": "final",
"version": "1.0",
"revision_history": [