Pank: August 2009 Archives

中文化辭彙搜尋已修復

| | Comments (0)

看到 這篇, 才知道 中文化辭彙搜尋 已經掛了很久了,
原因是 DreamHost 那邊取消了 register_globals,
而中文化辭彙搜尋是 2004 年寫的,
是用 $query 變數, POST 變數代不進來, 當然也搜尋不到任何東西,
改成 $_POST["query"] 就 OK 了.

Firefox x64

| | Comments (0)

Notebook Fn + NumLock

| | Comments (0)

若發現您的 Notebook JKLUIO 鍵按下去都變成數字 123456,
那就是按到 Fn + NumLock 了, JKLUIO789 變成九宮格的數字鍵,
要恢復只要再按一次 Fn + NumLock 即可.

Speed Up Windows 7

| | Comments (0)

bc scale

| | Comments (0)

使用 scale 設定小數點以下位數
# bc -l
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
10/3
3.33333333333333333333
scale=2
10/3
3.33

DLNA

| | Comments (0)

家裡換一了一台 SONY KDL-46V5500
這台有 DLNA 功能, 試了一下,
網路設定支援 DHCP 及固定 IP,
開啟 NAS 的 Media Server,
就可以直接找到 NAS 所分享出來的檔案,
可以播放MP3, 照片, 影片, 不過似乎只支援 MPEG 格式檔案, 有點雞肋.
若沒有 NAS, 也可以拿 Windows Media Player 11 來當 DLNA Server,
可參考: Goston's Blog » [PS3] PS3 + MediaPlayer 11 DLNA 設定成功
SONY 的電視有跟 PS3 一樣的 XMB 多媒體導覽選單(十字選單), 使用上很方便.

Linux Kernel 'sock_sendpage()' NULL Pointer Dereference Vulnerability
Versions prior to the Linux kernel 2.4.37.5 and 2.6.31-rc6 are vulnerable.
此漏洞可以 local root exploit, 幾乎影響到所有版本的 Linux Kernel
試了幾台手邊的 Linux 執行 exploit code, 也不是每台都能 exploit
Redhat 9.0, 無法 exploit
Mandriva 2008.0, 成功 exploit
CentOS 5.3 x64, 無法 exploit

Windows 7 slmgr parameter

| | Comments (1)

Windows 軟體授權管理工具
使用方式: slmgr.vbs [MachineName [User Password]] [

一般選項:
/ipk
安裝產品金鑰 (取代現有的金鑰)
/ato [啟用識別碼]
啟用 Windows
/dli [啟用識別碼 | All]
顯示授權資訊 (預設: 目前的授權)
/dlv [啟用識別碼 | All]
顯示詳細授權資訊 (預設: 目前的授權)
/xpr [啟用識別碼]
目前授權狀態的到期日
/cpky
從登錄清除產品金鑰 (預防揭露攻擊)
/ilc
安裝授權
/rilc
重新安裝系統授權檔案
/rearm
重設電腦的授權狀態
/upk [啟用識別碼]
解除安裝產品金鑰
/dti [啟用識別碼]
顯示離線啟用的安裝識別碼
/atp [啟用識別碼]
利用使用者提供的確認識別碼啟用產品
大量授權: 金鑰管理服務 (KMS) 用戶端選項:
/skms [Activation ID] [啟用識別碼]
設定此電腦將使用之 KMS 電腦的名稱和/或連接埠。IPv6 位址必須以
[hostname]:port 格式來指定
/ckms [啟用識別碼]
清除已使用之 KMS 電腦的名稱 (將連接埠設定為預設值)
/skhc
啟用 KMS 主機快取
/ckhc
停用 KMS 主機快取
/lil
列出已安裝的權杖型啟用發行授權
/ril
移除已安裝的權杖型啟用發行授權
/ctao
清除僅權杖型啟用旗標 (預設值)
/stao
設定僅權杖型啟用旗標
/ltc
列出權杖型啟用憑證
/fta <憑證指紋> []
強制權杖型啟用

ProFTPD rate limit

| | Comments (0)

e.g. limit 5M/5M in proftpd.conf
TransferRate RETR 5120 # for download
TransferRate STOR 5120 # for upload

ref. ProFTPD TransferRate

凱莉手工坊

凱莉手工坊

February 2010

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28            

About this Archive

This page is a archive of recent entries written by Pank in August 2009.

Pank: July 2009 is the previous archive.

Pank: September 2009 is the next archive.

Find recent content on the main index or look in the archives to find all content.