diff options
author | terminaldweller <thabogre@gmail.com> | 2023-01-17 20:14:15 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2023-01-17 20:14:15 +0000 |
commit | 64e24c35da7ce655ef87cf1eecdda23ab819ac9f (patch) | |
tree | c57240ef82fd9bfee635a45a2a9d48ce9dbc3d5b | |
parent | mostly working now (diff) | |
download | scripts-64e24c35da7ce655ef87cf1eecdda23ab819ac9f.tar.gz scripts-64e24c35da7ce655ef87cf1eecdda23ab819ac9f.zip |
update
Diffstat (limited to '')
-rw-r--r-- | .tunneltop.toml | 49 | ||||
-rw-r--r-- | .vimrc | 3 | ||||
-rw-r--r-- | .zshrc | 1 | ||||
-rwxr-xr-x | bin/tunneltop | 1 |
4 files changed, 34 insertions, 20 deletions
diff --git a/.tunneltop.toml b/.tunneltop.toml index df5eaf9..46d6cd1 100644 --- a/.tunneltop.toml +++ b/.tunneltop.toml @@ -2,8 +2,9 @@ address = "127.0.0.1" port = 9997 command = "autossh -M 0 -N -D 9997 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 1022 87.236.209.206" -test_command = "curl -s -4 --socks5 127.0.0.1:9997 --connect-timeout 10 icanhazip.com" -test_command_result = "87.236.209.206" +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9997 https://icanhazallips.terminaldweller.com' +# test_command = "" +test_command_result = "200" test_interval = 300 test_timeout = 10 @@ -11,8 +12,9 @@ test_timeout = 10 address = "127.0.0.1" port = 9995 command = "autossh -M 0 -N -D 0.0.0.0:9995 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=no -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l root -p 2022 185.112.147.110" -test_command = "curl -s -4 --socks5 127.0.0.1:9995 --connect-timeout 10 icanhazip.com" -test_command_result = "185.112.147.110" +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9995 https://icanhazallips.terminaldweller.com' +# test_command = "" +test_command_result = "200" test_interval = 300 test_timeout = 10 @@ -20,8 +22,9 @@ test_timeout = 10 address = "127.0.0.1" port = 9990 command = "autossh -M 0 -N -D 0.0.0.0:9990 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 3333 185.130.45.46" -test_command = "curl -s -4 --socks5 127.0.0.1:9990 --connect-timeout 10 icanhazip.com" -test_command_result = "185.130.45.46" +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9990 https://icanhazallips.terminaldweller.com' +# test_command = "" +test_command_result = "200" test_interval = 300 test_timeout = 10 @@ -29,8 +32,9 @@ test_timeout = 10 address = "127.0.0.1" port = 9989 command = "autossh -M 0 -N -D 0.0.0.0:9989 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 3333 185.130.47.208" -test_command = "curl -s -4 --socks5 127.0.0.1:9989 --connect-timeout 10 icanhazip.com" -test_command_result = "185.130.47.208" +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9989 https://icanhazallips.terminaldweller.com' +# test_command = "" +test_command_result = "200" test_interval = 300 test_timeout = 10 @@ -38,8 +42,9 @@ test_timeout = 10 address = "127.0.0.1" port = 9064 command = "autossh -M 0 -N -L 0.0.0.0:9064:127.0.0.1:4444 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 3333 185.130.45.46" -test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --proxy http://127.0.0.1:9064 --connect-timeout 30 http://planet.i2p' -test_command_result = 200 +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --proxy http://127.0.0.1:9064 http://iedzwh5v2vouywqy4eak3eu33amfn3rzhdcln7j4r5kcyvf46cea.b32.i2p:7774/' +# test_command = "" +test_command_result = "200" test_interval = 300 test_timeout = 30 @@ -47,7 +52,8 @@ test_timeout = 30 address = "127.0.0.1" port = 9066 command = "autossh -M 0 -N -L 0.0.0.0:9066:127.0.0.1:7070 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 3333 185.130.45.46" -test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --connect-timeout 30 localhost:9066' +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 localhost:9066' +# test_command = "" test_command_result = "200" test_interval = 300 test_timeout = 30 @@ -56,7 +62,8 @@ test_timeout = 30 address = "127.0.0.1" port = 9067 command = "autossh -M 0 -N -L 0.0.0.0:9067:127.0.0.1:4447 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 3333 185.130.45.46" -test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9067 --connect-timeout 30 http://planet.i2p' +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9067 http://iedzwh5v2vouywqy4eak3eu33amfn3rzhdcln7j4r5kcyvf46cea.b32.i2p:7774/' +# test_command = "" test_command_result = "200" test_interval = 300 test_timeout = 30 @@ -65,7 +72,8 @@ test_timeout = 30 address = "127.0.0.1" port = 9164 command = "autossh -M 0 -N -L 0.0.0.0:9164:127.0.0.1:4444 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 3333 185.130.47.208" -test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --proxy http://127.0.0.1:9164 --connect-timeout 30 http://planet.i2p' +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --proxy http://127.0.0.1:9164 http://iedzwh5v2vouywqy4eak3eu33amfn3rzhdcln7j4r5kcyvf46cea.b32.i2p:7774/' +# test_command = "" test_command_result = "200" test_interval = 300 test_timeout = 30 @@ -74,7 +82,8 @@ test_timeout = 30 address = "127.0.0.1" port = 9166 command = "autossh -M 0 -N -L 0.0.0.0:9166:127.0.0.1:7070 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 3333 185.130.47.208" -test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --connect-timeout 30 localhost:9166' +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 localhost:9166' +# test_command = "" test_command_result = "200" test_interval = 300 test_timeout = 30 @@ -83,7 +92,8 @@ test_timeout = 30 address = "127.0.0.1" port = 9167 command = "autossh -M 0 -N -L 0.0.0.0:9167:127.0.0.1:4447 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 3333 185.130.47.208" -test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9167 --connect-timeout 30 http://planet.i2p' +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9167 http://iedzwh5v2vouywqy4eak3eu33amfn3rzhdcln7j4r5kcyvf46cea.b32.i2p:7774/' +# test_command = "" test_command_result = "200" test_interval = 300 test_timeout = 30 @@ -92,7 +102,8 @@ test_timeout = 30 address = "127.0.0.1" port = 9053 command = "autossh -M 0 -N -L 9053:127.0.0.1:9050 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 3333 185.130.45.46" -test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9053 --connect-timeout 20 icanhazip.com' +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9053 https://icanhazallips.terminaldweller.com' +# test_command = "" test_command_result = "200" test_interval = 300 test_timeout = 20 @@ -101,7 +112,8 @@ test_timeout = 20 address = "127.0.0.1" port = 9054 command = "autossh -M 0 -N -L 0.0.0.0:9054:127.0.0.1:9050 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 3333 185.130.47.208" -test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9054 --connect-timeout 20 icanhazip.com' +test_command = 'curl -s -o -s -w "%{http_code}" -I -4 --socks5 socks5h://127.0.0.1:9054 https://icanhazallips.terminaldweller.com' +# test_command = "" test_command_result = "200" test_interval = 300 test_timeout = 20 @@ -110,7 +122,8 @@ test_timeout = 20 address = "127.0.0.1" port = 9099 command = "autossh -M 0 -N -L 0.0.0.0:9099:127.0.0.1:9099 -o ServerAliveInterval=180 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -l ubuntu -p 1022 87.236.209.206" -test_command = "curl -s --connect-timeout 10 localhost:9099" +test_command = "curl -s localhost:9099" +# test_command = "" test_command_result = "<a href=\"/graph\">Found</a>." test_interval = 300 test_timeout = 10 @@ -1219,11 +1219,12 @@ nnoremap <leader>gt :YcmCompleter GetType<CR> nnoremap <leader>gd :YcmCompleter GetDoc<CR> nnoremap <leader>gc :YcmCompleter GoToDocumentOutline<CR> nnoremap <leader>rr :YcmCompleter RefactorRename<space> +nnoremap <silent> <leader>ii <Plug>(YCMToggleInlayHints)) nmap <leader>D <plug>(YCMHover) " nmap <leader>yfw <Plug>(YCMFindSymbolInWorkspace) " nmap <leader>yfd <Plug>(YCMFindSymbolInDocument) let g:ycm_enable_semantic_highlighting = 1 -let g:ycm_enable_inlay_hints = 1 +let g:ycm_enable_inlay_hints = 0 let g:ycm_clear_inlay_hints_in_insert_mode = 1 let g:ycm_echo_current_diagnostic = "virtual-text" let g:ycm_enable_diagnostic_highlighting = 1 @@ -346,6 +346,7 @@ alias mdcat="turn_green && mdcat --local --fail --paginate" alias mariadb="mariadb --safe-updates" alias tunneltoprc="vim ~/scripts/.tunneltop.toml" alias fixtunneltoprc="cp ~/scripts/.tunneltop.toml ~/.tunneltop.toml" +alias tokei="tokei --hidden --num-format underscores -s lines" # change the 4th terminal color to #0000ff # echo -e '\e]P40000ff' diff --git a/bin/tunneltop b/bin/tunneltop index b3a3962..7dba98c 100755 --- a/bin/tunneltop +++ b/bin/tunneltop @@ -262,7 +262,6 @@ class TunnelTop: async def main(self) -> None: """entrypoint""" - # signal.signal(signal.SIGHUP, self.sighup_handler) print(Colors.screen_clear, end="") print(Colors.hide_cursor, end="") |