めも

  • -O2以上の最適化をかけるときは必ず -fno-strict-aliasing を付けるべし。
  • tar + SSH で安全リモートデータ転送
    • tar zcf - . | ssh [uname]@[dsthost] "(cd /path/to; tar zxvfp - )"
    • ssh [uname]@[dsthost] "(cd /path/to; tar zcf - . ) | tar zxvfp -
  • tar でディレクトリの移動を行うには
    • (cd /source/directory && tar cf - . ) | (cd /dest/directory && tar xvfp -)

  • nsswitch.conf で compat を利用した場合は,
    /etc/passwd に +:*:::::::: が無いと,ldap ユーザが引けない…
    同じく,/etc/group に +:*:: が無いと,ldap グループが引けない…
  • nsswitch.conf で compat を利用しない場合は,
    /etc/passwd に +:*:::::::: が無くても,/etc/group に +:*:: が無くても良い.
    でも,netgroup 機構は使えない.ldap 側でうまくやれるなら,そっちの方が良い?

ImageMagic メモ

  • 画像の変換
    • convert srcfilename dstfilename
  • PDF 等のソースファイルに複数画像がある場合
    • convert +adjoin srcfilename dstfilename
  • 出力ファイル名を整形したい場合
    • convert srcfilename dstfilename[%03d].png 等

Hiroyuki Seino http://www.wakhok.ac.jp/~hiroyuki/ http://www.seichan.org/
http://www.seichan.org/wiki/ http://www.seichan.org/blog/
Today:2 Yesterday:2 All:8716