Skip to content

Instantly share code, notes, and snippets.

@transtone
transtone / combine.lua
Created February 21, 2020 06:53 — forked from RavenZZ/combine.lua
combine two request by openresty
cjson = require "cjson"
ngx. req. read_body() -- explicitly read the req body
local data = ngx. req. get_body_data()
local jsonBody = cjson. decode(data);
if data then
local reqs = { }
--ngx. say("body data:")
for key, value in pairs(jsonBody) do
--ngx.print(key)
let mapleader = "q"
call plug#begin()
Plug 'asvetliakov/vim-easymotion'
call plug#end()
" Move to line
map <Leader><Leader>l <Plug>(easymotion-bd-jk)
map <Leader>c :noh<CR>
map <Leader>w :w<CR>
; #CommentFlag ;
; Key Syntax
; Alt !
; Ctrl ^
; Shift +
; Win Logo #
#NoTrayIcon
ScrollLock::Capslock
set hlsearch
set incsearch
set ignorecase
set smartcase
set showmode
set keep-english-in-normal
set ideajoin
set clipboard-=ideaput
let mapleader="q"
registry=https://registry.npm.taobao.org/
puppeteer_skip_chromium_download=true
puppeteer_download_host=https://storage.googleapis.com.cnpmjs.org
chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver
sass_binary_site=http://cdn.npm.taobao.org/dist/node-sass
{
"editor.fontFamily": "Fira Code Retina, 等距更纱黑体 SC Medium, Monaco, monospace, Source Han Sans SC",
"editor.fontSize": 13,
"editor.fontLigatures": true,
"editor.insertSpaces": true,
"search.followSymlinks": false,
"outline.problems.enabled": false,
"window.enableMenuBarMnemonics": false,
"window.zoomLevel": 0,
"window.title": "${activeEditorLong}${separator}${rootName}",
; #CommentFlag ;
; Key Syntax
; Alt !
; Ctrl ^
; Shift +
; Win Logo #
#NoTrayIcon
; windows console 和 mintty 中使用 tmux
@transtone
transtone / vimium
Last active September 22, 2019 13:00
unmap J 
unmap K
unmap u
unmap t
unmap h
unmap l
unmap <a-p>
map <a-n> previousTab
map <a-p> nextTab
map h previousTab
#NoTrayIcon
ScrollLock::Capslock
Capslock::Ctrl
#t::#Up
^space::#space
!q::!F4
;==================================================
@transtone
transtone / extensions.json
Last active April 27, 2018 08:20
Visual Studio Code Settings Sync Gist
[
{
"id": "AlanWalk.markdown-toc",
"name": "markdown-toc",
"publisher": "AlanWalk",
"version": "1.5.6"
},
{
"id": "EditorConfig.EditorConfig",
"name": "EditorConfig",