页面

2013年5月20日星期一

SSH speedup

作为每天 ssh 到服务器的码农,以下 ssh 设置真是实用啊。


# http://blogs.perl.org/users/smylers/2011/08/ssh-productivity-tips.html

# If the network disappears your connection will hang, but if it then re-appears with 3 minutes it will resume working
TCPKeepAlive no
ServerAliveInterval 60
ServerAliveCountMax 3

# avoid not used GSSAPI authentication to faster up connection
GSSAPIAuthentication no

# share ssh session
ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r

# keep alive for 2h
ControlPersist 2h

# scp on remote
ForwardAgent yes

详见:
http://blogs.perl.org/users/smylers/2011/08/ssh-productivity-tips.html

上个文章 comments 里的一个连接:
http://diogomelo.net/blog/10/ssh-tricks

[Quick-Tip: Reusing OpenSSH connections to the same host](https://revsys.com/writings/quicktips/ssh-faster-connections.html)

2013年5月13日星期一

Emacs ROCKKKKKK!!!

今天找一个方法实现 Emacs 里面的自动保存,发现了 http://emacsredux.com/ 这个专门针对 Emacs 的技巧 Blog,是 Prelude 作者撰写的,找到了 N 个想要已久的功能。 最后在浏览 Prelude 介绍的时候,发现了 Ace Jump 这个让我瞬间内牛满面的插件,键盘党也可以快速跳转光标了,而且不是在 VIM 里!对 VIM 的 f 键早已经羡慕妒忌狠很久了,现在可以了了这心了。

还有 imenu...  爽翻了。