代码安全,网络安全,系统内核

2009年总结

又开始忙碌了,每年这个时候只要有时间一般都会写总结。2009年最大的感受就是累,
努力并不一定都会有好的结局。努力一天容易,努力一年,甚至十年就难了。

过程很艰辛,结果却不是很好,还需要继续努力。昨天我看了一篇文章写的很好,
在个信息大爆炸的时代要能够把握人生前进的方向很难,需要的坚韧的品质,
有恒心有毅力,还需要一股冲劲。

还是很喜欢那句话, 做事认真,做人简单,认真去爱。

kuxun.cn 刷票

下载: ticket.pl
  1. #! /usr/bin/perl -w
  2. use strict;
  3. use Term::ANSIColor qw(:constants);
  4.  
  5. my $char = "";
  6.  
  7. while (1) 
  8. {
  9.     my $i = 0;
  10.     for ( $i=0; $i < 5; $i++)
  11.     {  
  12.         my $ret = `curl -s http://piao.kuxun.cn/beijing-changsha/p$i`;
  13.         my @lines = split('\n', $ret);
  14.  
  15.         my $date = $ARGV[0];
  16.  
  17.         foreach (@lines)
  18.         {  
  19.             if (/<a(.*)a>/ig && /$date/ && /$char/)
  20.             {  
  21.                 print RED "$2\n", RESET "$1\n\n" if /href="(.*)" title="(.*)\" target="_blank"/;
  22.             }  
  23.         }  
  24.     }  
  25.  
  26.     sleep 30;
  27.     system("clear");
  28. }

Example: perl ticket.pl 2-5

返回顶部