[备份策略]批处理压缩指定目录文件

1、批处理压缩目标下所有文件为7z

echo on

for /r %%F in (*) do (echo “%%~nF” && “C:\Program Files\7-Zip\7z.exe” a -t7z -mx=9 -ppassword “%%~dpnF.7z” “%%F” )

2、压缩指定文件为zip格式

“C:\Program Files\7-Zip\7z.exe” a -tzip -mx=9 -ppassword 20200112_090851.zip 20200112_090851.m4a

参考:
https://blog.csdn.net/u012995964/article/details/91975762

php7+在nginx下的配置


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/www/_blog.bluecygnet.com/wp-content/plugins/wp-syntax/wp-syntax.php on line 380

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/www/_blog.bluecygnet.com/wp-content/plugins/wp-syntax/wp-syntax.php on line 380

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/www/_blog.bluecygnet.com/wp-content/plugins/wp-syntax/wp-syntax.php on line 380

好长时间没有更新,最近又想起来了,准备把这个当作学习日记用。
今天更新了服务器上的php版本到7,在百度找到的都是这样修改的,但没成:

1
2
3
4
5
6
7
8
location ~* \.php$ {
  root  html;
    fastcgi_index   index.php;
    fastcgi_pass    127.0.0.1:9000;
    include         fastcgi_params;
    fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
    fastcgi_param   SCRIPT_NAME        $fastcgi_script_name;
}

在digitalocean上找到的是这样的:

1
2
/etc/php/7.0/fpm/php.ini
cgi.fix_pathinfo=0
1
2
3
4
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    }

How To Install Linux, Nginx, MySQL, PHP (LEMP stack) in Ubuntu 16.04

sublime text2 设置adobe的SourceCodePro字体


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/www/_blog.bluecygnet.com/wp-content/plugins/wp-syntax/wp-syntax.php on line 380

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/www/_blog.bluecygnet.com/wp-content/plugins/wp-syntax/wp-syntax.php on line 380

1、从github下载SourceCodePro字体。
2、打开sublime text2,点击“Preferences/Settings – User”,弹出如下:

1
2
3
4
5
6
7
8
{
	"font_size": 11,
	"ignored_packages":
	[
		"Vintage",
		"ConvertToUTF8"
	]
}

在第一行后增加如下行:

1
	"font_face": "SourceCodePro-Light",

Ctrl+S保存后,随即显示字体已变化。

ubuntu下使用logrotate做nginx日志定时自动切分


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/www/_blog.bluecygnet.com/wp-content/plugins/wp-syntax/wp-syntax.php on line 380

ubuntu下使用logrotate做nginx日志定时自动切分。
配置文件位置:/etc/logrotate.d/nginx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/var/log/nginx/*.log {
	weekly
	missingok
	rotate 52
	dateext
	compress
	delaycompress
	notifempty
	create 0640 www-data adm
	sharedscripts
	prerotate
		if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
			run-parts /etc/logrotate.d/httpd-prerotate; \
		fi \
	endscript
	postrotate
		[ -s /run/nginx.pid ] && kill -USR1 `cat /run/nginx.pid`
	endscript
}

对“银联与卫计委全面推广金融IC居民健康卡”的几点理解

“23日,在昆明举行的2014中国卫生信息技术交流大会上,中国银联与卫生部统计信息中心签署合作框架协议,共同推进金融IC居民健康卡惠民应用创新服务。双方试点合作将进一步扩大,未来将共同联合商业银行和医疗机构,在产品设计及标准制定、医疗便民方案开发、多功能增值服务应用等领域深入合作,全面提速IC居民健康卡推广应用,并为金融IC卡在更多公共服务领域应用带来示范效应。”
理解:
1、银联和计生委应该主要是在金融领域,尤其是在新农合、诊疗预存领域。
2、河南开始铺的面比较大,发放进度一般;辽宁今年要求比较高,省卫生厅推进力度较大,但合作银行均为大行,本地银行实力不足但仍会有反弹;其它地区多是试点形式,新农合的资金力度让银行的参与不高。
3、诊疗预存模式,卫生条口的利益在医院,金融条口的在商业银行,落实起来难度还是比较大。