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
#!/bin/sh | |
if [ -d $HOME/.rbenv ] | |
then | |
echo "$HOME/.rbenv already exists." | |
exit 1 | |
fi | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
mkdir -p ~/.rbenv/plugins |
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
" neobundle required. | |
set nocompatible | |
filetype off | |
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#rc(expand('~/.vim/bundle/')) |
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
#!/bin/sh | |
ORIGIN="serverA" | |
MIRROR="serverB" | |
SYNC_USER="git" | |
ORIGIN_REPO_ROOT="/home/$SYNC_USER/repositories" | |
MIRROR_REPO_ROOT="/home/$SYNC_USER/repositories" | |
LOGFILE=$ORIGIN_REPO_ROOT/gitsync.log | |
reponame=$(basename $(pwd)) |
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
" for Plugin settings | |
" for Wombat | |
if isdirectory($HOME . '/.vim/bundle/Wombat') | |
colorscheme wombat | |
endif | |
" for NERDTree | |
if isdirectory($HOME . '/.vim/bundle/The-NERD-tree') | |
" autocmd VimEnter * NERDTree |
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
" vundle required. | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
" vim-scripts で提供されている vim プラグイン | |
Bundle 'Wombat' | |
Bundle 'pyte' |
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 lines=60 | |
" 横幅 | |
set columns=160 | |
" クリップボード共有 | |
set clipboard=unnamed | |
" ツールバーを削除 |
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
# encoding: utf-8 | |
# Ruby 1.9 + tmail-1.2.7 環境での | |
#「Encoding::CompatibilityError (incompatible encoding regexp match (ASCII-8BIT regexp with ISO-2022-JP string))」 | |
# エラー対策。 | |
# Rails の場合 config/initializers 以下に配置する。 | |
# | |
module TMail | |
class Encoder | |
def phrase( str ) | |
str = normalize_encoding(str) |
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
" for vundle | |
if filereadable(expand("~/.vimrc.vundle")) | |
source ~/.vimrc.vundle | |
endif | |
" for neobundle | |
if filereadable(expand("~/.vimrc.neobundle")) | |
source ~/.vimrc.neobundle | |
endif |
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
#!/bin/sh | |
# backup file directory | |
if [ ! -d $HOME/tmp ] | |
then | |
echo "create directory $HOME/tmp" | |
mkdir $HOME/tmp | |
fi | |
# plugin directory |
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
require 'rubygems' rescue nil | |
require 'win32console' | |
require 'wirble' | |
require 'hirb' | |
# require 'hirb-unicode' | |
require 'pp' | |
require 'awesome_print' | |
# irb の設定 | |
IRB.conf[:SAVE_HISTORY] = 100000 |