end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

2015-06-18から1日間の記事一覧

perltidyを入れたので、.emacsにあるcperl-mode設定を見直す

以下、.emacsの抜粋です。 cperl-indent-parens-as-block と cperl-indent-subs-specially を加えることで、perltidyの結果に近づいた気がします。 (autoload 'cperl-mode "cperl-mode" "alternate mode for editing Perl programs" t) (setq auto-mode-alis…

amazon wsのELB配下のnginx.confでアクセス元のIPによる接続制限

例えば、AWS ELB配下では、次のように $http_x_forwarded_for で、nginx.confを書くようです。 まぁ、リバースプロキシな環境では、どれも同じノリになるはずですけど # for pre-open closed test map $http_x_forwarded_for $allowed { default deny; ~\s*1…