Skip to content

Instantly share code, notes, and snippets.

View tarumzu's full-sized avatar
☀️
ほどほどにやれることをやりきる

Wataru Mizukami tarumzu

☀️
ほどほどにやれることをやりきる
View GitHub Profile
@tarumzu
tarumzu / .gitconfig
Last active February 29, 2016 15:33
[core]
excludesfile = ~/.gitignore_global
pager = less
autocrlf = input
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =~
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
@tarumzu
tarumzu / .zshrc
Last active February 21, 2016 14:31
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="taru"
# Uncomment the following line to use case-sensitive completion.
@tarumzu
tarumzu / taru.zsh-theme
Created February 21, 2016 13:45
oh-my-zsh theme
# -------------------------------------
# zshのオプション
# -------------------------------------
## 補完機能の強化
autoload -U compinit
compinit
## 入力しているコマンド名が間違っている場合にもしかして:を出す。
setopt correct
" nathanaelkane/vim-indent-guides
let g:indent_guides_auto_colors = 0
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=red ctermbg=3
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=green ctermbg=4
hi IndentGuidesOdd guibg=red ctermbg=3
hi IndentGuidesEven guibg=green ctermbg=4
set history=1000 " コマンドの履歴
"set clipboard+=unnamed " クリップボード
set autoindent " インデント
set hlsearch " 検索結果文字列のハイライト
@tarumzu
tarumzu / docker-machine-use-nfs.sh
Last active August 28, 2015 08:01 — forked from olalonde/boot2docker-use-nfs.sh
Script to mount /Users with nfs instead of vboxsf in docker-machine.
#!/bin/bash
#
# This script will mount /Users in the docker-machine VM using NFS (instead of the
# default vboxsf). It's probably not a good idea to run it while there are
# Docker containers running in docker-machine.
#
# Usage: sudo ./docker-machine-use-nfs.sh [machine name]
#
@tarumzu
tarumzu / unicorn
Last active February 21, 2016 14:03
/etc/init.d/unicorn rcスクリプト
#!/bin/sh
#
##
# chkconfig: 2345 97 20
# description: unicorn
# processname: unicorn
#
# Source function library.
. /etc/rc.d/init.d/functions
@tarumzu
tarumzu / post_to_slack.rb
Last active August 29, 2015 14:16 — forked from jlecour/post_to_slack.rb
Incoming Webhooks
# encoding: UTF-8
require 'optparse'
require 'net/https'
require 'json'
def parse_options(argv)
opts = {}
@parser = OptionParser.new do |o|