使用 cmd 範例
aws ec2 describe-network-interfaces --region=us-west-1 --filters Name=addresses.private-ip-address,Values=10.0.0.1
aws ec2 describe-network-interfaces --region=us-west-1 --filters Name=addresses.private-ip-address,Values=10.0.0.1
用 git 的好處,就是可以很方便的建立 & 刪除 branch
就記錄一下,目前有用到的 & 找到的使用 branch 的一些技巧 & 資料
git checkout -b <branch-name>
git push <remote-name> <branch-name>
<remote-name> is typically origin
git push --set-upstream <remote-name> <local-branch-name>
git push -u origin <local-branch-name>
git branch -d <branch>
$ git fetch --prune origin
$ git remote prune <remote>
origin https://gitserver.com/user/repository.git (fetch)
origin https://gitserver.com/user/repository.git (fetch)
`
列出,常用的 splunk cmd 作為參考用
手動 restart splunkWeb 用
$SPLUNK_HOME/bin/splunk restart splunkweb -auth <USER>:<PASSWORD>
remove index 用
splunk help clean
splunk clean eventdata
splunk clean eventdata -index <index_name>
看 splunk log 用
index=_internal source="*/splunkd.log" | ...
在看 fzf 的介紹影片Vim universe. fzf - command line fuzzy finder 時,有介紹到 rg 這個工具。用了之後,還真的滿快的啊
是一種方便使用 grep 的方式
使用 command
1 | $ rg SEARCH_KEYWORD PATH |
最近在試用 fzf 時,有看到這個類似的 find 指令。裝了之後,覺得滿好用的
1 | $ fd PATTERN |