end0tknr's kipple - web写経開発

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

2012-04-16から1日間の記事一覧

CSSにおけるセレクタの優先順位

「CSSは後に書く方が優先されたはずだけど、なぜ?」と思ったら、以下の通りでした。 W3Cではセレクタの優先順位を次のurlで公開 6.4.3 Calculating a selector's specificity └ http://www.w3.org/TR/CSS2/cascade.html#specificity 簡単に言うと、次の総合…

openssl でファイルの暗号化と復号化

openssh ではありません。よく忘れるのでメモ $ openssl bf -d -base64 -k $PASSPHRASE -in $ENCRIPT_FILE > $DENCRIPT_FILE $ openssl aes-256-cbc -e -base64 -k hogehoge -in foo.txt -out foo.txt.ec $ openssl aes-256-cbc -d -base64 -k hogehoge -in …

ssh-keygen で SSH-2 RSA 1024bit 形式の鍵作成

次のような感じ $ ssh-keygen -t rsa -b 1024 -f /home/endo/tmp/fan_rsa -N ""「-t rsa」が分かりづらいので、man ssh-keygen の抜粋 -t type Specifies the type of key to create. The possible values are "rsa1" for protocol ver-sion 1 and "rsa" or …