perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "ja_JP.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
This file contains hidden or 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
haman29 |
This file contains hidden or 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
source "https://rubygems.org" | |
gem "rake" | |
gem 'foreman' | |
gem "ruboty-cron" | |
gem "ruboty-slack" | |
gem "ruboty-redis" | |
gem "ruboty-echo" |
This file contains hidden or 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
# リポジトリ登録 | |
$ rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm |
This file contains hidden or 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
# Login | |
$ heroku login | |
# Create Application (アプリ名は適当に付ける) | |
$ heroku create static-app-name | |
# Clone ruby config files | |
$ cd ~/repository/ | |
$ git clone git://github.com/machida/kuroigamen-sandbox.git |
This file contains hidden or 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
<?php | |
/** | |
* 英数字のランダム文字列を生成する | |
* | |
* @param $size_of_random_string ランダム文字列のサイズ | |
*/ | |
function generateRandomString($size_of_random_string = 8) { | |
// ランダム文字列に使用する文字 | |
$char_list_str = array_merge(range('a', 'z'), range('0', '9'), range('A', 'Z')); |
This file contains hidden or 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
puts 'case1' | |
for n in [*1..50] | |
if n % (3 * 5) == 0 | |
print 'fizzbuzz ' | |
elsif n % 3 == 0 | |
print 'fizz ' | |
elsif n % 5 == 0 | |
print 'buzz ' | |
else | |
print "#{n} " |