AppleIce@2024

By 菠萝_KS_Kenn


  • 首页

  • 分类

  • 关于

  • 归档

  • 标签

PHPTIME

发表于 2017-04-03 | 分类于 PHP

PHP日期月份相关

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
class Datefmt{
function __construct() {}
/**
* 根据指定日期获取所在周的起始时间和结束时间
*/
public function get_weekinfo_by_date($date) {
$idx = strftime("%u", strtotime($date)); $m - 1;
$sun_idx = $idx - 7;
return array(
'week_start_day' => strftime('%Y-%m-%d', strtotime($date) - $mon_idx * 86400),
'week_end_day' => strftime('%Y-%m-%d', strtotime($date) - $sun_idx * 86400),
);
}
阅读全文 »

Base64相关信息

发表于 2017-04-03 | 分类于 Linux技巧

BASE64相关信息

1
2
维基百科 Base64 写道
在MIME格式的电子邮件中,base64可以用来将binary的字节序列数据编码成ASCII字符序列构成的文本。使用时,在传输编码方式中指定base64。使用的字符包括大小写字母各26个,加上10个数字,和加号「+」,斜杠「/」,一共64个字符,等号「=」用来作为后缀用途。
阅读全文 »

Windows PPTP L2TP

发表于 2017-04-03 | 分类于 Windows系统技巧

Windows7以上系统连接L2TP PPTP失败

1
2
3
4
5
6
7
8
9
10
11
12
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameter
在"编辑"菜单上,单击"新建"->"DWORD值"

在"名称"框中,键入"ProhibitIpSec"

在"数值数据"框中,键入"1",然后单击"确定"

再找到AllowL2TPWeakCrypto,如果没有则新建"DWORD值"
修改值为1
退出注册表编辑器,然后重新启动计算机

然后就可以顺畅的使用L2TP的VPN了。

Free Key Management Service Server

发表于 2017-04-03 | 分类于 Windows系统技巧

激活Windows

必须使用管理员权限执行 命令内的激活码请在列表中自行寻找并替换

1
2
3
4
5
slmgr.vbs /upk
slmgr.vbs /ipk 激活码
slmgr.vbs /skms kms.appleice.cn
slmgr.vbs /ato
slmgr.vbs /dlv
阅读全文 »

Hello World

发表于 2017-04-03

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

阅读全文 »

1…45
菠萝_KS_Kenn

菠萝_KS_Kenn

记录有用的事

45 日志
7 分类
34 标签
© 2025 菠萝_KS_Kenn

桂ICP备16006265号-2

桂公网安备45110002000204

由 Hexo 强力驱动
主题 - NexT.Pisces