WP-CLI で WordPress を日本語パッケージと同じ構成にする - Qiita
[mysqld]
sql_mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
日付周りで以下のエラーが出るため
WP-CLI で WordPress を日本語パッケージと同じ構成にする - Qiita
[mysqld]
sql_mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
日付周りで以下のエラーが出るため
<?php | |
// テーマの function.php あたりに追加 | |
// もしくは、プラグインのコンスタラクタあたりに追加 | |
// 管理側固定ページエディター自動挿入のPタグBRタグ削除 | |
// オートフォーマット関連の無効化 | |
add_action('init', function() { | |
remove_filter('the_content', 'wpautop'); | |
remove_filter('the_content', 'wptexturize'); | |
}); |
# git clone https://github.com/rbenv/rbenv.git /usr/local/rbenv
# git clone https://github.com/rbenv/ruby-build.git /usr/local/rbenv/plugins/ruby-build
# vi /etc/profile.d/rbenv.sh
export RBENV_ROOT=/usr/local/rbenv
export PATH=${RBENV_ROOT}/bin:$PATH
eval "$(rbenv init --no-rehash -)"
# source /etc/profile.d/rbenv.sh
<?php | |
$inputs = []; | |
while (true) { | |
$in = trim(fgets(STDIN)); | |
if ($in === '') { | |
main($inputs); | |
return; | |
} | |
$inputs[] = $in; | |
} |
<?php | |
$inputs = []; | |
while (true) { | |
$in = trim(fgets(STDIN)); | |
if ($in === '') { | |
var_dump($inputs); | |
return; | |
} | |
$inputs[] = $in; | |
} |
<?php | |
$inputs = []; | |
while (true) { | |
$in = trim(fgets(STDIN)); | |
if ($in === '') { | |
var_dump($inputs); | |
return; | |
} | |
$inputs[] = $in; | |
} |
function makeCsv(array $record) | |
{ | |
$tmp = []; | |
foreach ($record as $val) { | |
if (preg_match('/[,\r\n"]/', $val)) { | |
$val = str_replace('"', '""', $val); | |
$tmp[] = '"' . $val . '"'; | |
continue; | |
} |
#!/bin/bash -euo pipefail | |
# | |
# Usage: | |
# $ aws-iam-user-key-rotation.sh [profile] [credential_file] | |
# | |
declare -x AWS_DEFAULT_PROFILE=${1:-default} | |
declare credential_file=${2:-~/.aws/credentials} | |
declare -x AWS_SHARED_CREDENTIALS_FILE=$credential_file |
<?php | |
function trim(string $str): string | |
{ | |
return preg_replace('/\A[\p{C}\p{Z}]++|[\p{C}\p{Z}]++\z/u', '', $str); | |
} |
# https://github.com/osquery/osquery/blob/master/Vagrantfile | |
targets = { | |
"win10" => { | |
"box" => "inclusivedesign/windows10-eval" | |
}, | |
"macos10.12" => { | |
"box" => "jhcook/macos-sierra" | |
}, | |
"macos10.13" => { |