To reset launchpad
defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
| git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git | |
| cd nv-codec-headers | |
| vi Makefile # change the first line to PREFIX = ${CONDA_PREFIX} | |
| make install | |
| cd .. | |
| git clone https://git.ffmpeg.org/ffmpeg.git | |
| cd ffmpeg | |
| git checkout n4.2.2 | |
| conda install nasm |
| #!/bin/bash | |
| # | |
| # This macOS bash script helps you initialize a new Shadowsocks server with doctl in seconds. | |
| # Original author: lexrus https://github.com/lexrus | |
| # | |
| # You can get $100 free credit for create VPS in DigitalOcean with my referral link: | |
| # https://m.do.co/c/3eb5cf371fc9 | |
| # | |
| # Please intall and authorize doctl before running this script. | |
| # https://github.com/digitalocean/doctl |
To reset launchpad
defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
| sudo chown -R `whoami` /usr/local | |
| ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go) | |
| export PATH="/usr/local/bin:/usr/local/sbin:$PATH" |
| # based on proze.zsh-theme | |
| function repo_char { | |
| git branch >/dev/null 2>/dev/null && echo '±' && return | |
| hg root >/dev/null 2>/dev/null && echo '☿' && return | |
| echo '$' | |
| } | |
| local pwd="%{$fg[blue]%}%c%{$reset_color%}" |