- 日本語: https://gist.github.com/pekeq/c570fc638fa7234ba10a
- 英語: https://gist.github.com/pekeq/e05e7bc73a03358cd122
Azure CDN関連は、CDN担当と英語で直接やってくれ、ということで、英語の問い合わせを投げました。
#!/bin/sh | |
mount | grep ' type btrfs ' | awk -F' ' '{print $3}' | while read dir | |
do | |
# Run "btrfs balance" on mounted btrfs with following formula: | |
# https://github.com/netdata/netdata/issues/3203#issuecomment-356026930 | |
btrfs balance start -dusage=50 -dlimit=2 -musage=50 -mlimit=4 "${dir}" | |
# Trim unused blocks | |
fstrim --verbose "${dir}" |
server: | |
# ptr | |
local-zone: "arpa." transparent | |
local-zone: "google." transparent | |
local-zone: "google.com." transparent | |
local-zone: "google.co.jp." transparent | |
local-zone: "googleapis.com." transparent | |
local-zone: "googlegroups.com." transparent |
FROM node:10 | |
ENV YARN_VERSION 1.16.0 | |
ENV NPM_VERSION 6.9.0 | |
RUN set -ex \ | |
&& apt-get update \ | |
&& apt-get install -y --no-install-recommends rsync lftp jq nasm optipng pngquant zopfli ruby python-dev \ | |
&& rm -rf /var/lib/apt/lists/* |
<?php | |
define('DB_HOST', '172.17.0.2'); | |
define('DB_USER', 'user'); | |
define('DB_PASS', 'pass'); | |
define('DB_NAME', 'backdoor'); | |
function h($str) { | |
return htmlspecialchars($str, ENT_QUOTES, 'UTF-8'); | |
} |
# coding: utf8 | |
# オレオレ正規化処理 (Python3) | |
# 正規表現コンパイルをメソッドの外に書いたのでそこそこ速い | |
import re | |
import unicodedata | |
# inspired from https://github.com/neologd/mecab-ipadic-neologd/wiki/Regexp.ja | |
# 以下を参考させていただきました |
Azure CDN関連は、CDN担当と英語で直接やってくれ、ということで、英語の問い合わせを投げました。
IPv6 end points of Azure CDN don't respond to HTTP requests from particular networks.
The contents served from Azure CDN cannot be fetched from some IPv6 networks.
Actually clients of the affected network can establish IPv6 TCP connection with end points of Azure CDN, and can throw HTTP GET request. However end points of Azure CDN don't respond to the requests after that.
<# | |
.SYNOPSIS | |
ファイル名、ディレクトリ名のUNICODE結合文字を、普通の1文字に変換する | |
.DESCRIPTION | |
ファイル名、ディレクトリ名のUNICODE結合文字になっている部分を、普通の1文字に変換する。 | |
例えば、「か + ゛(濁点記号)」を、「が」に変換する。 | |
Macは、ファイル名をUNICODE結合文字で保存するが、Windowsは、普通の1文字で保存するので、 | |
MacからWindowsに、USBメモリーでファイルをコピーした際など、MacとWindowsのファイル交換時に |