Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {| sudo apt-get update | |
| sudo apt-get upgrade | |
| # 1) Download from source, the zip from the site has problems on linux | |
| # https://github.com/cocos2d/cocos2d-x/pull/15958#issuecomment-228919359 | |
| git clone https://github.com/cocos2d/cocos2d-x.git | |
| cd cocos2d-x | |
| # 2016-06-27 branch master is broken, change to commit 04d3550 | |
| git checkout 04d3550 |
| 通过nginx反向代理go语言写的http服务器 | |
| 1. nginx 配置 | |
| #列出所有服务器地址,nginx 自动均衡分发请求到各个服务器。 | |
| upstream frontends { | |
| ip_hash; | |
| server 192.168.199.1:8088; | |
| server 192.168.199.2:8089; | |
| } | |
| server { | |
| listen 80; |
| #!/usr/bin/env bash | |
| # | |
| # gh-dl-release! It works! | |
| # | |
| # This script downloads an asset from latest or specific Github release of a | |
| # private repo. Feel free to extract more of the variables into command line | |
| # parameters. | |
| # | |
| # PREREQUISITES | |
| # |