- そもそもなぜRuby Perl
- RubyとPerlは似ているところのほうが多い * ここが好き、嫌い
- Perlは覚えることが多い
- 自分がやりたいことをコードに落としやすかった
- 言語を変えて生産性は変わるのか
set-option -g default-shell "/bin/zsh" | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
bind-key C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
bind-key C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer" | |
set-option -g prefix C-t | |
bind C-t next-window | |
set -g mode-mouse on | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on | |
set -g mouse-select-window on |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
appuserのホームディレクトリにsample_appをgit clone | |
[keoken@app002]~% sudo -u appuser sh -c 'cd /home/appuser;git clone https://github.com/keokent/sample_app.git' | |
その前に | |
rubyがちゃんと入ってなかった疑惑 | |
ruby -vをたたくとデフォルトで入っているrubyが指定されている | |
bash -c 'ruby -v'とやるとruby-2.0.0-p195が指定されてた |
puppet manifestを書いていくどん | |
app002の/home/keoken/sample_app_puppet/sample_app_manifest.ppに | |
manifestを書いていく | |
もろもろのインストール | |
sample_app_manifest.pp | |
-------------------------------------------- | |
package { |
serverspecでテストするどん | |
手元のPCからsshでserverspecをやる | |
サーバーにログインするときにパスワード認証が必要 | |
spec_helperの変更 | |
------------------------------------------------------------------------------ | |
require 'serverspec' | |
require 'pathname' | |
require 'net/ssh' |
MySQLのインストール | |
$ sudo yum -y install mysql-server | |
Nginxのインストール | |
$ ls /etc/yum.repos.d/ | |
$ cat /etc/yum.repos.d/cobbler-config.repo | |
% rpm -ql nginx | |
% sudo /usr/sbin/nginx これで起動 |
import java.util.ArrayList; | |
import java.util.Collections; | |
import org.apache.commons.lang3.StringUtils; | |
import org.apache.commons.lang3.time.DateUtils; | |
public class Sekigae{ | |
public static void main(String[] args){ | |
ArrayList<String> list = new ArrayList<String>(); |
person1 = {:first => "Gendo", :last => "Ikari"} | |
person2 = {:first => "Yui", :last => "Ikari"} | |
person3 = {:first => "Shinji", :last => "Ikari"} | |
params = {:father => person1, :mother => person2, :child => person3} | |
p params[:father][:first] |