Elvis Woo

这是一个快被主人遗忘的角落

Skip to: Content | Sidebar | Footer



Virtual Drive on Windows

4 November, 2011 (10:28) | Windows | By: admin

C:\WINDOWS\system32>subst /?
Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to
a virtual drive.
/D Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.

My Proxy.pac backup

26 September, 2011 (10:21) | Network | By: admin

var patterns = new Array(
//following are the site what you want to access by proxy.
“googlevideo.com”,
“ytimg.com”,
“youtube.com”,
“twitter.com”,
“ip13p8.com”,
“facebook.com”,
“blogger.com”,
“chinagfw.org”,
“freemorenews.com”,
“blogspot.com”,
“q=cache:”,
“my.opera.com”
);
function FindProxyForURL(url, host)
{
for (i in patterns)
{
if( url.indexOf( patterns[i] ) >= 0 )
{
return “SOCKS5 127.0.0.1:7070″;
}
}
return “DIRECT”;
}

Countdown script in Batch file

10 February, 2010 (17:58) | Windows | By: admin

Restart Computer Example:
for /L %%a in (
 15,-1,0
) do (
 echo Your Computer will reboot in %%a seconds…
 ping -n 2 localhost 1>nul 2>nul
)
@echo off
shutdown -r -t 0
PAUSE

Hide CMD Window when running a batch file

10 February, 2010 (17:53) | Windows | By: admin

Open Notepad and enter the following:

Set ws = CreateObject("Wscript.shell")ws.run "your.bat",vbhide

Then save as a vbs file "your.vbs"

Close SELINUX (Needn’t reboot Linux)

17 December, 2009 (14:53) | Linux | By: admin

To edit /etc/sysconfig/selinux

………….
#SELINUX=enforcing
SELINUX=disabled
…..

:wq

Then run commont "setenforce 0"

Batch download FTP files

9 October, 2009 (17:03) | Linux | By: admin

ftp>prompt
ftp>mget *.*
or 
lftp ftp://xxxx.xx
mirror

Apache IndexesDirectory Charset

9 October, 2009 (16:59) | Application System, Linux | By: admin

Create a .htaccess file at the root directory of website
Add "IndexOptions Charset=GB2312"  and save it.
Finished.

Installed ImageVue on CentOS 5

18 July, 2009 (21:03) | Application System, Linux | By: admin

Test

16 May, 2009 (09:05) | Uncategorize | By: admin

Windows Live published a new module that can associate the Windows Live, Flickr, WordPress, Facebook and so on.

Kill User Connections

30 March, 2009 (11:52) | Linux | By: admin

pkill -kill -t (user’s pts)