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 | |
// php pearCheck.php basePath targetPath | |
const COMPLETE_MESSAGE = 'OK'; | |
const ERROR_MESSAGE = 'NG'; | |
echo checkMd5Files($argv[1], $argv[2]); | |
function checkMd5Files($basePath, $targetPath) { |
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
$ cd ~ | |
$ pwd | |
/var/www |
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
$ wget https://ftp.mozilla.org/pub/firefox/releases/24.0esr/linux-x86_64/ja/firefox-24.0esr.tar.bz2 | |
$ tar xfj firefox-24.0esr.tar.bz2 |
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
# ホワイトリスト追加 START | |
$host_patterns[] = '^www\.example\.com$'; | |
$host_patterns[] = '^example\.com$'; | |
# ホワイトリスト追加 END |
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
$ service network restart |
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
$ vim /etc/apache2/envvars | |
// www-data というのを確認 | |
export APACHE_RUN_USER=www-data | |
export APACHE_RUN_GROUP=www-data |
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
メールを送信できませんでした。 | |
ホスティングサービス上で mail() 関数が無効になっている可能性があります。 |
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
// Apache2.4 | |
# apt install apache2 | |
// PHP7.2 | |
# apt install php7.2-cli | |
// mod_php | |
$ apt install libapache2-mod-php | |
// php mysql |
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
$ brew install pkg-config |
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 | |
// for @onokatio_ | |
// https://twitter.com/onokatio_/status/981875531359518725 | |
$twitterId = '@mona'; | |
$searchWord = 'f'; | |
$findLimit = 13; | |
$twitterIdLength = 16; // @を含むTwitterID最大文字長 | |
$i = 0; |
NewerOlder