Initial commit: local_machine docs and scripts

This commit is contained in:
ahauimix
2026-03-14 20:03:57 +03:00
commit a39ef89125
85 changed files with 14500 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Устанавливает LaunchAgent: копирует plist в ~/Library/LaunchAgents/ и загружает.
# После этого туннель 127.0.0.1:1081 будет подниматься при каждом входе в систему.
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PLIST_NAME="com.hunab.telegram-socks.plist"
DST="$HOME/Library/LaunchAgents/$PLIST_NAME"
mkdir -p "$HOME/Library/LaunchAgents"
cp "$SCRIPT_DIR/$PLIST_NAME" "$DST"
launchctl load "$DST"
echo "Installed: $DST (loaded). Tunnel will start at login."
lsof -i :1081 -sTCP:LISTEN 2>/dev/null && echo "Port 1081 is listening." || echo "Check port 1081 in a few seconds: lsof -i :1081"