码迷,mamicode.com
首页 >  
搜索关键字:yesterday    ( 271个结果
[李景山php]每天laravel-20160911|FileSystem-2
/** *Getthereturnedvalueofafile. * *@paramstring$path *@returnmixed * *@throws\Illuminate\Contracts\Filesystem\FileNotFoundException */ publicfunctiongetRequire($path) { if($this->isFile($path)){//ifitisafile returnrequire$path;//requireit } thrownewFil..
分类:Web程序   时间:2016-07-12 15:51:34    阅读次数:297
软件开发中的11个系统思维定律
“我会更加努力地工作”——一匹名叫Boxer的马(出自乔治·奥威尔的《动物农庄》)   彼得·圣吉在其著作《第五项修炼》中提到的系统思维定律同样适用于软件开发。   1. 今日的问题源于昨日的解决方案(Today’s problems come from yesterday’s solutions)   当解决问题时,我们会感到很高兴。我们经常不考虑后果。令人感到意外的是,我们提...
分类:其他好文   时间:2016-07-12 12:18:40    阅读次数:191
nginx日志切割
记录这个就是方便自己以后查看!!!nginx按天切割日志脚本示例如下#!/bin/bash logs_path="/usr/local/openresty/nginx/logs/" pid_path="/usr/local/openresty/nginx/logs/nginx.pid" mv${logs_path}access.log${logs_path}access_$(date-d"yesterday"+"%Y%m%d").log gzip${l..
分类:其他好文   时间:2016-06-30 23:35:45    阅读次数:288
【Leetcode】91. Decode Ways
Yesterday, Bro Luo told me: "Why don't you improve your English by writing your blogs in English?" I think it may be a good way and i did so today. Pr ...
分类:其他好文   时间:2016-06-28 00:38:21    阅读次数:189
Where is "Active Directory Information Extractor"?
My friend she showed me a screenshot as below yesterday. The name of this document is “EnCase Forensic Features and Functionality”. She asked me that ...
分类:其他好文   时间:2016-06-25 13:39:05    阅读次数:140
nginx日志切割并删除7日之前的
shell脚本vi/home/crontab/cut_nginx_log.sh#编辑 #!/bin/sh logs_path="/usr/local/nginx/logs/" DAYS=7 mv${logs_path}bbs_access.log${logs_path}nginx_logs/bbs_logs/bbs_access_$(date-d"yesterday"+"%Y%m%d").log mv${logs_path}sns_access.log${logs_path}nginx_logs/sn..
分类:其他好文   时间:2016-06-17 01:04:05    阅读次数:208
python datetime模块基本用法
importdatetime,calendardate=datetime.datetime.now()获取的为当前系统时间#1、返回昨天日期defgetYesterday():today=datetime.date.today()oneday=datetime.timedelta(days=1)yesterday=today-onedayreturnyesterday#2、返回今天日期defgetToday():returndatetime.date.today..
分类:编程语言   时间:2016-05-26 19:14:11    阅读次数:405
【Leetcode】Rising Temperature
题目链接:https://leetcode.com/problems/rising-temperature/题目: Given a Weather table, write a SQL query to find all dates’ Ids with higher temperature compared to its previous (yesterday’s) dates.+———+————...
分类:其他好文   时间:2016-05-18 18:55:03    阅读次数:208
java获取昨天的日期
Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, -1); String yesterday = new SimpleDateFormat( "yyyy-MM-dd ").format(cal.getTime()); Syst ...
分类:编程语言   时间:2016-05-17 16:02:33    阅读次数:295
Nginx日志切割及常用统计脚本
1,编辑脚本进入到/usr/local/nginx/logs日志目录下,新建一个脚本,添加下面内容。指定好日志目录路径,日志文件名称和pid的文件,最后kill-USR1信号用来告知应用程序重载配置文件vimlog.sh#!/bin/bash logs_path="/usr/local/nginx/logs/" mv${logs_path}www_mrliangqi.log${..
分类:其他好文   时间:2016-05-15 12:42:28    阅读次数:261
271条   上一页 1 ... 14 15 16 17 18 ... 28 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!