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
| #!/usr/bin/env bash | |
| set -ex | |
| service monit stop | |
| sed -i -e "s/^user .*;$/user ec2-user ec2-user;/" /etc/nginx/nginx.conf | |
| sed -i -e "s/^listen.owner .*$/listen.owner = ec2-user/" /etc/php-fpm.d/www.conf | |
| sed -i -e "s/^listen.group .*$/listen.group = ec2-user/" /etc/php-fpm.d/www.conf | |
| sed -i -e "s/nginx:nginx/ec2-user:ec2-user/g" /etc/monit.d/php-fpm |
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 | |
| function base64url_encode($data) { | |
| return rtrim(strtr(base64_encode($data), '+/', '-_'), '='); | |
| } | |
| function base64url_decode($data) { | |
| return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT)); | |
| } | |
| ?> |
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 | |
| chdir(dirname(__FILE__)); | |
| // Clean argument values | |
| $phpStormRunner = null; | |
| $cleanedArgv = array(); | |
| foreach ($_SERVER['argv'] as $key => $value) { | |
| if (strpos($value, 'ide-phpunit.php') === false) { | |
| $cleanedArgv[] = $value; |
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
| # 少し凝った zshrc | |
| # License : MIT | |
| # http://mollifier.mit-license.org/ | |
| ######################################## | |
| # 環境変数 | |
| export LANG=ja_JP.UTF-8 | |
| # 色を使用出来るようにする |