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 |
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 | |
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 | |
## 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
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 | |
#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
# -*- mode: ruby -*- | |
# # vi: set ft=ruby : | |
require 'fileutils' | |
Vagrant.require_version ">= 1.6.0" | |
# Defaults for config options | |
$update_channel = "stable" | |
$vb_gui = false |
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 wp core language install ja --activate | |
wocker wp core update-db | |
wocker wp option update timezone_string 'Asia/Tokyo' | |
wocker wp option update date_format 'Y年n月j日' | |
wocker wp option update time_format 'H:i' | |
wocker wp plugin update-all |
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 | |
## 日本語化 | |
wocker wp core language install ja | |
wocker wp core language activate ja | |
## いろいろなプラグインをインストール | |
echo "いろいろなプラグインをインストールしますか? [Y/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
cat {LogFileName} | grep Googlebot | cut -f5 | awk '!colname[$1]++{print $1}' |
OlderNewer