- インフラコストがかからないこと。
- 特定の誰かに権限が集中しないこと。
- すべてが公開された場所に残ること。(たとえば閲覧する際に認証とが必要ないこと。パーマリンクがあって後から参照しやすいこと。)
- オープンソースコミュニティっぽい方法であること。「オープンソースっぽい」は毎日進化してます。
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
$ composer require symfony/dom-crawler symfony/css-selector --dev |
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
#!/usr/bin/env bash | |
set -ex | |
PHP_VERSION=${1-"7.0"} | |
sudo apt update -y | |
sudo apt install \ | |
php${PHP_VERSION} \ |
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 | |
add_filter( 'wp_image_editors', function( $editors ) { | |
if ( ! class_exists( '_WP_Image_Editor_GD' ) ) { | |
class _WP_Image_Editor_GD extends WP_Image_Editor_GD { | |
protected function _save( $image, $filename = null, $mime_type = null ) { | |
$saved = parent::_save( $image, $filename, $mime_type ); | |
if ( ! empty( $saved["mime-type"] ) && 'image/jpeg' == $saved["mime-type"] ) { | |
jpegoptim( $saved['path'] ); | |
} |
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
diff --git a/features/bootstrap/FeatureContext.php b/features/bootstrap/FeatureContext.php | |
index aaf39713..ae0adb9d 100644 | |
--- a/features/bootstrap/FeatureContext.php | |
+++ b/features/bootstrap/FeatureContext.php | |
@@ -1,14 +1,14 @@ | |
<?php | |
use Behat\Behat\Context\ClosuredContextInterface, | |
- Behat\Behat\Context\TranslatedContextInterface, | |
- Behat\Behat\Context\BehatContext, |
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
sudo chown -R mysql:mysql /var/lib/mysql | |
sudo mysql_install_db --datadir=/var/lib/mysql --user=mysql | |
sudo service mysql 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
Feature: Example Features | |
Scenario: Publish a post | |
Given the screen size is 1440x900 | |
And I login as the "administrator" role | |
And I am on "/wp-admin/post-new.php" | |
When I press "テキスト" | |
And I fill in the following: |
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
Feature: Features of the Lightning theme | |
Scenario: Tests for the menu with PC | |
Given the screen size is 1440x900 | |
When I am on "/" | |
Then I should see "Home" in the "#gMenu_outer" element | |
And I should see "Forum" in the "#gMenu_outer" element |
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
#!/usr/bin/env bash | |
set -ex | |
echo "CREATE DATABASE IF NOT EXISTS wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;" | mysql -uroot | |
wp core download --path=$(pwd) --locale=ja | |
wp config create \ | |
--dbhost=localhost \ |