我最近“购买”了一个 VPS,我想将其用作代理,以便能够使用一些我无法从德国访问的站点和内容。
由于我还懒得设置 Squid 和 OpenVPN(我目前认为这是必需的),所以我使用了 ssh-tunneling。
现在几周后,我问自己 ssh 隧道是否还不错,或者 - 这就是我的问题 - 是否有任何需要注意的警告/缺点/缺点?
我只是好奇,如果有办法从中获取输入不StdIn但是从$EDITOR-无论是Vim的纳米,emacs的,甚至非命令行编辑器(的MacVim / TextMate的)。有哪些选项/解决方法/最佳实践?
基本上我希望像这样的工作流程heredoc- 但是来自 $editor 。
$ sort -nr << FOO | uniq -c
pipe heredoc> foo
pipe heredoc> bar
pipe heredoc> baz
pipe heredoc> foo
pipe heredoc> FOO
2 foo
1 baz
1 bar
Run Code Online (Sandbox Code Playgroud)