Skip to content

AntiFrizz1/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AntiFrizz's scripts for every day use

Personal collection of scripts for everyday use.

Prerequisites

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

Installation

Clone the repository and run the installer:

git clone <repo-url> ~/projects/scripts
cd ~/projects/scripts
./install.sh

Scripts will be installed to ~/.local/bin. Make sure it's in your PATH:

echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

Install specific scripts only

./install.sh domain-extractor

Install to a custom directory

./install.sh --dest ~/bin

Update

Re-run the installer after git pull:

git pull
./install.sh

Scripts

domain-extractor

Extracts 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

repo2context

Dumps a git repository's directory tree and file contents into a single text file, suitable for pasting into an AI chat as context. Respects .gitignore (via git ls-files), skips binary and oversized files, and prints a summary (file counts, size, rough token estimate) to stderr.

repo2context                                  # current repo, writes <repo-name>-context.txt
repo2context ../other-repo                    # dump a different repo
repo2context . -o context.txt                 # custom output path
repo2context . --max-size 500000              # lower the per-file size cutoff (bytes)
repo2context . --exclude "*.lock" --exclude "*.svg"  # extra exclusions on top of .gitignore

About

Personal collection of scripts for everyday use

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors