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
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
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
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
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 = 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
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
#!/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
#自搭建了个人博客有需要交流学习的可以访问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
#!/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