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 bo
分类:
其他好文 时间:
2016-02-25 19:55:24
阅读次数:
188
Cherish life and embrace the life (珍惜生命,拥抱生活) Yesterday, I have attended a special funeral, after which a different view has come to my mind. “Cherish
分类:
其他好文 时间:
2016-02-15 22:44:01
阅读次数:
206
#!/bin/bashif[-z$1];thenecho‘Usage:cutlog[logpath]‘elseif[!-e/data/wwwlogs/$(date-d"yesterday"+"%Y")/$(date-d"yesterday"+"%m")];thenmkdir-p/data/wwwlogs/$(date-d"yesterday"+"%Y")/$(date-d"yesterday"+"%m")finame=$(basename$1)y=$(date-d"-1day"+%Y-%m-%d)cp$1/d..
分类:
其他好文 时间:
2016-02-15 16:38:49
阅读次数:
129
#!/usr/bin/envpython#-*-coding:utf-8-*-#Pythonnginxcutlog1importsubprocessdefmkdir():subprocess.call(‘mkdir-pv/usr/local/nginx/logs/$(date-d"yesterday"+"%Y")/$(date-d"yesterday"+"%m")/‘,shell=True)defmv():subprocess.call(‘mv/usr/local/nginx/logs/access.log/..
分类:
编程语言 时间:
2016-02-11 06:48:28
阅读次数:
268
1. I wasn't born yesterday.(我又不是三岁小孩)2. How do I address you?(我怎么称呼你)3. She turns me off.(她使我厌烦。)4. So far so good.(目前为止,一切都好。)5. Be my guest.(请便、别客气)...
分类:
其他好文 时间:
2016-01-12 15:27:51
阅读次数:
148
shell里直接调用系统变量 获取当天日期`date +%Y%m%d` 获取昨天日期`date -d yesterday +%Y%m%d` 获取前天日期`date -d -2day +%Y%m%d` 依次类推,你可以写一段shell 试验一下:d1=`date +%Y%m%d` d2=`date -...
分类:
系统相关 时间:
2015-11-26 14:44:29
阅读次数:
201
Save Princess时间限制:1000 ms | 内存限制:65535 KB难度:2描述Yesterday, the princess was kidnapped by a devil. The prince has to rescue our pretty princess."OK, if ...
分类:
其他好文 时间:
2015-11-12 20:07:47
阅读次数:
370
一、创建日志切割脚本nginx-log#!/bin/bash##零点执行该脚本##nginx日志文件所在的目录LOGS_PATH=/var/log/nginx/##获取昨天的yyyy-MM-ddYESTERDAY=$(date-d"yesterday"+%Y-%m-%d)##重命名日志文件mv${LOGS_PATH}/access.log${LOGS_PATH}/access_${YESTERDAY}.logmv${LOGS_PATH..
分类:
系统相关 时间:
2015-10-24 19:02:38
阅读次数:
263
DescriptionMatt’s friend K.Bro is an ACMer.Yesterday, K.Bro learnt an algorithm: Bubble sort. Bubble sort will compare each pair of adjacent items and...
分类:
其他好文 时间:
2015-10-16 15:13:16
阅读次数:
260
class Index(object): def __init__(self,index_name,index_code,closePrice_yesterday,closePrice_today): self.index_code=index_code self....
分类:
编程语言 时间:
2015-10-14 17:21:54
阅读次数:
242