I forgot to write today's log at my cubic. So I write it in dometary.Still not finish the two papers which I want to finish yesterday. I must finish t...
分类:
其他好文 时间:
2015-02-28 01:31:58
阅读次数:
169
Problem DescriptionCC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there ar...
分类:
其他好文 时间:
2015-02-27 16:43:41
阅读次数:
154
在工作中,常用shell操作mysql数据库,为了方便,基本模板时间处理方式(有时关联表时间格式不一样)date=$1date1=${date//-/}if[x$date=x]thendate=`date-d"yesterday"+%Y-%m-%d`date1=`date-d"yesterday"+%Y%m%d`fiecho"selectbegin:`date‘+%Y-%m-%d%H:%M:%S‘`"执行sql语句my..
分类:
数据库 时间:
2015-02-03 19:49:22
阅读次数:
228
最近,网络上很火的一个问题: 如果昨天是明天就好了,那今天就是周五了,今天是周几? --------------------- 首先,可以确定,今天是周五是假设的。 由此,我们得出一组假设值: $yesterday_suppose = ‘周四‘;
...
分类:
其他好文 时间:
2015-01-30 23:00:12
阅读次数:
423
I - Math Magic
Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%lld
& %llu
Submit Status
Description
Yesterday, my teacher taught us about math: +, -, *, /, GCD, LCM... ...
分类:
其他好文 时间:
2015-01-18 18:34:59
阅读次数:
203
根据所给的某一天的日期获取该日期前一天的时间的封装的方法:function getYesterday($date){ if(empty($date)){ $yesterday = date("Y-m-d",strtotime("-1 day")); }else{ $arr = explo...
分类:
其他好文 时间:
2015-01-16 18:34:18
阅读次数:
142
#!/bin/sh#初始化logs_path="/usr/local/nginx/logs"pid_path="/usr/local/nginx/logs/nginx.pid"YESTERDAY=$(date-d"yesterday"+%Y-%m-%d)##移动文件mv${logs_path}/access.log${logs_path}/${YESTERDAY}.access.log##向Nginx主进程发送USR1信号,USR1信号是重新打开日志文件ki..
分类:
其他好文 时间:
2015-01-15 11:09:48
阅读次数:
159
【资料整理】下载和分析cdn节点汇总日志#!/bin/bash
#filename:log_cdn.sh
#
#2014/11/20
#
#mkdir-p/home/log/cdn/{log,stat}
action=$1
dt=$2
[-z${dt}]&&dt=$(date-d"yesterday"+"%Y-%m-%d")
location="ftp.xxcdn.com"
ftpsvr="ftp://${location}"
d_base="/home/..
分类:
其他好文 时间:
2014-12-25 06:45:48
阅读次数:
160
#!/bin/bash
logs_path="/opt/nginx/logs"
#####这是我的nginx日志文件所在的目录
date=$(date-d"yesterday"+"%Y-%m-%d")
###定义前一天的时间,格式为年-月-日
mv${logs_path}/access.log${logs_path}/access_$date.log
######以昨天的日期重新命名日志文件
kill-USR1$(cat/op..
分类:
其他好文 时间:
2014-12-19 15:54:52
阅读次数:
146
https://github.com/h5bp/Front-end-Developer-Interview-Questions#contributors1. 一般性问题 What did you learn yesterday/this week?What excites or interests ...
分类:
其他好文 时间:
2014-12-18 11:45:57
阅读次数:
555