码迷,mamicode.com
首页 >  
搜索关键字:yesterday    ( 271个结果
smarty连接字符串(磨死我了!!!!)
index.php: $smarty = new Smarty; $smarty->assign(‘articleTitle‘, "Psychics predict world didn‘t end"); $smarty->display(‘index.tpl‘); index.tpl: {$articleTitle|cat:" yesterday."} OUTPUT: Psychics p...
分类:其他好文   时间:2014-09-28 20:29:45    阅读次数:203
HDU - 3746 Cyclic Nacklace (KMP求循环节)
Description CC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there are only 99.9 yuan left. he is too distressed and thinki...
分类:其他好文   时间:2014-09-12 17:12:53    阅读次数:202
2014.9.11 Research Meeting Report
Dear All:Yesterday when we read INFOCOM papers, you have seen how damage it is tohave careless writings. You see that people did write author's name w...
分类:其他好文   时间:2014-09-12 15:00:23    阅读次数:187
Nginx 定时切换日志(shell)
1.clearNginxLog.sh#!/bin/bash#run at 2:00am everydaynginx_pid="/run/nginx.pid"logs_path="/opt/log/nginx"logs_date="$(date -d "yesterday" +"%Y%m%d")_`d...
分类:其他好文   时间:2014-09-04 14:52:29    阅读次数:216
LA3700 Interesting Yang Hui Triangle(Lucas定理)
Harry is a Junior middle student. He is very interested in the story told by his mathematics teacher about the Yang Hui triangle in the class yesterday. After class he wrote the following numbers to s...
分类:其他好文   时间:2014-08-29 14:42:38    阅读次数:275
smarty 时间格式化date_format
代码如下:$smarty = new Smarty; $smarty->assign('yesterday', strtotime('-1 day')); $smarty->display('index.tpl'); index.tpl: {$smarty.now|date_format} {$sm...
分类:其他好文   时间:2014-08-22 12:22:36    阅读次数:218
备份BinLog并压缩 全备份
Rem Backup Mysql Binlog Rem Backup Yesterday and RAR Rem Backup every day 00:01 begin backup yesterday and now binlog @set curPath=%~dp0 @set SourcePa...
分类:其他好文   时间:2014-08-22 10:45:55    阅读次数:318
linux备份文件脚本
#!/bin/sh#Author: OpalTODAY=`date +%Y%m%d`YESTERDAY=`date -d"-1 day" +%Y%m%d`mkdir -p /var/backups/etc.${TODAY}/cp -r /etc/* /var/backups/etc.${TODA.....
分类:系统相关   时间:2014-08-12 10:15:03    阅读次数:230
nginx日志切割脚本,python实现
#自搭建了个人博客有需要交流学习的可以访问www.wpython.com#!/usr/bin/envpython importdatetime,os,sys,shutil log_path=‘/alidata/log/nginx/access/‘ log_file=‘www.wpython.com.log‘ yesterday=(datetime.datetime.now()-datetime.timedelta(days=1)) try: os.makedir..
分类:编程语言   时间:2014-08-07 07:32:10    阅读次数:267
nginx切割日志
#!/bin/bash## Nginx 日志文件所在的目录LOGS_PATH=/usr/local/nginx/logs## 获取昨天的 yyyy-MM-ddYESTERDAY=$(date -d ”yesterday” +%Y-%m-%d)## 移动文件mv ${LOGS_PATH}/access...
分类:其他好文   时间:2014-08-05 13:44:19    阅读次数:286
271条   上一页 1 ... 24 25 26 27 28 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!