Skip to content

Instantly share code, notes, and snippets.

View sae13's full-sized avatar

Saeb sae13

View GitHub Profile
@sae13
sae13 / phpmyadmin-sample.sh
Last active August 18, 2024 10:58
traefik sample
docker run --rm --name phpmyadmin --label traefik.http.routers.phpmyadmin.rule=Host\(\`phpmyadmin.local\`\) \
--net traefik phpmyadmin:latest
@sae13
sae13 / .xonshrc
Created September 14, 2024 04:57
my xonsh xonfigs
xontrib load abbrevs
execx($(atuin init xonsh))
execx($(starship init xonsh))
abbrevs['xxh']='pipx run --spec xxh-xxh xxh +s xonsh +if'
@sae13
sae13 / tun2proxy.sh
Last active July 15, 2025 08:07
idea account copiliot account through proxy
#!/bin/bash
mkdir -p $HOME/App/tun2proxy >/dev/null 2>&1
cd $HOME/App/tun2proxy || true
aria2c -x 16 -k1m -s 16 -c "https://github.com/tun2proxy/tun2proxy/releases/latest/download/tun2proxy-x86_64-unknown-linux-gnu.zip"
7z x -aoa tun2proxy-x86_64-unknown-linux-gnu.zip
sudo ip tuntap add name tun0 mode tun
sudo ip link set tun0 up
# Define array of domains
domains=(
@sae13
sae13 / delete_git_artifacts.py
Created April 20, 2025 14:17
delete git artifacts
import httpx
git_address = 'https://gitlab.com'
token = 'glpat-N_Akkbhqgs8pqvX'
header = {"Authorization": f'Bearer {token}'}
client = httpx.Client(headers=header, timeout=100)
commerce_project_id = 82
sales_project_id = 7