2011年9月30日 星期五

vsftp exclusion setup

chroot_list_file=/etc/vsftpd/chroot_list
################# ACL ###################
userlist_enable=YES
userlist_deny=YES
userlist_file=/etc/vsftpd/deny
user_config_dir=/etc/vsftpd/user_config_dir
################# ACL ###################

2011年9月28日 星期三

enable intel my wifi option for widi

Intel My Wifi option will never appear after you install intel wifi driver from Dell driver package
What you have to do is remove below regristy from your system and install the up-to-date driver from intel.
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\4AC91165C6D69DE419A86CDFF452E910 /v FFBD57B19EA05A2416DB668FE78A4352


refer to http://communities.intel.com/thread/14580?start=15&tstart=0

2011年9月27日 星期二

sip auto-dial

Channel: SIP/001xxxxxxxxxx@SIP-PROVIDER-13622859904dddbdc00cb64
Context: internal
CallerID: Alert SYS Admin<0000>
Extension: 000047
WaitTime: 60
MaxRetries: 1
RetryTime: 60
;Application: AGI
;Data: testphp.php
http://www.voip-info.org/wiki/view/Convert+WAV+audio+files+for+use+in+Asterisk
To convert wav file to sln, use the following command:
sox foo-in.wav -t raw -r 8000 -s -2 -c 1 foo-out.sln
Note that sox v14.3.0 and above (installed in Ubuntu 9.10), the -w option has changed to -2
sox foo-in.wav -t raw -r 8000 -s -2 -c 1 foo-out.sln

2011年9月26日 星期一

wmi

Set objLocator = CreateObject("WbemScripting.SwbemLocator")
Set objWMIService = objLocator.ConnectServer(RemoteHost, "root\cimv2", RemoteHost & "\administrator","password")

2011年9月12日 星期一

perl skill

open(INPUT,"$lmstat -c $conf -f $feature 2>&1 |") || exit(191);
while (< input >) {
if (/.*Total of (\d+) license.* issued\; Total of (\d+) license.* in use.*/) {
push(@totallic, $1);
push(@licusage, $2);
}