[dodowolf@fu~]$catfu.sh#!/bin/shLOG_DATE=`date-d"yesterday"+%F`Q_DATE=`date-d"2daysago"+%Y%m%d`Y_DATE=`date-d"yesterday"+%Y%m%d`whilereadlinedo{IP=`echo$line|cut-d""-f1`DATABASE=`echo$line|cut-d""-f2`mysql-uuser-ppasswd-h${IP}-e"setnamesutf8;select1,2,3,4,5..
分类:
其他好文 时间:
2014-07-30 15:02:44
阅读次数:
173
Problem Description
Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leave...
分类:
其他好文 时间:
2014-07-23 22:33:38
阅读次数:
281
Example 5-8. date_format[日期格式]index.php:复制代码代码如下:$smarty = new Smarty;$smarty->assign('yesterday', strtotime('-1 day'));$smarty->display('index.tpl');...
分类:
Web程序 时间:
2014-07-17 18:15:03
阅读次数:
308
I came across this TED talk yesterday in which Chris Lonsdale, a psychologist from New Zealand talks about language learning. He believes that anybody...
分类:
其他好文 时间:
2014-06-28 23:02:07
阅读次数:
328
HDU - 4788
Hard Disk Drive
Time Limit:1000MS
Memory Limit:32768KB
64bit IO Format:%I64d & %I64u
[Submit] [Go Back] [Status]
Description
Yesterday your dear cou...
分类:
其他好文 时间:
2014-06-20 10:51:20
阅读次数:
316
It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distin...
分类:
其他好文 时间:
2014-06-14 19:10:14
阅读次数:
232
Problem Description
Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leave...
分类:
其他好文 时间:
2014-06-08 03:55:37
阅读次数:
273
It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1987 with only distinct digits.
Now you are suggested to solve the f...
分类:
其他好文 时间:
2014-05-24 21:52:34
阅读次数:
320
#!/bin/bash
#function:cutnginxlogfilesshell
#cp/usr/local/nginx/logs/access.log/usr/local/nginx/logs/access.log.bak
log_cut_path="/var/log/nginx"
log_files_path="/usr/local/nginx/logs/"
log_files_dir=${log_cut_path}$(date-d"yesterday"+"%Y")/$(date-d"yesterd..
分类:
其他好文 时间:
2014-05-15 18:49:50
阅读次数:
244
Hard Disk Drive
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 647 Accepted Submission(s): 350
Problem Description
Yesterday ...
分类:
其他好文 时间:
2014-05-13 15:19:16
阅读次数:
290