This file contains 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
"------------------------------------ | |
" endwise.vim | |
"------------------------------------ | |
"{{{ | |
let g:endwise_no_mappings=1 | |
"}}} |
This file contains 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
"---------------------------------------- | |
" vim-ref | |
"---------------------------------------- | |
"{{{ | |
let g:ref_open = 'split' | |
let g:ref_refe_cmd = expand('~/.vim/ref/ruby-ref1.9.2/refe-1_9_2') | |
nnoremap rr :<C-U>Unite ref/refe -default-action=split -input= | |
nnoremap ri :<C-U>Unite ref/ri -default-action=split -input= |
This file contains 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"{{{ | |
filetype plugin indent off " required! | |
" initialize"{{{ | |
if has('vim_starting') | |
let bundle_dir = '~/.bundle' | |
if !isdirectory(bundle_dir.'/neobundle.vim') | |
call system( 'git clone https://github.com/Shougo/neobundle.vim.git '.bundle_dir.'/neobundle.vim') | |
endif |
This file contains 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
"------------------------------------ | |
" vim-rails | |
"------------------------------------ | |
""{{{ | |
"有効化 | |
let g:rails_default_file='config/database.yml' | |
let g:rails_level = 4 | |
let g:rails_mappings=1 | |
let g:rails_modelines=0 | |
" let g:rails_some_option = 1 |
This file contains 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"{{{ | |
filetype plugin indent off " required! | |
" initialize"{{{ | |
if has('vim_starting') | |
let bundle_dir = '~/.bundle' | |
if !isdirectory(bundle_dir.'/neobundle.vim') | |
call system( 'git clone https://github.com/Shougo/neobundle.vim.git '.bundle_dir.'/neobundle.vim') | |
endif |
This file contains 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 | |
# sudo ./user_add dlab-inc.jp | |
# 1. ユーザーdlab-inc.jpを追加 | |
# 2. dotfilesを設置 | |
# 3. /etc/httpd/conf.d/以下に、${name}.confの名前でapache用設定を追加 | |
# 4. gitを$HOMEに作成。pushすればhookによりwwwディレクトリを更新する | |
# define name and password | |
name=$1 |
This file contains 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
<VirtualHost *:80> | |
ServerAdmin webmaster@domain | |
DocumentRoot /home/domain/www | |
ServerName domain | |
ErrorLog logs/domain.com-error_log | |
CustomLog logs/domain.com-access_log common | |
<Directory /home/domain/www> | |
Options FollowSymLinks | |
Options -Indexes |
This file contains 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 | |
name=$1 | |
if [ ! -d ${user_dir} ] | |
then | |
echo "${name}というユーザーは存在しません。" | |
sleep 2 | |
exit | |
fi |
This file contains 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
(cd git_directory;git --git-dir=.git pull;) |
This file contains 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 | |
# | |
# 256色のカラーパレットを表示する | |
# bash と zsh にて実行可能 | |
# | |
target_shell=$1 | |
if [ -z "$1" ]; then | |
target_shell=$(basename "$SHELL") |