2013年7月5日 星期五
2013年6月27日 星期四
[shell] Top 10 shell commands you currently use
My Top Ten:
2061 git 482 ll 165 cd 131 ssh 123 sed 116 vim 106 forever 98 rm 86 brew 84 ls
See Also
https://coderwall.com/p/o5qijw2013年6月20日 星期四
[Quotes] Simple can be harder than complex ... Steve Jobs - 簡單比複雜難得多
"Simple can be harder than complex. You have to work hard to get your thinking clean to make it simple. But it’s worth it in the end because once you get there, you can move mountains." -- Steve Jobs
簡單比複雜難得多,你必須竭盡全力、理清思路,才能創造簡單。但這絕對值得,因為只有這樣,你才能開闢新世界。
2013年6月19日 星期三
[ssh] ProxyCommand - Run a local command before ssh to remote server.
Modify ~/.ssh/config
Host mydomain
ProxyCommand sh -c "local_command /usr/bin/nc %h %p"
Host mydomain
Hostname=mokoversity.com
IdentityFile=~/.ssh/mokoversity_dsa
User=hank
PasswordAuthentication=no
PubkeyAuthentication=yes
2013年6月18日 星期二
[Mac] ssh remote server through socks proxy - 經由socks proxy ssh到遠端Server
1. Install ProxyChains
$ wget https://gist.github.com/allenhuang/3792521/raw/bb52568695f9d745004eee87b892637f9d17a771/proxychains4_formula.rb $ mv proxychains4_formula.rb /usr/local/Library/Formula/Proxychains.rb $ brew install --HEAD proxychains
2. Modify ProxyChains conf
$ vim /usr/local/etc/proxychains.conf
set this line to conf:
socks4 127.0.0.1 8888
3. Open socks
ssh -vND 8888 user@socks.server
4. Settings Socks Proxy on Mac Network Preference
5. Connect to remote server
$ /usr/local/bin/proxychains4 ssh user@remote.server
2013年6月15日 星期六
[Vim] vim configuration
我其實很少用vim ... 不過有時候在Mac用一下、Linux用一下,覺得沒存一下設定檔不行... 所以慢慢整理一份出來
See Also
http://vim.wikia.com/wiki/Example_vimrc
訂閱:
文章 (Atom)