find . ! -name '*.apk*' -delete
unzip xxxx.apk -d ${target_dir}
set -ex | |
prepath=`dirname $PWD` | |
# make sure both mac & devbox satisfy, $GOPATH=$HOME/go | |
myhome="${HOME}/" | |
prepath=${prepath:${#myhome}} | |
# set your own devbox username, mine is liuxiguang | |
devboxusername="liuxiguang" | |
sshpass -p ${devboxusername} rsync -avr --delete --exclude=test.go --exclude=.idea --exclude=.vscode --exclude=output ${PWD} dev:/home/${devboxusername}/$prepath | |
echo $(date -u +"%Y-%m-%d %H:%M:%S%Z") |
set incsearch | |
set hls | |
set smartcase | |
set ignorecase | |
set visualbell | |
set noerrorbells | |
set easymotion |
package utils | |
import ( | |
"regexp" | |
"sort" | |
"strings" | |
) | |
// match html tag and replace it with "" | |
func RemoveHtmlTag(in string) string { |