This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
=head1 Examples | |
$ tail -f access_log | perl colorize.pl | |
$ plackup app.psgi 2>&1 | perl colorize.pl | |
=cut | |
use strict; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
now = Time.now.to_s | |
capacity = `ioreg -l | grep MaxCapacity`.chomp.split(" = ")[1] | |
cyclecount = `ioreg -l | grep CycleCount | grep -v Design`.chomp.split(" = ")[1] | |
puts now+","+capacity+","+cyclecount |