(最終更新: 2015/4/19)
License: CC BY-SA 4.0
(最終更新: 2015/4/19)
License: CC BY-SA 4.0
Tatsuhiko Miyagawa's blog — cpanm towards 2.0 より。
※注意:
1バイトの都市伝説 : http://diode.matrix.jp/LEGEND/BYTE.htm について。
1 byte = 8 bits って、どの仕様のどこに書いてるのかという問いを発している人がいたので調べてみた。
http://en.wikipedia.org/wiki/Byte#Unit_symbol によると
https://github.com/key-amb/perl5-App-Koyomi
主に私自身のための開発メモです。
| [vagrant@localhost Acme-CPAN-Installer]$ cpanm . | |
| --> Working on . | |
| Configuring Acme-CPAN-Installer-0.01 ... OK | |
| Building and testing Acme-CPAN-Installer-0.01 ... OK | |
| Successfully installed Acme-CPAN-Installer-0.01 | |
| 1 distribution installed | |
| [vagrant@localhost Acme-CPAN-Installer]$ plenv rehash | |
| [vagrant@localhost Acme-CPAN-Installer]$ cd ../koyomi2/ | |
| [vagrant@localhost koyomi2]$ time cpan-installer | |
| Loading distributions from cpanfile.snapshot... |
| #!/bin/bash | |
| # Get current swap usage for all running processes | |
| # Erik Ljungstrom 27/05/2011 | |
| # Updated: 2013-11-13 Yuichiro Saito | |
| SUM=0 | |
| OVERALL=0 | |
| for DIR in `find /proc/ -maxdepth 1 -type d | egrep "^/proc/[0-9]"` ; do | |
| PID=`echo $DIR | cut -d / -f 3` | |
| PROGNAME=`ps -p $PID -o comm --no-headers` | |
| for SWAP in `grep Swap $DIR/smaps 2>/dev/null| awk '{ print $2 }'` |
| #!/usr/bin/env ruby | |
| require 'toml' | |
| require 'tomlrb' | |
| require 'benchmark' | |
| toml = <<-EOS | |
| title = "sample" | |
| [params] |