Skip to content

Instantly share code, notes, and snippets.

"------------------------------------
" endwise.vim
"------------------------------------
"{{{
let g:endwise_no_mappings=1
"}}}
"----------------------------------------
" 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=
" 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
"------------------------------------
" 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
" 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
#!/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
<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
#!/bin/sh
name=$1
if [ ! -d ${user_dir} ]
then
echo "${name}というユーザーは存在しません。"
sleep 2
exit
fi
(cd git_directory;git --git-dir=.git pull;)
#!/bin/sh
#
# 256色のカラーパレットを表示する
# bash と zsh にて実行可能
#
target_shell=$1
if [ -z "$1" ]; then
target_shell=$(basename "$SHELL")