Personal collection of scripts for everyday use.
The following tools must be installed before using these scripts:
-
uv — Python package and project manager. Used to run scripts with inline dependencies.
Install:
curl -LsSf https://astral.sh/uv/install.sh | sh
Clone the repository and run the installer:
git clone <repo-url> ~/projects/scripts
cd ~/projects/scripts
./install.shScripts will be installed to ~/.local/bin. Make sure it's in your PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc./install.sh domain-extractor./install.sh --dest ~/binRe-run the installer after git pull:
git pull
./install.shExtracts unique root domains from a .har file. Supports output formats for Nekoray (default), Hysteria2, and JSON. Without --save, output is printed to stdout; with --save, it writes to a file (default: unique_root_domains.json).
domain-extractor traffic.har # nekoray format, stdout
domain-extractor traffic.har -f json # json format, stdout
domain-extractor traffic.har -f hysteria2 --save # hysteria2, saved to unique_root_domains.json
domain-extractor traffic.har -f nekoray --save -o out.txt # nekoray, saved to out.txt