备份大目录 tar 比 scp 快
只限于文件小而多的情况,传输单个大文件两者应该是一样地 备份,从远端,到本地 % ssh someone@somewhere "cd /my/big/folder; tar cvzf - ." > /my/backup.tgz 还原,从本地,到远端 % ssh someone@somewhere "tar xvzf - -C /my/new/directory/" < /my/backup.tgz 备份,从本地,到远端 % cd /my/big/folder; sudo tar cvzf - . | ssh someone@somewhere "dd of=/my/backup.tgz" 还原,从远端,到本地 % ssh someone@somewhere "cat /my/backup.tgz" | tar xzvf - -C /my/new/directory/
VirtualBox 安装 Mac OS X
在 PC 物理环境中安装 Mac OS X 不能。笔记本 x200 安装原版 SnowLeopard 10.6.0 成 功,但进入桌面后键盘失效。改用黑苹果安装盘 —— 东皇 10.6.3-v2.2,中途就报错,只 能重启。 下载 VirtualBox-4.0.0、EmpireEFI-1063.zip、snowleopard_10a432_userdvd.d...
在 Mutt 中使用 Google 联系人
RT @龍神: http://piao-tech.blogspot.com/2010/01/google-contacts-in-mutt.html #!/usr/bin/env ruby1.8 ## # File: contactos.rb # Author: Horacio Sanson (hsanson at gmail) # Date: 2010/01/22 # # Descr: # Small script to facilitate use of GMail contacts within mutt email client. # # Features: # - Generates a list of group and subscribe commands generated from your # GMail contacts groups that can be sourced from your muttrc file. # - Can be used to search for contacts within mutt using the query_command # option in the same way abook or ldbd are used. # - Results are cached for a period of time (configurable) to speed up # queries. # # Installation: # To use this script you need ruby and rubygems 1.8 and the gdata gem. To # install these in Ubuntu/Kubuntu use the following commands. # # sudo aptitude install...
mutt-1.5.21
用 1.5.21 签名的邮件,正文的末尾不会再显示内嵌的公钥信息。这样的好处是有些几句 话的邮件,正文内容不会被冗长公钥信息干扰。 1.5.20  ̄ ̄ ̄ 邮件正文只有一两句话,但下面 BEGIN 开始的公钥信息多达 7 行,有的公钥甚至多达几十行 -- Vern vim -c ":s,^,ZnQr2va8puvan.,|:s/\d\(.\)/ \U\1/g|:normal Vg?" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkw1U7YACgkQvybwk5cXSZHpWQCdHtHsqm18akKXmLcQTOS9AjFP QjAAniCqzfLkv+dO1RbPCHOFi8mPCFdT =2rVm -----END PGP SIGNATURE----- 1.5.21  ̄ ̄ ̄ 现在没有了冗长的公钥信息,但公钥附...