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
| " 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
| #!/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
| " 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 | |
| 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
| # -*- encoding: utf-8 -*- | |
| require "digest/sha1" | |
| # restful-authentication の config/initializers/site_keys.rb に設定されている | |
| # REST_AUTH_SITE_KEY の値を持ってきて設定 | |
| REST_AUTH_SITE_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
| module Sorcery | |
| module CryptoProviders | |
| class RestfulAuthentication < SHA1 |
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
| package examples.redis; | |
| import java.util.LinkedHashMap; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.SortedMap; | |
| import java.util.TreeMap; | |
| import java.util.regex.Pattern; | |
| import java.util.zip.CRC32; |
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
| # -*- coding: utf-8 -*- | |
| require 'json' | |
| require 'zlib' | |
| class Redis | |
| class Client | |
| def call(command, &block) | |
| if write?(command.first) | |
| command[command.length - 1] = encode(command.last) |
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
| # https://gist.github.com/sue445/5261654 | |
| ja: | |
| helpers: | |
| actions: "Actions" | |
| links: | |
| back: "戻る" | |
| cancel: "キャンセル" | |
| confirm: "本当にいいですか?" | |
| destroy: "削除" |
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
| module Readonlyable | |
| extend ActiveSupport::Concern | |
| def readonly? | |
| return true | |
| end | |
| def before_destroy | |
| raise ActiveRecord::ReadOnlyRecord | |
| end |