memo.xight.org

01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

2005-12-09 Fri

入力行に時刻を付けて吐き出すフィルタ

- Source

#!/usr/bin/perl
use strict;
use warnings;
use POSIX qq(strftime);
$| = 1;
while (defined(my $line = <>)) {
	print strftime('%Y/%m/%d %H:%M:%S ', localtime), $line;
}

- Usage

% ping localhost | puttime
2005/12/09 02:16:08 PING localhost (127.0.0.1): 56 data bytes
2005/12/09 02:16:08 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.0 ms
2005/12/09 02:16:09 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.0 ms
2005/12/09 02:16:10 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.0 ms
2005/12/09 02:16:11 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.0 ms
2005/12/09 02:16:12 64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.0 ms

- Reference
スペースモラトリアムノカミサマ - 2005-12-05 - 入力行に時刻を付けて吐き出すフィルタ
http://pmakino.jp/tdiary/20051205.html#p01
- via
cl.pocari.org - 2005-12-06 - 入力行に時刻を付けて吐き出すフィルタ
http://cl.pocari.org/2005-12-06-7.html

カテゴリ: [Perl]

XSS (Cross Site Scripting) Cheat sheet

- Reference
XSS (Cross Site Scripting) Cheat sheet: Esp: for filter evasion - by RSnake
http://ha.ckers.org/xss.html
- via
cl.pocari.org - 2005-12-06 - XSS (Cross Site Scripting) Cheat sheet
http://cl.pocari.org/2005-12-06-4.html

カテゴリ: [Security][CheatSheet][Stub]

プログラマーのための YAML 入門

- Reference
Rubyist Magazine - プログラマーのための YAML 入門 (実践編)
http://jp.rubyist.net/magazine/?0011-YAML
- via
cl.pocari.org - 2005-12-07 - プログラマーのための YAML 入門 (実践編)
http://cl.pocari.org/2005-12-07-10.html

カテゴリ: [YAML][Stub]

Yellow Fade

- Demo
Yellow Fade.
http://shebang.jp/demo/yft/fade.html
- Reference
#!shebang.jp - 2005-11-14 - Yellow Fade Technique
http://blog.shebang.jp/archives/50259919.html
- via
cl.pocari.org - 2005-12-07 - prototype.js を使った Yellow Fade Technique のサンプル
http://cl.pocari.org/2005-12-07-7.html

カテゴリ: [Memo][Stub]
2005-12 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Color Reference

ChangeLogを検索
携帯電話からアクセス!

カテゴリ

最近の話題

リンク

過去ログ

Google

QR Code

Since
2002-11-28
Update
2008-02-20 21:23
Copyright © 2005 xight.org All Rights Reserved.