Skip to content

Instantly share code, notes, and snippets.

View keokent's full-sized avatar

kenta takeo keokent

  • GMO Pepabo, Inc.
View GitHub Profile
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 ->
@keokent
keokent / YAPC::Asia Tokyo 2013 9-21.md
Last active December 23, 2015 14:49
YAPC::Asia Tokyo 2013 9-21

YAPC::Asia Tokyo 2013 9-21

特別座談会 「Rubyの良いところ語ってください 〜そんなPerlで大丈夫か?〜」

言語比較

  • そもそもなぜRuby Perl
  • RubyとPerlは似ているところのほうが多い * ここが好き、嫌い
  • Perlは覚えることが多い
  • 自分がやりたいことをコードに落としやすかった
  • 言語を変えて生産性は変わるのか
@keokent
keokent / YAPC::Asia Tokyo 2013 9-20.md
Last active December 23, 2015 12:49
YAPC::Asia Tokyo 2013 9-20

YAPC::Asia Tokyo 2013 9-20

学術分野におけるperl

  • 研究テーマが大規模で先輩から引き継ぐ系が多くそのため、perlのコードが代々引き継がれる  - 学生はperlを書かざるをえない

  • perlは言語処理という印象

  • 正規表現、文字列処理に強い
@keokent
keokent / 7.1.memo
Last active December 19, 2015 05:48
Puppetで構築したVMにRailsアプリを入れて、Unicornを起動する。
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が指定されてた
@keokent
keokent / 6.20.memo
Created June 21, 2013 01:34
Nginx,MySQLの設定、起動のManifestを書いた
puppet manifestを書いていくどん
app002の/home/keoken/sample_app_puppet/sample_app_manifest.ppに
manifestを書いていく
もろもろのインストール
sample_app_manifest.pp
--------------------------------------------
package {
@keokent
keokent / 6.19.memo
Last active December 18, 2015 16:39
手元のPCからsshでserverspecを使うためにspec_helperの編集と新しいVMにrubygemsとpuppet、gitを入れた。
serverspecでテストするどん
手元のPCからsshでserverspecをやる
サーバーにログインするときにパスワード認証が必要
spec_helperの変更
------------------------------------------------------------------------------
require 'serverspec'
require 'pathname'
require 'net/ssh'
@keokent
keokent / memo
Created June 19, 2013 01:45
VMでsample_appを動かすための環境構築コマンド履歴 未整理版
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 これで起動
@keokent
keokent / Sekigae_tnmt.java
Created May 24, 2013 10:17
教えていただいたSekigae.javaの改良版!
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>();
@keokent
keokent / 4_6_3.rb
Created May 24, 2013 03:59
Rails Tutorial Chapter4 Exercises 3
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]