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
#!/bin/bash | |
#Set sqlpassword | |
MYSQL_PASSSWORD="$(curl http://169.254.169.254/latest/meta-data/instance-id)" | |
#Set Timezon | |
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime | |
sed -i -e "s/ZONE=.*$/ZONE=\"Asia\/Tokyo\"/" /etc/sysconfig/clock | |
sed -i -e "s/UTC=.*$/UTC=false/" /etc/sysconfig/clock | |
echo 'ARC=false' >> /etc/sysconfig/clock |
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
aws cloudfront create-distribution --cli-input-json "$(curl -l -s https://raw.githubusercontent.com/amimoto-ami/create-cf-dist-settings/master/source_dist_setting.sh | origin_url='{ORIGIN URL HERE}' origin_domain='{ORIGIN DOMAIN NAME HERE}' sh)" |
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
#!/bin/bash | |
## Wocker - http://wckr.github.io | |
## Sctipt to Switch Container (STOP active Container & START other Container) | |
## switch.sh [Container Name] | |
#SET Options | |
shopt -s expand_aliases | |
source ~/.bash_profile | |
## Check 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
#!/bin/bash | |
shopt -s expand_aliases | |
source ~/.bash_profile |
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
#!/bin/bash | |
# install CodeDeploy agent | |
sudo yum -y update | |
sudo yum install -y ruby | |
sudo yum install -y aws-cli | |
mkdir -p /tmp/codedeploy_agent | |
cd /tmp/codedeploy_agent | |
aws s3 cp s3://aws-codedeploy-us-east-1/latest/install . --region ap-northeast-1 | |
chmod +x ./install |
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
#!/bin/bash | |
sudo /usr/sbin/usermod -s /bin/bash nginx | |
sudo /sbin/service monit stop | |
sudo /sbin/service nginx stop | |
sudo /sbin/service hhvm stop | |
sudo /usr/sbin/usermod -d /var/www/vhosts nginx | |
sudo /sbin/service hhvm start | |
sudo /sbin/service nginx start |
NewerOlder