Farewell, two Quantum warriors.
One was born in 1997, named Bigfoot.
The other was born in 1996, named Fireball.
Farewell, two brave brothers.
2010年7月2日 星期五
2010年6月28日 星期一
Disable ipv6 on Ubuntu
There is a strange problem with kernel message: lo: Disabled Privacy Extensions
It is caused by the ipv6 module in kernel.
reference:
Old Nabble - ubuntu-users - lo: Disabled Privacy Extensions
To close it, you have to recompile kernel.
There is a hack to close it through the loader. (If no ipv6 needed)
edit the /etc/default/grub and modify:
here are the references to close it:
1. Ubuntu Tips - JoeHacker
2. Grub 2 - Ubuntu Wiki
It is caused by the ipv6 module in kernel.
reference:
Old Nabble - ubuntu-users - lo: Disabled Privacy Extensions
To close it, you have to recompile kernel.
There is a hack to close it through the loader. (If no ipv6 needed)
edit the /etc/default/grub and modify:
GRUB_CMDLINE_LINUX="ipv6.disable=1"
here are the references to close it:
1. Ubuntu Tips - JoeHacker
2. Grub 2 - Ubuntu Wiki
2010年6月25日 星期五
Stop php execution in Apache's directory
參考文件:
1. 精讚部落 不讓上傳的目錄執行PHP
有時讓使用者上傳圖片,會怕惡意的上傳可執行的php,雖然可以用改檔名來防止,就怕駭客使用非正規的方法上傳檔案,因此在上傳的目錄下,要設定不執行php的安全性設定。
httpd.conf 在網站的上傳目錄設定下:
<Directory "/home/axer/php/zdemo/upload">
AllowOverride None
php_flag engine off
Allow from all
</Directory>
2. 如何限制某個目錄不能執行PHP?
3. PHP File Upload Security
1. 精讚部落 不讓上傳的目錄執行PHP
有時讓使用者上傳圖片,會怕惡意的上傳可執行的php,雖然可以用改檔名來防止,就怕駭客使用非正規的方法上傳檔案,因此在上傳的目錄下,要設定不執行php的安全性設定。
httpd.conf 在網站的上傳目錄設定下:
<Directory "/home/axer/php/zdemo/upload">
AllowOverride None
php_flag engine off
Allow from all
</Directory>
2. 如何限制某個目錄不能執行PHP?
3. PHP File Upload Security
2010年6月19日 星期六
ClamWin Portable with MSN
1. Install ClamWin portable with ClamWin Portable | PortableApps.com - Portable software for USB drives
2. create batch file clamscan.bat
rem you have to modify the path to fit your installation
C:\Tools\ClamWinPortable\App\clamwin\bin\clamscan.exe -d c:\Tools\ClamWinPortable\Data\db %1
rem pause the windows cmd screen
pause
3. Put the batch file path into MSN

Done!
reference:
clamscan(1): scan files/directories for viruses - Linux man page
2. create batch file clamscan.bat
rem you have to modify the path to fit your installation
C:\Tools\ClamWinPortable\App\clamwin\bin\clamscan.exe -d c:\Tools\ClamWinPortable\Data\db %1
rem pause the windows cmd screen
pause
3. Put the batch file path into MSN

Done!
reference:
clamscan(1): scan files/directories for viruses - Linux man page
2010年6月18日 星期五
Windows file system: Junction
A junction point is a special type of reparse point. Reparse points are redirections in the Windows file system.
2010年6月7日 星期一
訂閱:
文章 (Atom)