和大家分享一下我整理的有趣的Github repository,项目地址在repo_starred
欢迎大家fork或者给我发issue
部分内容如下,不定期更新:
##navigation
| # vim style tmux config | |
| # use C-a, since it's on the home row and easier to hit than C-b | |
| set-option -g prefix C-a | |
| unbind-key C-a | |
| bind-key C-a send-prefix | |
| set -g base-index 1 | |
| # Easy config reload | |
| bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." |
| """"""""""""""""""""""""""""""""" | |
| " Refer to https://github.com/amix/vimrc | |
| """"""""""""""""""""""""""""""""" | |
| let g:isWindows = has('win32') || has('win64') | |
| let g:isGUI = has('gui_running') | |
| set nocompatible " be iMproved | |
| filetype off " required! | |
| if g:isWindows |
和大家分享一下我整理的有趣的Github repository,项目地址在repo_starred
欢迎大家fork或者给我发issue
部分内容如下,不定期更新:
##navigation
| curl -XPUT 'http://localhost:9200/us/user/1?pretty=1' -d ' | |
| { | |
| "email" : "[email protected]", | |
| "name" : "John Smith", | |
| "username" : "@john" | |
| } | |
| ' | |
| curl -XPUT 'http://localhost:9200/gb/user/2?pretty=1' -d ' | |
| { |
| 1 普通匹配,遵循最长匹配规则,假设一个请求匹配到了两个普通规则,则选择匹配长度大的那个 | |
| 例如: | |
| location /{ | |
| [matches] | |
| } | |
| location /test{ | |
| [matches] | |
| } | |
| 2 精确匹配 | |
| location = /{ |
| server { | |
| listen *:80; | |
| server_name www.example.com; | |
| rewrite ^(.*) http://example.com $1 permanent; | |
| } | |
| server { | |
| listen *:80; | |
| server_name example.com; |
| [user] | |
| name="NAME HERE" | |
| email="E-MAIL HERE" | |
| [alias] | |
| co = checkout | |
| dt = difftool | |
| cm = commit | |
| cma = "commit -a" | |
| s = status |
| console.reset = function () { | |
| return process.stdout.write('\033c'); | |
| } |