Skip to content

Instantly share code, notes, and snippets.

Yuki Ito yuitowest

Block or report user

Report or block yuitowest

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@yuitowest
yuitowest / README
Created Oct 14, 2014
git-flow-completion.zsh 読み込んでも補完が効かない場合
View README
~/.zsh/site-functions/_git を作成
$FPATH に~/.zsh/site-functions を追加する
$ export FPATH=~/.zsh/site-functions:$FPATH
View gist:1161724
var appendEntry = function(selector, entry) {
if (entry != undefined && entry.yt.length > 0) {
var $dl = $('<dl/>', {class: 'entry'});
$dl.append($('<dt/>', {class: 'title'}))
$dl.children("dt").append($('<a/>', {href: entry.url, text: entry.title}))
$dl.append($('<dd/>'));
$dl.children("dd").append("<ul/>");
for (i in entry.yt) {
var $li = $('<li/>');
@yuitowest
yuitowest / gist:4064453
Created Nov 13, 2012
sublime text2 sidebar keymap
View gist:4064453
{ "keys": ["j"], "command": "move", "args": {"by": "lines", "forward": true}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["k"], "command": "move", "args": {"by": "lines", "forward": false}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["l"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["h"], "command": "move", "args": {"by": "characters", "forward": false}, "context":
@yuitowest
yuitowest / install_vagrant_vmware_fusion.md
Last active Dec 15, 2015
Vagrantが1.1でVMware Fusion向けプラグインを公開したので試した。
View install_vagrant_vmware_fusion.md

Vagrantの最新版をインストール

$ vagrant -v
Vagrant version 1.1.5
@yuitowest
yuitowest / create_vagrant_box_for_vmware_fusion.md
Last active Dec 15, 2015
Vmware Fusion用のVagrant BOXファイルの作成のやりかたメモ
View create_vagrant_box_for_vmware_fusion.md
@yuitowest
yuitowest / remap.vim
Created Oct 9, 2013
新人研修用 vim キーマップ
View remap.vim
noremap <Up> :<C-u>echohl WarningMsg \| echo "Don't use Up key!!! Press [k]" \| echohl None<CR>
noremap! <Up> <ESC>:<C-u>echohl WarningMsg \| echo "Don't use Up key!!! Press [ESC][k]" \| echohl None<CR>
noremap <Down> :<C-u>echohl WarningMsg \| echo "Don't use Down key!!! Press [j]" \| echohl None<CR>
noremap! <Down> <ESC>:<C-u>echohl WarningMsg \| echo "Don't use Down key!!! Press [ESC][j]" \| echohl None<CR>
noremap <Left> :<C-u>echohl WarningMsg \| echo "Don't use Left key!!! Press [l]" \| echohl None<CR>
noremap! <Left> <ESC>:<C-u>echohl WarningMsg \| echo "Don't use Left key!!! Press [ESC][l]" \| echohl None<CR>
noremap <Right> :<C-u>echohl WarningMsg \| echo "Don't use Right key!!! Press [h]" \| echohl None<CR>
noremap! <Right> <ESC>:<C-u>echohl WarningMsg \| echo "Don't use Right key!!! Press [ESC][h]" \| echohl None<CR>
noremap <BS> :<C-u>echohl WarningMsg \| echo "Don't use BackSpace key!!! Press [ctrl-h]" \| echohl None<CR>
noremap! <BS> <ESC>:<C-u>echohl WarningMsg \| echo "Don't use BackSpace key!
View packer-vmware-error.rst

Build 'vmware' errored

packer build で下記のようなエラーがでた

Build 'vmware' errored: Couldn't find VMware tools for 'linux'! VMware often downloads these
tools on-demand. However, to do this, you need to create a fake VM
View elasticsearch-plugin.rst
@yuitowest
yuitowest / _hg
Created Dec 3, 2011
Zsh completion script for mercurial
View _hg
#compdef hg
# Zsh completion script for mercurial. Rename this file to _hg and copy
# it into your zsh function path (/usr/share/zsh/site-functions for
# instance)
#
# If you do not want to install it globally, you can copy it somewhere
# else and add that directory to $fpath. This must be done before
# compinit is called. If the file is copied to ~/.zsh.d, your ~/.zshrc
# file could look like this:
You can’t perform that action at this time.