bat copy script


@echo off
set dst=c:\test
set src=d:\test
:start
if not exist %dst%\nul goto create_dst
xcopy /y /s /f /l /r %src% %dst%\
goto end

:create_dst
mkdir %dst%
goto start

:end
if %errorlevel% neq 0 echo "Copy file failed! please have check it manually"

nginx 隐藏header

The default configuration of nginx will display the server header or version number to your web browser. For security purposes, I do not want to display this information. This can be easily achieved by adding or changing to the following in the http{} directive in your nginx configuration file as below: -

server_tokens off;

add_header 来设置cache-control

add_header Cache-Control “public, max-age=2592000″;


use WWW::Mechanize;

my $site = shift;
my $mech = WWW::Mechanize->new();
$mech->get($site);
print $mech->dump_headers();

jira 测试管理工具

https://jira.atlassian.com

jira 是一个很强大的bug管理,流程管理工具.

1. 创建workflow schema

2. 把一个workflow 关联到workflow schema

3. 把项目关联到workflow

 

这里有好几中schema,做的时候可以先用default jira的走一遍