原创 linux cp 拷貝時 保留目錄結構
--parents
原创 java String.replaceAll()
java中String.replaceAll()的使用 參數1:需要替換的內容,正則表達式 參數2:替換爲 \需要轉義
原创 探測目標哪些端口可用
nmap 百度文庫
原创 git
WIP=work in progress 使用說明原文 文件狀態: untracked, unmodified(git commited), modified, staged/cached(git added) HEAD: the he
原创 Android runtime permissions
Android 6.0 運行時權限 frameworks/base/core/java/android/app/Activity.java requestPermissions() invokes onRequestPermission
原创 用vim進行c/c++開發
本文中無法輸入反斜槓,用\代替。 冒號進入的是EX commands. 更新幫助::helptags ~/.vim/doc 使用vba腳本:打開腳本文件後:so % GVim的緩存菜單和許多對緩存處理的插件都無法正確刷新由菜單項恢復出來的
原创 處理文件與EOF
$ while read line; do > process $line > done < /path/to/file 參考:bash的read命令如何讀取換行符 ^D is EOF
原创 set proxy for command line and build neovim without root priv
export https_proxy=’http://username:password@ip:port/’ or http_proxy. use %40 for @ in username download neovim source
原创 can't visit some network neighbors
on Windows 10, some neighbors can be reached while others can’t https://community.spiceworks.com/topic/1162811-windows-
原创 Android ANR & WatchDog
解決ANR WatchDog分析
原创 Asterisk SIP賬號設置
/etc/asterisk/users.conf http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/index.html [6000] host=d
原创 go and vim-go
sudo apt-get install golang golang-golang-x-tools golint set GOPATH in .bashrc, such as ~/go, where bin, pkg, src will
原创 configure options
./configure –help Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration:
原创 Linux下簡體繁體轉換
cconv -f UTF8-CN -t UTF8-TW -o 結果文件 原文件 echo sth | cconv -f UTF8 -t UTF8-TW cconv -h顯示幫助
原创 c罕見語法
##在宏定義中,取參數字符串,如以X(Z)調用#define X(Y) ##Y時擴展爲Z &&取得對應標籤,如&&a表示標籤a(用a:定義)處