Region : Tokyo
EC2 : c1.xlarge x4
: 5TB/monthのデータ送信 (4台の合算値)
: 20GBのEBSをアタッチ
ELB : 5TB/monthのデータ送信
RDS : m2.2xlarge (Multi-AZ)
This file contains 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
Earthquake.init do | |
command :to_hex do |m| | |
hex_strings = m[1].bytes.collect {|b| b.to_s(16) }.join(" ") | |
# 文字制限かかるからダメだ | |
# zero_add = [] | |
# hex_strings.split(/ /).each do |s| ; zero_add << "0x#{s}" ; end | |
# hex_strings = zero_add.join(' ') | |
input hex_strings |
This file contains 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
#!/usr/bin/env perl | |
package Hoge; | |
use Moo; | |
has num => (is => "rw", default => 1 ); | |
has numnum => (is => "rw", default => sub { 1 } ); | |
# has array => (is => "rw", default => ["aaa", "bbb"] ); # not a coderef or a non-ref or code-convertible | |
has array => (is => "rw", default => sub {["aaa", "bbb"]} ); |
This file contains 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 -*- | |
# tetsuko tweet / earthquake plugin | |
# | |
# superdry: http://shindanmaker.com/a/409109 | |
# | |
require 'httpclient' | |
require 'nokogiri' | |
Earthquake.init do | |
command :tetsuko do |
This file contains 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
#!/usr/bin/env ruby | |
$foo = 10 | |
class C | |
def method | |
puts "Method" | |
end | |
alias_method :new_method, :method |
This file contains 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
"起動時に有効 | |
" Disable AutoComplPop. | |
let g:acp_enableAtStartup = 0 | |
let g:neocomplcache_enable_at_startup = 1 | |
"ポップアップメニューで表示される候補の数。初期値は100 | |
let g:neocomplcache_max_list = 10 | |
"自動補完を行う入力数を設定。初期値は2 | |
let g:neocomplcache_auto_completion_start_length = 2 | |
"手動補完時に補完を行う入力数を制御。値を小さくすると文字の削除時に重くなる |
This file contains 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
"value-domain": | |
"domain" : DOMAIN | |
"password" : PASSWORD |
This file contains 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
′ | |
′ ′ ″″″″=水字字字漢願鐘悪欲永Тハハハハハハハハハハハハハハべ°″′′′ | |
″″-気魔醴醴醴醴醴醴醴醴醴醴蠶鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱鬱顧空-″″″ | |
′″-ゞ 字醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴陽宙心° | |
″″″°大夢顧魔醴醴醴醴鬱醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴鬱過+″″ | |
″′″玉蠶醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴醴蘭魔蘭魔魔魔魔蘭醴醴醴醴醴醴醴醴醴醴醴艦八″ | |
′ ′ ′ 心欲議醴醴醴醴醴醴醴醴醴醴鐘謝全子子子子子子八---‥----=子子子子仲響醴醴醴醴醴譲С! | |
″″″″=堀醴醴醴醴醴醴醴醴醴蠶鬱魔感ゞ ″ ′=譲醴醴醴醴醴蠶譲!″ ″′′ | |
‥∫宇曲醸醴醴醴醴醴醴醴艦驚糖玉Тべ‥°″ |
This file contains 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 main | |
import ( | |
"fmt" | |
"strings" | |
) | |
func main() { | |
foo := "hooo\n" | |
bar := "bar\n" |
This file contains 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
### golang | |
export GOROOT=$HOME/go | |
export GOPATH=$HOME/gocode | |
export PATH=$PATH:$GOROOT/bin |