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 -e | |
wp user create admin [email protected] --role=administrator --user_pass=admin |
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 | |
cd ~ | |
mkdir bin && cd bin | |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
chmod +x wp-cli.phar | |
mv wp-cli.phar wp |
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
tap "akeru-inc/tap" | |
tap "homebrew/bundle" | |
tap "hudochenkov/sshpass" | |
tap "pulumi/tap" | |
tap "rhysd/hgrep", "https://github.com/rhysd/hgrep" | |
tap "teamookla/speedtest" | |
brew "openssl@3" | |
brew "ansible" | |
brew "awscli" | |
brew "cask" |
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
<?php | |
// CPIユーザーID(契約情報で確認してください) | |
$user_id = 'abc123defg'; | |
// リポジトリ名(Backlogで確認してください) | |
$repo_name = 'repository_name'; | |
// Gitレポジトリの位置の指定 | |
$git_dir = '/usr/home/' . $user_id . '/' . $repo_name . '.git'; | |
// 展開先ディレクトリの指定 | |
$work_tree = '/usr/home/' . $user_id . '/html'; | |
// logファイルの指定 |
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 -ex | |
## Set sqlpassword | |
MYSQL_PASSSWORD="$(curl http://169.254.169.254/latest/meta-data/instance-id)" | |
## Set Timezon | |
ln -sf /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 |
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
/** FIX Redirect loop (add wp-config.php) | |
Detect if SSL is used. This is required since we are terminating SSL either on CloudFront or on ELB | |
**/ | |
if (($_SERVER['HTTP_CLOUDFRONT_FORWARDED_PROTO'] == 'https') OR ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) | |
{$_SERVER['HTTPS']='on';} |
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}' |
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
#!/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 |
NewerOlder