- お膳立て
- 環境は Vagrant から起動する CentOS
- JDK7
- Hadoop ディストリビューションは CDH
一言で言うと…
#!/bin/bash | |
# | |
# switch-ruby - Simple Ruby switcher | |
# | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2014 Jun SAITO <jun.saito@u-cast.com> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy |
#key | |
set-option -g prefix C-s | |
unbind-key C-b | |
bind-key C-s send-prefix | |
bind s split-window -v | |
bind v split-window -h | |
bind j select-pane -D | |
bind k select-pane -U | |
bind h select-pane -L | |
bind l select-pane -R |
default Ubuntu | |
label Ubuntu | |
kernel <%= @kernel %> | |
append initrd=<%= @initrd %> video=vga16fb:off vga16fb.modeset=0 interface=eth0 url=<%= foreman_url("provision")%> ramdisk_size=10800 root=/dev/rd/0 rw auto=true priority=critical hostname=unassigned-hostname DEBCONF_DEBUG=5 language=en locale=en_IE.UTF-8 console-setup/ask_detect=false keyboard-configuration/layoutcode=de console-keymaps-at/keymap=de-latin1-nodeadkeys keyboard-configuration/xkb-keymap=de debian-installer/country=AT debian-installer/fb=false BOOTIF=<%= mac %> |
d-i debian-installer/language string en | |
d-i debian-installer/country string AT | |
d-i debian-installer/locale string en_IE.UTF-8 | |
d-i localechooser/supported-locales en_US.UTF-8, en_IE.UTF-8 | |
d-i console-setup/ask_detect boolean false | |
d-i keyboard-configuration/xkb-keymap string de | |
d-i keyboard-configuration/layoutcode string de | |
d-i keyboard-configuration/modelcode string pc105 | |
d-i console-keymaps-at/keymap string de-latin1-nodeadkeys |
#!/usr/bin/env ruby | |
# http://sssslide.com/speakerdeck.com/a_matsuda/rails3-recipe-book-gaiden#114 | |
ARGV.each do |file| | |
File.open(file,'r+:UTF8-MAC') do |f| | |
str = f.read | |
f.rewind | |
f.truncate(0) | |
f.set_encoding('UTF-8') |
#!/bin/bash | |
ACCESS_KEY="<access-key>" | |
ACCESS_KEY_SECRET="<access-key-secret>" | |
SERVER_NUM=${1:-1} | |
HOST_NAME="<hostname>" | |
DISK_ID="<disk-id>" | |
SSH_KEY_ID="<ssh-key-id>" | |
PASSWORD="<password>" |
git grep 'hogehoge' -- "*.rb" |