git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| "不兼容vi | |
| set nocompatible | |
| "让删除键更好用 | |
| set backspace=2 | |
| "不创建撤销文件 | |
| set noundofile | |
| "取消自动备份 | |
| set nobackup | |
| "自动缩进 | |
| set autoindent |
| //given the urls of files to download, store them on the filesystem | |
| function download_all_files (urls, base_destination, job_id, cb) { | |
| var url = urls.shift(); | |
| var file_path = path.join(base_destination, job_id); | |
| // the path to the file without the filename | |
| var path_to_file_folder = path.dirname(file_path); | |
| // the method to store a downloaded file to the fs | |
| // makes an http request and writes the response to a file |
| /* | |
| iOS上传所需基本图片 | |
| icon | |
| ● Icon.png – 57×57 iPhone应用图标 | |
| ● Icon@2x.png – 114×114 iPhone Retina显示屏应用图标 | |
| ● Icon-72.png – 72×72 iPad应用图标 |
| /* | |
| * packages/reststop2/auth.js | |
| * Add a method to handle OPTIONS request | |
| */ | |
| // return nothing | |
| RESTstop.add('login', {'method': 'OPTIONS'}, function() {}) |
| # 1.install gource using HomeBrew | |
| $ brew install gource | |
| # 2.install avconv | |
| git clone git://git.libav.org/libav.git | |
| cd libav | |
| # it will take 3-5 minutes to complie, be patient. | |
| ./configure --disable-yasm | |
| make && make install |
| # install bzr and gource | |
| # get a branch of Mir's trunk code | |
| # create gource video | |
| $ sudo apt-get install bzr gource | |
| $ bzr branch lp:mir | |
| $ cd mir | |
| $ gource \ | |
| -s .06 \ |
| # Get Graphics Magick | |
| > cd / | |
| > mkdir /dowload | |
| > cd /download | |
| > wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/GraphicsMagick-LATEST.tar.gz | |
| > tar -xzvf GraphicsMagick-LATEST.tar.gz | |
| > cd GraphicsMagick-1.3.21 (or the lastest graphics magick) | |
| # Install Graphics Magick | |
| ## Get libs |
| # iOS | |
| app_identifier "com.myapp.app" # The bundle identifier of your app | |
| apple_id "me@gmail.com" # Your Apple email address | |
| team_id "1234ABCD" # Developer Portal Team ID | |
| # Android | |
| json_key_file "./google-play-api-secret.json" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one | |
| package_name "com.myapp.app" # Your Android app package |
| upstream myapp { | |
| server 127.0.0.1:8081; | |
| } | |
| limit_req_zone $binary_remote_addr zone=login:10m rate=1r/s; | |
| server { | |
| listen 443 ssl spdy; | |
| server_name _; | |