From 4708f79799a8fba7ec9df5298175ce26043c77e8 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Fri, 13 Jun 2025 20:58:17 +0530 Subject: [PATCH] feat: Add scripts for socks5 proxy --- darwin/shiro/services/autossh.nix | 2 +- scripts/autossh.sh | 1 + scripts/yt-dlp.sh | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 scripts/autossh.sh create mode 100755 scripts/yt-dlp.sh diff --git a/darwin/shiro/services/autossh.nix b/darwin/shiro/services/autossh.nix index 8dc7024e..6ede2e3a 100644 --- a/darwin/shiro/services/autossh.nix +++ b/darwin/shiro/services/autossh.nix @@ -4,7 +4,7 @@ sessions = [ { name = "mirai-socks"; - extraArguments = "-N -D 1080"; + extraArguments = "-o 'IdentityAgent \"/Users/servius/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock\"' -N -D 1080"; user = "fs0c131y"; } ]; diff --git a/scripts/autossh.sh b/scripts/autossh.sh new file mode 100755 index 00000000..be407634 --- /dev/null +++ b/scripts/autossh.sh @@ -0,0 +1 @@ +autossh -M 0 -N -D 1080 mirai diff --git a/scripts/yt-dlp.sh b/scripts/yt-dlp.sh new file mode 100755 index 00000000..cf68ce29 --- /dev/null +++ b/scripts/yt-dlp.sh @@ -0,0 +1,2 @@ +#!/bin/bash +yt-dlp --proxy socks5://127.0.0.1:1080 $@