Protected: One Year…

There is no excerpt because this is a protected post.

祝我生日快樂!!

. . . → Read More: 祝我生日快樂!!

終於…

主機爆炸好幾天了(約一個多月吧)XDD
剛剛把他先轉到Virtualbox上了…

因為之前VM與Virtualbox會打架….
而我又熱愛OPEN Source….
所以, 當然, 肯定是, Virtualbox….XDD

ps. . . . → Read More: 終於…

釋放VIM的威力

c9s用Perl寫了一個幫助調整安裝的程式….

超讚~~!!

# cpan Vimana
# vimana search [keyword] [keyword]
# vimana info xml.vim
# vimana . . . → Read More: 釋放VIM的威力

Python compile

#!/usr/bin/python
import py_compile
import sys

file=raw_input(“Please enter your . . . → Read More: Python compile

about tsclient vnc protocol

如果在Tsclient 找不到 VNC 可用,記得先裝一下下面的軟體.

sudo apt-get . . . → Read More: about tsclient vnc protocol

Backup_SVN.py

#!/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

rsync.py

#!/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

automount.py

只是為了偷懶,所以隨手寫了一個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

分享 這句英文怎麼說 (Romance – 愛情篇)

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 – 愛情篇)