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
<機能性> | |
・ログのレベルが適切か | |
→内容的にはWARNログなのにdebugメソッドで実行されている | |
・入力チェックが行われているか | |
・想定外の入力の対応が漏れていないか | |
・NullPointerExceptionが発生しないか | |
→nullチェックしてください | |
→仕様上nullは返らないのでnullチェックの必要がありません | |
・ClassCastExceptionが発生しないか | |
→タイプセーフにしてください |
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
画像ファイルの場合 | |
<input type="file" accept="image/jpeg,image/png"> | |
CSVファイルの場合 | |
<input type="file" accept="text/comma-sparated-value"> |
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
### Amazon API TOOL DOWNLOAD ### | |
wget http://ec2-downloads.s3.amazonaws.com/AutoScaling-2011-01-01.zip | |
wget http://ec2-downloads.s3.amazonaws.com/CloudWatch-2010-08-01.zip | |
wget http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip | |
wget http://ec2-downloads.s3.amazonaws.com/ElasticLoadBalancing.zip | |
wget http://awsiammedia.s3.amazonaws.com/public/tools/cli/latest/IAMCli.zip | |
wget http://s3.amazonaws.com/rds-downloads/RDSCli.zip | |
wget http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip | |
### Amazon API TOOL DOWNLOAD ### |
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
echo 'export JAVA_HOME=/etc/alternatives/jre' >> ~/.bashrc | |
echo 'export EC2_HOME=/home/ec2-user/tools/ec2api' >> ~/.bashrc | |
echo 'export AWS_AUTO_SCALING_HOME=/home/ec2-user/tools/autoscaling' >> ~/.bashrc | |
echo 'export AWS_CLOUDWATCH_HOME=/home/ec2-user/tools/cloudwatch' >> ~/.bashrc | |
echo 'export AWS_ELB_HOME=/home/ec2-user/tools/elb' >> ~/.bashrc | |
echo 'export AWS_IAM_HOME=/home/ec2-user/tools/iam' >> ~/.bashrc | |
echo 'export AWS_RDS_HOME=/home/ec2-user/tools/rds' >> ~/.bashrc | |
echo 'export AWS_S3_HOME=/home/ec2-user/tools/s3' >> ~/.bashrc | |
echo 'export AWS_ACCESS_KEY=Input Your Access Key' >> ~/.bashrc |
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
sudo easy_install pip | |
sudo pip install awscli | |
sudo pip install awscli --upgrade | |
echo 'export AWS_CONFIG_FILE=/home/ec2-user/config_file' >> ~/.bashrc | |
echo 'complete -C aws_completer aws' >> ~/.bash_profile | |
source ~/.bashrc | |
aws help |
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
# Amazon CloudFront | |
http://bit.ly/13VwFIz | |
# Amazon CloudSearch | |
http://bit.ly/146VZtD | |
# Amazon CloudWatch | |
http://bit.ly/15norXD | |
# Amazon Data Pipelines |
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
$ curl -L http://www.opscode.com/chef/install.sh | sudo bash | |
$ knife cookbook create apache -o cookbooks | |
$ vi solo.rb | |
file_cache_path "/tmp/chef-solo" | |
cookbook_path ["/home/ec2-user/cookbooks"] | |
$ vi localhost.json | |
{ |
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
$ sudo yum groupinstall 'Development Tools' 'Development Libraries' |
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
{ | |
/* | |
* UI関係 | |
*/ | |
// カラー&スキーマ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", // カラー | |
"theme": "Phoenix Dark.sublime-theme", // スキーマ | |
"phoenix_color_green": true, |
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
ref: http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/InstanceStorage.html | |
$sudo ls /dev/sd* | |
$sudo mkfs -t ext4 /dev/sdf | |
$sudo mkdir /ebs | |
$sudo mount /dev/sdf /ebs | |
$sudo umount -d /dev/sdf |
OlderNewer