2014-06-25

Remove Bridged eth0/eth1 binding within br0

Show Binding list under br0
  • # brctl show
Remove Binding
  • # brctl delif br0 eth0
Add Binding
  • # brctl addif br0 eth0


2014-06-20

Sublime Text 3, Package - TrailingSpaces

Update:
TrailingSpaces not work on new SublimeText 3.2.2.
qasm_highlighting: Could be use this for the same function.

[ Purpose ]

  • Highlight unused Space
  • 顯示多餘空白字元.  移除可 resize file to smaller.
Combination Key [ Ctrl + Shift + P ] to call the function.


SHOW Unused SPACEs
  • Choose "Trailing Spaces: Toggle Trailing Spaces Highlighting"


REMOVE Unused SPACEs
  • Choose "Trailing Spaces: Toggle Trailing Spaces"


2014-06-18

Remove AD & ToolBar on Browsers


移除網頁綁架, 工具列 和 廣告軟體.

Tool needed: AdwCleaner

Download 1: from official link
Download 2: here

Notification
1-
FileZilla FTP Server, 從 Source Forge 下載來的安裝檔會有此類綁架網頁 (e.g. Sweet Page ) 的爛招數. 如果在安裝的過程中, 只一味的按 Next, Next. 則這些垃圾就在你沒注意時給放到電腦裡了.





2014-06-06

TCL, string trim 字串剔除

剔除所需字串前後的字元.

[Syntax]
  • string  trim  string1  char  --> 刪除 string1左右char字元.
  •                                                    不指定, 則刪除空白無效字元 \t \r \n \s
  • string  trimleft  string1 char  --> 刪除 string1左邊含有char字元
  • string  trimright  string  chars  --> 刪除 string1右邊含有char字元

[ExampleCode 1]
  • set text2 "HelloWorldPapa 111 abc 222 PapaWorldHello"

  • puts $text2\n
  • puts [ string trim $text2 "Hello"]
  • puts [ string trimleft $text2 "Hello"]
  • puts [ string trimright $text2 "Hello"]
[Output]
  • HelloWorldPapa 111 abc 222 PapaWorldHello
  •  
  • WorldPapa 111 abc 222 PapaWorld
  • World Papa 111 abc 222 PapaWorldHello
  • HelloWorldPapa 111 abc 222 PapaWorld

2014-06-03

TCL, Date & Clock

[Syntax]
  • clock  format  [ clock  seconds ]  -format  "%Y%m%d%H%M%S"  ]
  • %Y - Year with century (e.g. 1990)
  • %y - Year without century (00 - 99).
  • %m - month
  • %d - Day of month (01 - 31).
  • %H - Hour in 24-hour format (00 - 23).
  • %I - Hour in 12-hour format (00 - 12).
  • %M - Minute (00 - 59).
  • %S - Seconds (00 - 59).