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 python3 | |
# coding: utf-8 | |
# | |
# See https://pandanote.info/?p=29 for details. | |
# | |
import io | |
import sys | |
import re | |
import codecs |
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
#!/usr/bin/env python3 | |
# coding: utf-8 | |
# AviUtlのエクスポートファイル版ルパン三世風タイトルパーツメーカー | |
# Copyright 2017,2018 pandanote.info (https://pandanote.info/) | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later 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
--- 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
#!/usr/bin/python | |
import httplib2 | |
import os | |
import sys | |
import argparse | |
from apiclient.discovery import build | |
from oauth2client.client import flow_from_clientsecrets | |
from oauth2client.file import Storage |
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
--- 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; | |
OlderNewer