This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux下对于新添加的用户,用户密码过期时间是从/etc/login.defs中PASS_MAX_DAYS提取的,普通系统默认就是99999,而有些安全操作系统是90。更改此处,只是让新建的用户默认密码过期时间变化,已有用户密码过期时间仍然不变。 | |
[root@linux ~]# chage --help | |
Usage: chage [options] user | |
Options: | |
-d, --lastday LAST_DAY set last password change to LAST_DAY | |
-E, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE | |
-h, --help display this help message and exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public * com.logicz.pojo.*.*(..) | |
修饰符 返回值 包名.类名/接口名 方法 (参数) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('beforeunload', function (event) { | |
$.post("kk/jk",{kl:"123"},function(e){ | |
},'json') | |
console.log("onbeforeunload is work"); | |
//阻塞5秒可以直接看到效果,最好是阻塞50-100毫秒,这样在不影响用户感官的同时保证异步请求能被触发 | |
now = Date.now() | |
while (new Date() - now < 5000) { } | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(?=.*[a-z]) | |
这表示一个环视的语法,表示当前位置的后面没有换行且匹配一个字母(从a到z中的一个) | |
(?=exp) 是肯定顺序环视,环视不占位,可以当成是一种条件判定,满足才能匹配 | |
.* .表示匹配除了换行的任意字符,*是量词,表示0~n个,结合起来就是0~n个除了换行符的任意字符 | |
[a-z] 表示从a到z的集合里匹配一个字母,因为[a-z]后面没加量词,因此默认是一个。 | |
保证序列号由10-20位组成,并同时包含字母和数字,可以包含-,两种正则写法: | |
/^[a-zA-Z0-9-]{10,20}(?<=[a-zA-Z].*)(?<=[0-9].*)$/g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------- V2Ray 配置信息 ------------- | |
地址 (Address) = 8.210.115.48 | |
端口 (Port) = 8888 | |
用户ID (User ID / UUID) = af90dd2d-604b-4cb6-a091-23207a7f0d70 | |
额外ID (Alter Id) = 0 |
NewerOlder