2014-09-29

1年と1日前をシェルで求める

1日前の日付は、

# date +%Y-%m-%d -d '1 day ago'


1年前の日付は、

# date +%Y-%m-%d -d '1 year ago'


1年と1日前の日付は、

# date +%Y-%m-%d -d '1 year ago 1 day ago'



すげー。



2014-09-18

スローアタック

スローアタックって?
http://www.drk7.jp/MT/archives/001527.html

http://2u-moomin.blog.so-net.ne.jp/

http://www.keyman.or.jp/kc/30006788/


対策
http://code.zobe.jp/2012/10/defense_against_slowhttptest_using_mod_security2_section1/

http://code.zobe.jp/2012/10/defense_against_slowhttptest_using_mod_security2_section2/

http://code.zobe.jp/2012/10/defense_against_slowhttptest_using_mod_security2_section3/

http://code.zobe.jp/2012/10/you_shoud_not_blindly_use_modsecurity2_crs_base_rules/

wget で robots.txt を無視する

/etc/wgetrc を見ると
#robots = on
となっている。

これを
robots = off

とすれば、robots.txt を無視してくれる。

2014-09-13

あまりにもレベルが低すぎる

お前ら今まで何してた?

そんなこともわからずに

サーバ管理者気取ってたのか?




って言ってやりたい障害が頻発した。




火消し役は後任の俺。

ログの見方すらわからないらしい。

不正メール中継のチェック方法も知らないらしい。





もうね、あほかと。

そもそも添付ファイル名の規約ってRFCでどうなってるの?

Outlookから送ったメールの添付ファイル名が、iPhoneで「 =?utf-8?Q?...?= 」と無残に文字化けしてしまう現象。その元凶を紐解くと、1990年代から続く 「RFC規格のねじれ」 と、Microsoftによる 「独自の割り切り」 という深い闇に突き当...