Skip to content

Instantly share code, notes, and snippets.

@h-akanuma
h-akanuma / .tmux.conf
Last active January 4, 2016 19:29
My MacBook Air's
# Prefix
set-option -g prefix C-q
# set-option -g prefix C-z
setw -g utf8 on
set -g status-utf8 on
set -g status-interval 10
set -g status-bg colour100
setw -g window-status-current-fg black
setw -g window-status-current-bg white
set -g pane-active-border-fg white
@h-akanuma
h-akanuma / .vimrc
Last active January 4, 2016 19:29
My MacBook Air's .vimrc using NeoBundle
set tabstop=2
set shiftwidth=2
set autoindent
set expandtab
set nocompatible
set backspace=start,eol,indent
set whichwrap=b,s,[,],<,>,~
set mouse=
syntax on
set nohlsearch
@h-akanuma
h-akanuma / .bash_profile
Last active January 4, 2016 19:29
My MacBook Air's .bash_profile
export PATH=/opt/local/bin:/opt/local/sbin/:$PATH
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
### tmux auto start setting
if [ -z "$PS1" ]; then return ; fi
if [ -z $TMUX ] ; then
if [ -z `tmux ls` ] ; then
tmux
class Validator
include ActiveModel::Validations
def self.verify(params, rules)
validator = Validator.new params, rules
validator.valid?
end
def initialize(params, rules)
rules.each do |key, val|
@h-akanuma
h-akanuma / RailsAPサーバ検証.jmx
Last active December 30, 2015 14:29
Railsを使うにあたってAPサーバを選定するための負荷検証で使ったJMeterの設定ファイルです。 検証の内容はこちら http://blog.s21g.com/articles/2346
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.5" jmeter="2.10 r1533061">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Rails AP"
enabled="true">
<stringProp name="TestPlan.comments">TEST_AP</stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp> <elementProp name="TestPlan.user_defined_variables" elementType="Arguments"
guiclass="ArgumentsPanel" testclass="Arguments" testname="" enabled="true">
<collectionProp name="Arguments.arguments"/>