Skip to content

Instantly share code, notes, and snippets.

View WMAL's full-sized avatar
🔥
::0

Warith AL Maawali WMAL

🔥
::0
View GitHub Profile
@ipenywis
ipenywis / cursor-memory-bank-rules.md
Last active July 27, 2025 17:39
Cursor Memory Bank

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
@yifanzz
yifanzz / code-editor-rules.md
Created December 17, 2024 00:01
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
#!/bin/bash
if [ "$EUID" -ne 0 ]; then echo "Please run as root"; exit; fi
REMOTE_SERVER="x.x.x.x"
INBOUND_ADDR="127.0.0.1"
INBOUND_PORT="10808"
TPROXY_CHAIN="XRAY_TPROXY"
GATEWAY_CHAIN="XRAY_GATEWAY"
@SaeedDev94
SaeedDev94 / #tunnel-xray
Last active December 27, 2024 12:15
Asuswrt-Merlin: Tunnel clients with XTLS/Xray-core
#!/bin/sh
REMOTE_SERVER="x.x.x.x"
INBOUND_PORT="10808"
HANDLE_IPV6="1"
TPROXY_CHAIN="XRAY_TPROXY"
GATEWAY_CHAIN="XRAY_GATEWAY"
EXCLUDE_MARK="5"
@SaeedDev94
SaeedDev94 / xray2vpn.sh
Last active July 15, 2025 07:08
Linux xray tun2socks routing helper
#!/bin/bash
if [ "$EUID" -ne 0 ]; then echo "Please run as root"; exit; fi
GATEWAY=$(ip route | awk '/default/ {print $3}')
GATEWAY_V6=$(ip -6 route | awk '/default/ {print $3}')
INTERFACE=$(ip route | awk '/default/ {print $5}')
XRAY_EXE="/opt/xray/xray"
XRAY_CONFIG="/path/to/config.json"
@SaeedDev94
SaeedDev94 / haproxy.cfg
Created July 28, 2023 07:27 — forked from cmer/haproxy.cfg
Simple, no bullshit TCP port forwarding using HAProxy
listen l1
bind 0.0.0.0:443
mode tcp
timeout connect 4000
timeout client 180000
timeout server 180000
server srv1 host.example.com:9443
@SaeedDev94
SaeedDev94 / socks2vpn.sh
Last active June 5, 2025 10:02
Linux tun2socks routing helper
#!/bin/bash
if [ "$EUID" -ne 0 ]; then echo "Please run as root"; exit; fi
GATEWAY=$(ip route | awk '/default/ {print $3}')
INTERFACE=$(ip route | awk '/default/ {print $5}')
RESOLVE_CONF=$(cat /etc/resolv.conf)
SOCKS_SCHEME="socks5"
SOCKS_ADDRESS="127.0.0.1"