- tshark -t ad -i $interface -Y "(dns || ntp) && ip.addr == $deviceIP" -V
2017年5月5日 星期五
[WIRESHARK] 找從 ntp server 成功 update 時間的封包 (證據)
2017年5月3日 星期三
[HTML] 利用 details 折疊內容
- 教學:HTML details Tag
- 單純用 html 語法即可折疊網頁內容, 用 javascript, 也不用 css
- 我的目的是想搭配 vimwiki 使用, 還在研究
2017年4月18日 星期二
[SHELL] 統計檔案中多個字串的方法
# my shell is zsh
declare -a arr; arr=("str1" "str2" "str3")
echo -----------------------------
for i in "${arr[@]}"
do
echo -n "$i:\t"
grep $i file.txt | wc -l
done
declare -a arr; arr=("str1" "str2" "str3")
echo -----------------------------
for i in "${arr[@]}"
do
echo -n "$i:\t"
grep $i file.txt | wc -l
done
2017年4月13日 星期四
2017年4月12日 星期三
[VIM] 複製內容到外部剪貼簿
- 範例: 從第 100 行複製到第 110 行
- 先移到要開始複製那行
- 100G
- 100gg
- 再複製到指定行數
- "+y110G
- "+10yy
- 範例: 從第 100 行複製到最後一行
- 100G
- "+yG
[VIMWIKI] 在不同 wiki 之間跳轉
- 用法 (Usage)
- 第1個 wiki 的 index
- [[wiki0:index]]
- 第2個 wiki 的 index
- [[wiki1:index]]
- 參考資料
2017年4月11日 星期二
[VIMWIKI] tag 使用方法
- 用途 (Usage)
- 可在 Vimwiki 內跳躍至檔按的指定位置
- 使用方式
- 設定 tag
- :tag:
- 設定多個 tag
- :tag1:tag2:
- 呼叫 tag
- [[file#tag]]
(注意: 此檔名稱為 file.wiki, 上面寫的時候不需要把 .wiki 也寫進去) - 參考資料
訂閱:
文章 (Atom)

