This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [brew install URL] will fail with message | |
# "Invalid usage: Installation of thrift from a GitHub commit URL is unsupported! " | |
# But it will succeed if download the thrift.rb at first | |
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/4ba654c6d99b3b6804dd3843546a9dcbb700188b/Formula/thrift.rb \ | |
-O ~/Downloads/thrift.rb | |
brew install ~/Downloads/thrift.rb | |
brew pin thrift | |
thrift --version # show "Thrift version 0.11.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["g","w"], "command": "find_under_expand" }, | |
{ "keys": ["g", "s"], "command": "find_under_expand_skip" }, | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ignored_packages": [], | |
"vintage_ctrl_keys": true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set smoothscroll | |
unmap a | |
map ag :tabnew google<space> | |
let searchengine b = "https://www.baidu.com/s?wd=%s" | |
let searchengine d = "http://dict.youdao.com/w/eng/%s" | |
let searchengine w = "https://en.wikipedia.org/w/index.php?search=%s" | |
let completionengines = ["google", "baidu"] | |
map an :tabnew https://www.evernote.com/Home.action<CR> | |
unmap I | |
map I :history!<space> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show keybinding in current shell | |
bash: bind -p | |
zsh: bindkey -L |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g mouse on | |
set -g mouse-utf8 on | |
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M | |
bind -n WheelDownPane select-pane -t= \; send-keys -M | |
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M | |
#Press Ctral for scrolling faster | |
bind -t vi-copy C-WheelUpPane halfpage-up | |
bind -t vi-copy C-WheelDownPane halfpage-down | |
bind -t emacs-copy C-WheelUpPane halfpage-up | |
bind -t emacs-copy C-WheelDownPane halfpage-down |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mapkey('gi', 'test', function() { | |
var inputs = document.getElementsByTagName('input'); | |
var input = null; | |
for(var i=0; i<inputs.length; i++) { | |
if(inputs[i].type=='text') { | |
input = inputs[i]; | |
break; | |
} | |
} | |
if(input) { |