From dfdef1c493fc6f4e33cd32eaa6f5b8a260a73e5e Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 4 Mar 2026 15:06:34 +0300 Subject: [PATCH] feat(bootstrap): add additional packages for installation and enhance proxy aliases --- bootstrap.sh | 2 +- configs/.exclude-ip.txt | 19 +++++++++++++++++++ zsh/.config/zsh/config/aliases.zsh | 5 +++-- 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 configs/.exclude-ip.txt diff --git a/bootstrap.sh b/bootstrap.sh index 11dde25..c8012c2 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -PACKAGES=("zsh" "tmux" "alacritty" "stow") +PACKAGES=("zsh" "tmux" "alacritty" "stow" "sshuttle" "eza" "zoxide") # Detect package manager and install. detect_and_install() { diff --git a/configs/.exclude-ip.txt b/configs/.exclude-ip.txt new file mode 100644 index 0000000..b20297f --- /dev/null +++ b/configs/.exclude-ip.txt @@ -0,0 +1,19 @@ +192.168.1.0/24 +157.22.231.198 +5.253.61.60 +194.107.17.137 +3.173.21.63 +85.143.112.71 +87.250.250.50 +140.82.121.3 +213.59.253.7 +87.250.250.22 +85.143.112.110 +87.250.250.5 +185.71.67.230 +151.101.129.140 +185.173.80.30 +178.130.128.27 +87.240.132.78 +85.143.112.40 +5.255.255.77 diff --git a/zsh/.config/zsh/config/aliases.zsh b/zsh/.config/zsh/config/aliases.zsh index 0995e97..2c6d2d0 100644 --- a/zsh/.config/zsh/config/aliases.zsh +++ b/zsh/.config/zsh/config/aliases.zsh @@ -58,8 +58,8 @@ alias ports='netstat -tulanp' alias localip="ip -4 addr show | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | grep -v 127.0.0.1" # Proxy -alias proxy-on='export http_proxy="http://127.0.0.1:8118" https_proxy="http://127.0.0.1:8118" HTTP_PROXY="http://127.0.0.1:8118" HTTPS_PROXY="http://127.0.0.1:8118" && echo "Proxy enabled"' -alias proxy-off='unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY && echo "Proxy disabled"' +alias proxy-on='sshp-start && export http_proxy="http://127.0.0.1:1080" https_proxy="http://127.0.0.1:1080" HTTP_PROXY="http://127.0.0.1:1080" HTTPS_PROXY="http://127.0.0.1:1080" && echo "Proxy enabled"' +alias proxy-off='sshp-stop && unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY && echo "Proxy disabled"' alias proxy-status='env | grep -i proxy' @@ -169,3 +169,4 @@ alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date alias lidon='sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target' alias lidoff='sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target' # alias gemini='NODE_NO_WARNINGS=1 npx @google/gemini-cli' +alias sshvpn='sshuttle --dns -r fl-vps 0/0 -X ~/.dotfiles/configs/.exclude-ip.txt'