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
# 1つめのドメインの設定 | |
<VirtualHost _default_:443> | |
ServerName example.org:443 | |
SSLCertificateFile /etc/letsencrypt/live/example.org/fullchain.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/example.org/privkey.pem | |
</VirtualHost> | |
# 2つめのドメインの設定 | |
<VirtualHost _default_:443> | |
ServerName www.example.jp:443 |
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
--- content.php.ORG 2017-06-25 00:07:58.831052983 +0900 | |
+++ content.php 2017-06-25 10:50:23.258825536 +0900 | |
@@ -28,7 +28,12 @@ | |
<span class="fn"><?php echo the_author_posts_link(); ?></span> | |
</span> | |
<span class="meta-sep">|</span> | |
- <span class="date updated"><?php echo get_the_date(); ?></span> | |
+ <span class="date updated"><?php echo get_the_date(); ?> | |
+ <?php if (get_the_modified_date('Y/n/j') != get_the_time('Y/n/j')) : | |
+ echo (wp_is_mobile())?", ⏰ : ":", Last update: "; |
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
--- EditPage.php.ORG 2017-07-26 23:37:33.446933850 +0900 | |
+++ EditPage.php 2017-07-27 07:15:49.483444502 +0900 | |
@@ -2594,7 +2594,9 @@ | |
$previewOutput = $this->getPreviewText(); | |
} | |
- Hooks::run( 'EditPage::showEditForm:initial', [ &$this, &$wgOut ] ); | |
+ // Avoid PHP 7.1 warning of passing $this by reference | |
+ $editPage = $this; | |
+ Hooks::run( 'EditPage::showEditForm:initial', [ &$editPage, &$wgOut ] ); |
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
--- EditPage.php.ORG 2017-07-26 23:37:33.446933850 +0900 | |
+++ EditPage.php 2017-07-27 07:15:49.483444502 +0900 | |
@@ -2594,7 +2594,9 @@ | |
$previewOutput = $this->getPreviewText(); | |
} | |
- Hooks::run( 'EditPage::showEditForm:initial', [ &$this, &$wgOut ] ); | |
+ // Avoid PHP 7.1 warning of passing $this by reference | |
+ $editPage = $this; | |
+ Hooks::run( 'EditPage::showEditForm:initial', [ &$editPage, &$wgOut ] ); |
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
--- /etc/xrdp/sesman.ini.ORG 2017-07-29 12:13:38.416950361 +0900 | |
+++ /etc/xrdp/sesman.ini 2017-07-29 12:14:46.772060425 +0900 | |
@@ -69,6 +69,10 @@ | |
param=-localhost | |
param=-dpi | |
param=96 | |
+param=-AcceptCutText=0 | |
+param=-SendCutText=0 | |
+param=-SendPrimary=0 | |
+param=-SetPrimary=0 |
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
--- styles_thumbnails.css.php.ORG 2017-08-30 23:21:57.909532177 +0900 | |
+++ styles_thumbnails.css.php 2017-08-31 07:34:47.572041369 +0900 | |
@@ -8,7 +8,7 @@ | |
$width = (isset($_GET['width'])) ? (int) $_GET['width'] : 120; | |
$margin = 5; | |
$width_with_margins = ($margin * 2) + $width; | |
-$height_with_text = $height + 50; | |
+$height_with_text = $height + 180; | |
$extra_margin = 7; | |
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# HTTP/1.1以外のプロトコルでの接続を拒否する。 | |
RewriteCond %{THE_REQUEST} HTTP/(1\.0|0\.[0-9])$ | |
RewriteRule ^(.*)$ - [R=403,L] | |
# HTTPによるリクエストをHTTPSにリダイレクトする。 | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] | |
</IfModule> |
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
-- WordPressに記事として書かれている文章のおおよその総文字数を求めるSQL文 | |
-- なお、本SQL文を利用することにより得られた結果については責任は負いかねます。 | |
select sum(char_length(regexp_replace(regexp_replace(regexp_replace(post_content,'<.+?>',''),'&.+?;','_'),'(\s+|\r\n|\n)',''))) | |
as total from wp_posts where post_status = 'publish' and post_type = 'post'; |
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
-- WordPressに記事として書かれている文章のうち、 | |
-- 設定ファイル、プログラム例及びコマンドの出力結果などを除いた部分のおおよその総文字数を求めるSQL文 | |
-- なお、本SQL文を利用することにより得られた結果については責任は負いかねます。 | |
select sum(char_length(regexp_replace(regexp_replace(regexp_replace(regexp_replace(post_content,'(?s)<div class="code">((?!</div>).)*?</div>',''),'<.+?>',''),'&.+?;','_'),'(\s+|\r\n|\n)',''))) | |
as total from wp_posts where post_status = 'publish' and post_type = 'post'; |
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
# Access is only allowed via local access | |
# Change this once configured | |
<Directory /usr/share/a> | |
AllowOverride Options | |
<IfModule mod_authz_core.c> | |
# Apache 2.4 | |
Require all granted | |
Require local | |
</IfModule> |
OlderNewer