2017年6月24日 星期六

逐字稿工具

為了訓練自己的英文
現在要把上課的內容用逐字稿的方式打出來,
希望對自己的英文有所進步。

參考資料:
協同逐字稿
oTranscribe

2017年6月5日 星期一

vim中的零寬度匹配

最近發現vim有一個功能
叫做「零寬度匹配」
還蠻繞口的
還搞不太懂,
先記錄一下吧~

參考資料:
[转]vim中的零宽度匹配 - [1.2 vim]
VIM REFERENCE MANUAL

2017年3月31日 星期五

Windows下使用標記(Tags)

因為平常有在拍照或錄影為生活作記錄,
但是,
當檔案多到一定的程度的時候,
要尋找檔案就是一個很困難的問題。


參考資料:
你真懂用搜索吗?详解Windows7内置搜索
Windows 系统下如何进行多条件搜索? - 易宝典
Tag your files for easier searches in Windows 7
Enable natural language search in Windows 7 to produce better results

2015年8月5日 星期三

在linux下安裝skype

原本的筆電最近一直熱當,
今天只好把典藏的桌電拿出來用,
預設是安裝fedora 20,
公司同事都安裝skype,
所以第一件事就是安裝skype.

直接去
Linux 專用 Skype
下載skype-4.3.0.37-fedora.i586.rpm

因為有一些相依的套件,
必須用以下指令,
# yum install skype-4.3.0.37-fedora.i586.rpm
如此可以安裝相關套件...
可以正常在linux下使用skype了

參考資料:

2015年5月11日 星期一

ip6tables

ip6tables跟iptables極為相似~
而ip6tables是專門在處理IPv6的封包所使用的。

這裡是收集使用過的ip6tables指令
ip6tables -t filter -L -v
顯示filter table的「詳細」設定
因為有加入-v
因此會顯示較為詳細的資料

Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
   15  3579 ACCEPT     all      any    any     anywhere             anywhere            state RELATED,ESTABLISHED 
   38  2736 ACCEPT     icmpv6    any    any     anywhere             anywhere            ipv6-icmp neighbour-solicitation 
   45  3104 ACCEPT     icmpv6    any    any     anywhere             anywhere            ipv6-icmp neighbour-advertisement 
  175 22368 ACCEPT     icmpv6    any    any     anywhere             anywhere            ipv6-icmp router-advertisement 
    2   112 ACCEPT     icmpv6    any    any     anywhere             anywhere            ipv6-icmp router-solicitation 
    6   958 ACCEPT     udp      any    any     anywhere             anywhere            udp dpt:546 
    2   316 ACCEPT     all      br0    any     anywhere             anywhere            

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
 1079  493K ACCEPT     all      any    any     anywhere             anywhere            state RELATED,ESTABLISHED 
  371 38824 ACCEPT     all      br0    any     anywhere             anywhere            
    0     0 ACCEPT     all      eth2.2 map0    anywhere             anywhere            

Chain OUTPUT (policy ACCEPT 278 packets, 30774 bytes)
 pkts bytes target     prot opt in     out     source               destination

而流程圖如下


而實際的rule則是找到一個符合的,就會去執行相對應的動作,剩下的rule就不會去管了。

參考資料:
Iptables 指南 1.1.19
Chapter 18. Firewalling
iptables 設定入門
iptables 的用法
iptable使用笔记

2015年4月24日 星期五

ebtables的使用

最近應該會遇到IPv6 passthrough的使用,
看起來會使用到ebtables這一個指令,
必需要研究一下~

ebtables跟iptables一樣有分成三個tables
iptables有filter, nat與mangle
ebtables有filter, nat與broute

1. 列出filter, nat與broute table
ebtables -L
ebtables -t nat -L
ebtables -t mangle

-t這個參數是指定table,
若沒有輸入的話, 則是預設是filter





參考資料:
How to use ebtables: ebtable 的小筆記
ebtables基本使用
Introduction

2015年2月24日 星期二

iptables

iptables是網路規則很重要的一環,
可以設定一些限制,
讓



參考資料:
Iptables 指南 1.1.19
Chapter 18. Firewalling
iptables 設定入門
iptables 的用法
iptables指南笔记