cat /etc/redhat-release
CentOS release 5.7 (Final)
wget http://curl.haxx.se/download/curl-7.32.0.tar.bz2
tar xf curl-7.32.0.tar.bz2
cd curl-7.32.0/
./configure --prefix=/usr/local/curl --with-ssl --with-libssh2
make -j
paco -D make install
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 'vim-scripts/yanktmp.vim' | |
if neobundle#is_sourced('vimyanktmp.vim') " {{{ | |
map <silent> ty :call YanktmpYank()<CR> | |
map <silent> tp :call YanktmpPaste_p()<CR> | |
map <silent> tP :call YanktmpPaste_P()<CR> | |
let g:yanktmp_file = '/tmp/vimyanktmp' | |
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
" session {{{ | |
NeoBundle 'xolox/vim-session', { | |
\ 'depends' : 'xolox/vim-misc', | |
\ } | |
" }}} | |
if neobundle#is_sourced('vim-session') " {{{ | |
let g:session_directory = $HOME . '/.vimsessions/' | |
let g:session_autoload = 'no' |
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
<?php | |
$context = stream_context_create(array( | |
'http' => array( | |
'ignore_errors' => true, | |
'header' => 'User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)', | |
) | |
)); | |
$response = file_get_contents($url, false, $context); |
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
" memolist.vim {{{ | |
let g:memolist_memo_suffix = "md" | |
let g:memolist_memo_date = "%Y-%m-%d %H:%M" | |
let g:memolist_prompt_tags = 1 | |
" let g:memolist_prompt_categories = 1 | |
" let g:memolist_filename_prefix_none = 1 | |
let g:memolist_template_dir_path = '~/dotfiles/memotemplates' | |
let g:memolist_unite = 1 | |
let g:memolist_unite_option = "-start-insert -vertical" |
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
function! s:Paste64Copy() range | |
let l:tmp = @@ | |
silent normal gvy | |
let l:selected = @@ | |
let b64 = webapi#base64#b64encode(l:selected) | |
if $TMUX != "" | |
"tmuxのとき | |
let cmd = printf('printf "\x1bPtmux;\x1b\x1b]52;;%s\x1b\x1b\\\\\x1b\\" > /dev/tty', b64) | |
" call system('printf "\x1bPtmux;\x1b\x1b]52;;%s\x1b\x1b\\\\\x1b\\" > /dev/tty') | |
elseif $TERM == "screen" |
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
cnoreabbrev <expr> Ctest | |
\ (getcmdtype() == ':' && getcmdline() ==# 'e Ctest' && exists('g:cake.paths.test')) ? g:cake.paths.test : 'Ctest' | |
cnoreabbrev <expr> Cfixute | |
\ (getcmdtype() == ':' && getcmdline() ==# 'e Cfixture' && exists('g:cake.paths.fixtures')) ? g:cake.paths.fixtures : 'Cfixture' | |
cnoreabbrev <expr> Cmodel | |
\ (getcmdtype() == ':' && getcmdline() ==# 'e Cmodel' && exists('g:cake.paths.models')) ? g:cake.paths.models : 'Cmodel' |
cd src
wget git clone --branch=release git://github.com/jonas/tig.git
cd tig
sudo LDLIBS=-lncursesw CFLAGS=-I/usr/include/ncursesw make install install-release-doc prefix=/usr/local/tig
sudo vi /etc/profile.d/tig.sh
export PATH=$PATH:/usr/local/tig/bin/
source /etc/profile.d/tig.sh
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
" ステータスラインの色 ctermfgがバックの色で、ctermbgがフロントの文字色 | |
highlight StatusLine term=NONE cterm=NONE ctermfg=black ctermbg=white | |
highlight StatusLine term=reverse cterm=reverse ctermfg=blue ctermbg=white | |
" 入力モードの時にステータスラインの色を変える。 | |
let g:hi_insert = 'highlight StatusLine guifg=LightGrey guibg=darkblue gui=none ctermfg=white ctermbg=blue cterm=none' | |
if has('syntax') | |
augroup InsertHook | |
autocmd! |
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
sudo yum install mercurial | |
hg clone https://vim.googlecode.com/hg/ vim | |
cd vim | |
hg pull | |
hg update | |
./configure \ | |
--prefix=/usr/local/phpstorm \ | |
--with-compiledby="JetBrains" \ | |
--enable-fail-if-missing \ |