By Allen, on September 30th, 2009%
如果在Tsclient 找不到 VNC 可用,記得先裝一下下面的軟體.
sudo apt-get . . . → Read More: about tsclient vnc protocol
By Allen, on September 18th, 2009%
#!/usr/bin/env python
#-*- coding: utf-8 -*-
”’
============================================
LOG
Date:2009/09/24
Add Threading Process
Date:2009/11/10
Add Check PATH, if you forget enter ‘/’
============================================
”’
import threading
import Queue
import os
import sys
import time
__author__ = “AllenWang”
__copyright__ = “Copyright 2009, SVN Backup Script”
__credits__ = “Allen Wang”
__license__ = “GPL”
__version__ = “1.0″
__maintainer__ = “Allen Wang”
__email__ = “allencswang@gmail.com”
__status__ = “Released”
queue = Queue.Queue()
def chkpath(_chk):
i = len(_chk) -1
if . . . → Read More: Backup_SVN.py
By Allen, on September 17th, 2009%
#!/usr/bin/env python
#-*- coding: utf-8 -*-
from subprocess import call
import sys
import time
import commands
source = “xxx@10.181.59.137:~/sysbackup/”
target = “~/sysbackup/relay/”
rsync = “/usr/local/bin/rsync”
arguments = “-avuzb –delete -e”
ssh = “‘ssh -i /home/xxx/.ssh/id_dsa’”
cmd = “%s %s %s %s %s” % (rsync, arguments, ssh, source, target)
def sync():
while True:
ret = call(cmd, shell=True)
. . . → Read More: rsync.py
By Allen, on September 16th, 2009%
只是為了偷懶,所以隨手寫了一個script…
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import os
import commands
def usbdisk():
S_usb = commands.getoutput(‘df |grep /mnt/bkusb’)
if ‘/mnt/bkusb’ in S_usb:
print ‘usb disk relly to use’
return True
else:
. . . → Read More: automount.py
By Allen, on August 22nd, 2009%
Romance 愛情篇
1. 他暗戀我們班上的一個女生。
He has a crush on a girl in our class.
2. 因為有你,我的生命充滿了希望。
Because of you, my life is filled with hope.
3. 愛情令人盲目。
Love is blind.
Continue reading 分享 這句英文怎麼說 (Romance – 愛情篇)
By Allen, on August 19th, 2009%
git 是一套(source code management) 簡稱 SCM
他可以簡化程式語言在開發上,免不了的cp . . . → Read More: git
By Allen, on July 28th, 2009%
where are you ??
I’m still here.
where are you ??
I’m waiting . . . → Read More: I’m still here.
By Allen, on July 23rd, 2009%
當一個人認清一件事情的時候,
反應一 心灰意冷…
反應二 試圖改變…
反應三 絕緣體…
無論 好壞 都將它放在一邊…
無論 . . . → Read More: 絕緣體…
By Allen, on July 13th, 2009%
每次reinstall windows後,每次都要重新設定PuTTY的Host,
真的粉麻煩,下面是匯出PuTTY的備份方法:
1. 按 “開始” -> “執行”,然後輸入 “RegEdit” 並按確定。
2. 移到 HKEY_CURRENT_USER\Software\SimonTatham
3. 選擇 SimonTatham 後按 “檔案” -> “匯出”。
4. 儲存好匯出的登錄檔。
5. 將登錄檔放到需要匯入設定的電腦上,並 right click 該檔案後按 “合拼”。
. . . → Read More: 匯出 PuTTY 設定
By Allen, on July 6th, 2009%