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
sudo gem i aws-s3 | |
vim /usr/local/lib/ruby/gems/2.0.0/gems/sauberia-aws-s3-0.6.2.1254423624/lib/aws/s3/extensions.rb |
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 | |
$ini = parse_ini_file($_SERVER['argv'][1],true); | |
foreach($ini as $section => $conf){ | |
echo $section,":\n"; | |
//sction内ループ | |
foreach($conf as $key => $val){ | |
if(is_array($val)){ | |
echo " ",$key,":\n"; | |
foreach($val as $num => $file){ |
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
set :user, "shinofara" | |
set :password, "password" |
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
Show hidden characters
{ | |
"indent" : 2, // インデント | |
"camelcase":true, // キャメルケース | |
"maxlen" : 80, // 一行の最大文字数 | |
"unused" : true, // 宣言のみで使用していない変数を検出 | |
"eqeqeq":true, // ==、!=の使用禁止 | |
"undef" : true, // グローバル変数へのアクセスを禁止 | |
"devel" : true // console、alertを許可 | |
} |
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
# S3設定 | |
AWS::S3::Base.establish_connection!( | |
:access_key_id => ACCESS_KEY_ID, | |
:secret_access_key => SECRET_ACCESS_KEY, | |
); | |
# 東京リージョンの場合設定値を置換します。 | |
if REGION == "Tokyo" then | |
AWS::S3::DEFAULT_HOST.replace "s3-ap-northeast-1.amazonaws.com" | |
end |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Jasmine Spec Runner v2.0.0-alpha</title> | |
<link rel="shortcut icon" type="image/png" href="lib/jasmine-2.0.0-alpha/jasmine_favicon.png"> | |
<link rel="stylesheet" type="text/css" href="lib/jasmine-2.0.0-alpha/jasmine.css"> |
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
sudo su | |
cd /usr/local/src/ | |
git clone git://github.com/FooBarWidget/passenger.git | |
cd passenger/ | |
gem build passenger.gemspec | |
gem install passenger-4.0.0.rc6.gem |
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
sudo su | |
cd /usr/local/src/ | |
curl -O https://selenium.googlecode.com/files/selenium-server-standalone-2.32.0.jar |
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
when("/hoge", { | |
when("/hoge/:id", { |
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
$ sudo su | |
$ cd /usr/local/src | |
$ wget http://redis.googlecode.com/files/redis-2.6.12.tar.gz | |
$ tar xzf redis-2.6.12.tar.gz | |
$ cd redis-2.6.12 | |
$ make;make install | |
$ ln -s /usr/local/src/redis-2.6.12 /usr/local/redis | |
$ sudo mkdir -pv /var/data/redis | |
$ sudo chown -R root:wheel /var/data/redis |