$ android list sdk --all --extended
$ android update sdk --all --filter platform-tools --no-ui
$ android update sdk --all --filter build-tools-24.0.1 --no-ui
" enable syntax highlighting | |
if has("syntax") | |
syntax on | |
endif | |
" remember the last edited position | |
if has("autocmd") | |
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif | |
autocmd BufRead,BufNewFile *.jade setlocal ft=jade | |
endif |
alias pbcopy='xclip -selection clipboard' | |
alias pbpaste='xclip -selection clipboard -o' | |
# ssh tunnel | |
alias gateway='ssh -D4444 [email protected]' |
export CLICOLOR=1 | |
export LSCOLORS=Exfxcxdxbxegedabagacad |
alias screensaver='open /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app' |
Sample: Wait for Service
Wait loginComplete = new Wait() {
@Override
public Boolean apply() {
return Service.isLogin() == true;
}
};
Wait.until(loginComplete);
m3u8_to_mp4() {
url=${1}
filename=${2}
ffmpeg -i $url -c copy -bsf:a aac_adtstoasc $filename
}
Usage: m3u8_to_mp4 ${url} ${filename}
Package requirement:
Usgae: python dump_har.py 'https://www.google.com' | grep mp3