Entries from 2014-04-26 to 1 day

Ruby 実行ファイルの名前を取得

http://d.hatena.ne.jp/yoshidaa/20120718/1342614445p File.expand_path($0) p $PROGRAM_NAME $0 は、ruby に引数として渡された実行中のスクリプトファイル名を表す組み込み変数で、ちょっとしたライブラリを作る際に以下のような感じでよく使います。# ho…

lsof open files and sockets with users “Too many open files” ulimit -n,#

http://www.tecmint.com/10-lsof-command-examples-in-linux/http://stackoverflow.com/questions/106234/lsof-survival-guidehttp://www.thegeekstuff.com/2012/08/lsof-command-examples/ulimit -n Linux でプロセスが開けるファイルディスクリプタの上限 …

byobu ubuntu以外

ステータスバーが無限に表示される場合 http://gihyo.jp/admin/serial/01/ubuntu-recipe/0291?page=2http://techracho.bpsinc.jp/kazumasa-ogawa/2013_09_05/13493設定の確認・変更 http://shim0mura.hatenadiary.jp/entry/20111005/1317819710