1. kotakanbe
  2. myhome

Commits

kotakanbe  committed ad645e3 Draft Merge

merged

  • Participants
  • Parent commits 5cf76bb, d589817
  • Branches default

Comments (0)

Files changed (3)

File .tmux.conf

View file
  • Ignore whitespace
 
-set-option -g prefix C-t
-bind C-t send-prefix
+#set-option -g prefix C-t
+#bind C-t send-prefix
+set-option -g prefix C-y
+bind C-y send-prefix
 unbind C-b
 
 # Unbind existing tmux key bindings, except a few that are commented out.
 
 
 # copy and scroll mode (see "man tmux"), and paste
-unbind [
-bind [ copy-mode
-unbind ]
-bind -r ] paste-buffer -s \015  # sadly '-r' doesnt work here, hopefully one day it does
-unbind PPage
-bind PPage copy-mode -u  # to copymode and one page up (pgup/dn passed on)
+# unbind [
+# bind [ copy-mode
+# unbind ]
+# bind -r ] paste-buffer -s \015  # sadly '-r' doesnt work here, hopefully one day it does
+# unbind PPage
+# bind PPage copy-mode -u  # to copymode and one page up (pgup/dn passed on)
 
-# http://d.hatena.ne.jp/tmatsuu/20111220/1324399472
-set-option -g default-command "~/bin/reattach-to-user-namespace -l $SHELL"
-bind-key C-c run "tmux save-buffer - | ~/bin/reattach-to-user-namespace pbcopy"
-bind-key C-v run "~/bin/reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
 
 #http://d.hatena.ne.jp/tokorom/20110321/1300699319
 # v�ǥޡ�������
 set -g status-fg green
 setw -g window-status-bg default
 setw -g window-status-fg green
-setw -g window-status-alert-attr none
-setw -g window-status-alert-bg default
-setw -g window-status-alert-fg green
+# setw -g window-status-alert-attr none
+# setw -g window-status-alert-bg default
+# setw -g window-status-alert-fg green
 setw -g window-status-current-bg red
 setw -g window-status-current-fg black
 
-
 bind o send 'Enter' \; saveb /tmp/.tmux-exchange \; run-shell 'xsel -i < /tmp/.tmux-exchange; xsel -i -b < /tmp/.tmux-exchange'
 
 #for vim-powerline https://github.com/Lokaltog/vim-powerline
 set -g default-terminal "screen-256color"
 
+# For Mac OSX
+# http://d.hatena.ne.jp/tmatsuu/20111220/1324399472
+# set-option -g default-command "~/bin/reattach-to-user-namespace -l $SHELL"
+# bind-key C-c run "tmux save-buffer - | ~/bin/reattach-to-user-namespace pbcopy"
+# bind-key C-v run "~/bin/reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"

File .vimrc

View file
  • Ignore whitespace
 augroup END
 
 filetype off
+filetype plugin indent off     " required!
 if has('vim_starting')
-  " Load neobundle.
-  if &runtimepath !~ '/neobundle.vim'
-    execute 'set runtimepath+=' . expand('~/.bundle/neobundle.vim')
-  endif
-  call neobundle#rc(expand('~/.bundle'))
+    set runtimepath+=~/.vim/bundle/neobundle.vim/
+    call neobundle#rc(expand('~/.vim/bundle/'))
 endif
 
+"if has('vim_starting')
+"  " Load neobundle.
+"  if &runtimepath !~ '/neobundle.vim'
+"    execute 'set runtimepath+=' . expand('~/.bundle/neobundle.vim')
+"  endif
+"  call neobundle#rc(expand('~/.bundle'))
+"endif
+
 " vimshell
 NeoBundle 'https://github.com/Shougo/vimshell.git'
 
 NeoBundle 'https://github.com/vim-scripts/Source-Explorer-srcexpl.vim'
 NeoBundle 'https://github.com/vim-scripts/taglist.vim.git'
 NeoBundle 'https://github.com/vim-scripts/trinity.vim.git'
+NeoBundle 'https://github.com/majutsushi/tagbar.git'
+NeoBundle 'https://github.com/int3/vim-taglist-plus.git'
 
 " Programing
 NeoBundle 'https://github.com/vim-scripts/errormarker.vim.git'
 NeoBundle 'https://github.com/msanders/snipmate.vim.git'
 NeoBundle 'https://github.com/teramako/jscomplete-vim.git'
 
+" NeoBundle 'https://github.com/vim-scripts/project.vim.git'
+
 " text
 NeoBundle 'https://github.com/vim-scripts/VimOutliner.git'
 
 " markdown
-NeoBundle 'https://github.com/plasticboy/vim-markdown/' "http://vim-users.jp/2009/08/hack52/
+" NeoBundle 'https://github.com/plasticboy/vim-markdown/' "http://vim-users.jp/2009/08/hack52/
 
 " open-browser
 NeoBundle 'https://github.com/tyru/open-browser.vim.git'
 nnoremap tr  :TrinityToggleAll<Return><C-w>=
 "}}}
 
+" tagbar.vim
+nmap tb :TagbarToggle<CR>
+
 " => Haskell section {{{
 """"""""""""""""""""""""""""""
 let g:haddock_browser="/usr/bin/google-chrome"

File 051_rsyslog.md

  • Ignore whitespace
--*- markdown -*-
-
-参考URL
-===========
-* [logstudy 01 rsyslog入門](http://d.hatena.ne.jp/ser1zw/20120220/1329748457)
-
-
-Syslogの欠点
-============
-* UDPなのでメッセージ転送に信頼性がないため、ロストや詐称される可能性あり
-* 暗号化できない
-* 振り分けロジックが単純で送信元ホスト名ごとにフォルダをわけるとかできない
-* Disk I/Oが非効率。ログ出力が同期で1行ごとにfsyncされディスクにフラッシュされるので重い。
-* アクションの先頭に-をつけると非同期にできる
-
-rsyslogがおすすめ
-====================
-* 最近のLinuxディストリビューションの多くがrsyslogを標準にしている
-
-    RHEL5はsyslogだが、RHEL6はrsyslogが標準
-
-* TCP+バッファリングするのでメッセージのロストなし
-* TSLによる暗号化
-* ログローテーション可能
-* 動的ファイル名可能。日ごととか
-* DBへ出力可能
-* 出力が柔軟
-
-    メール、プログラムの標準入力、SNMPトラップ、HDFS
-
-rsyslogでha-logをネットワーク転送してzabbixサーバに集約する
-============================================================
-
-環境
------
-
-