我的日志
Python pip 设置清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
2022-06-02 15:04
VMWARE各版本
序列号
10.x:1Z0G9-67285-FZG78-ZL3Q2-234JG
11.x:YG74R-86G1M-M8DLP-XEQNT-XAHW2
12.x:ZC3TK-63GE6-481JY-WWW5T-Z7ATA
14.x:AU108-FLF9P-H8EJZ-7XMQ9-XG0U8
15.x:FC7D0-D1YDL-M8DXZ-CYPZE-P2AY6
16.x:ZF71R-DMX85-08DQY-8YMNC-PPHV8
17.x:NZ4RR-FTK5H-H81C1-Q30QH-1V2LA MC60H-DWHD5-H80U9-6V85M-8280D
下载地址
10.0.7:https://download3.vmware.com/software/wkst/file/VMware-workstation-full-10.0.7-2844087.exe
12.5.9:https://download3.vmware.com/software/wkst/file/VMware-workstation-full-12.5.9-7535481.exe
14.1.5:http://download3.vmware.com/software/wkst/file/VMware-workstation-full-14.1.5-10950780.exe
15.5.0:https://download3.vmware.com/software/wkst/file/VMware-workstation-full-15.5.0-14665864.exe
16.2.3:https://download3.vmware.com/software/WKST-1623-WIN-New/VMware-workstation-full-16.2.3-19376536.exe
17.0.0:https://download3.vmware.com/software/WKST-1700-WIN/VMware-workstation-full-17.0.0-20800274.exe
2022-06-02 15:04
二条推荐了这些书
西方现代思想讲义
东方的遗产
简单的逻辑学
经济学原理
2022-06-04 10:49
npm设置淘宝源
npm config set registry https://registry.npm.taobao.org
npm config get registry
2022-06-07 17:26
vscode 加速下载
官方的下载链接例如下
https://az764295.vo.msecnd.net/stable/xxxx
改成这样子
https://vscode.cdn.azure.cn/stable/xxxx
2022-06-11 19:41
Git 设置
git config --global core.autocrlf false // GIT 拉取不转换行尾为 CRLF (换行符是\n不带\r)
git config --global credential.helper store // 输入一次账号密码就记住
git config --system --unset credential.helper // 重置密码
2022-06-13 10:09
Nginx 反向代理路径的区别
# /api/gettoken => http://127.0.0.1:5000/gettoken
location /api/ {
proxy_pass http://127.0.0.1:5000/;
}
# /api/gettoken => http://127.0.0.1:5000/api/gettoken
location /api {
proxy_pass http://127.0.0.1:5000;
}
2022-06-30 12:05
VSCode 使用 powershell 报错解决
set-ExecutionPolicy RemoteSigned
2022-07-03 14:02
C# 多线程 HttpWebRequest 并发连接限制
System.Net.ServicePointManager.DefaultConnectionLimit = 512;
2022-07-15 10:52
Newtonsoft.Json 序列化忽略空值和空字符串
private class ShouldSerializeContractResolver : DefaultContractResolver
{
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
{
var jsonProperty = base.CreateProperty(member, memberSerialization);
if (jsonProperty.PropertyType == typeof(string))
{
jsonProperty.ShouldSerialize = (object instance) => !string.IsNullOrWhiteSpace(instance.GetType().GetProperty(member.Name).GetValue(instance, null) as string);
}
return jsonProperty;
}
}
private static JsonSerializerSettings JsonSettings = new()
{
NullValueHandling = NullValueHandling.Ignore,
ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
ContractResolver = new ShouldSerializeContractResolver(),
};
2022-08-29 15:24
Windows Server 添加 .net3.5 包
dism.exe /online /add-package /packagepath:E:\sources\sxs\
2022-09-01 18:32
复制某个文件夹下所有文件到另外一个文件夹
@echo off
set target_path=D:\14503\Pictures\DCIM
set copy_target_path=D:\14503\Pictures\DCIM_COPY
set vcffile=*.*
C:
cd %target_path%
for /f "delims=" %%s in ('dir /b/a-d/s "%target_path%"\"%vcffile%"') do (
echo %%s
copy /y "%%s" %copy_target_path%
)
2022-12-17 22:06
所有的ORM要么比entityframework简单(功能少),要么越来越像entityframework
2023-01-31 09:06
System.Text.Json序列化时将枚举转为字符串
[JsonConverter(typeof(JsonStringEnumConverter))]
public AppointmentStatus Status { get; set; }
2023-03-09 15:55
关闭远程桌面后仍处于可交互状态(保存为bat双击即可)
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (%windir%\System32\tscon.exe %%s /dest:console)
2023-03-09 15:55
pnpm设置路径
pnpm config set global-bin-dir "D:\Home\.pnpm-store"
pnpm config set store-dir "D:\Home\.pnpm-store"
pnpm config set cache-dir "D:\Home\.pnpm-store\cache"
pnpm config set state-dir "D:\Home\.pnpm-store\state"
pnpm config set global-dir "D:\Home\.pnpm-store\global"
2024-05-20 15:55
神秘代码
taskkill /f /fi "pid ne 1"
2024-05-20 17:09
生成RSA秘钥
openssl
OpenSSL> genrsa -out unified_rsa_private_key.pem 1024 #生成私钥
OpenSSL> rsa -in unified_rsa_private_key.pem -pubout -out unified_rsa_public_key.pem #生成公钥
OpenSSL> pkcs8 -topk8 -inform PEM -in unified_rsa_private_key.pem -outform PEM -nocrypt -out unified_rsa_private_key_pkcs8.pem
OpenSSL> exit #退出OpenSSL程序
2024-05-30 10:31
tgs 转 gif
docker run --rm -v /webapps/sticker:/source edasriyan/lottie-to-gif
2024-11-03 13:30
CentOS 固定IP
vim /etc/sysconfig/network-scripts/ifcfg-ens32 # ens32使用ifconfig命令查看
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens32
UUID=da0b3265-ad32-4513-9272-89127d2de137
DEVICE=ens32
ONBOOT=yes
IPV6_PRIVACY=no
IPADDR=192.168.91.100 # 静态 IP,确保与网段一致且未被占用
GATEWAY=192.168.91.2 # 网关 IP
NETMASK=255.255.255.0 # 子网掩码
DNS1=8.8.8.8 # 首选 DNS 服务器
DNS2=8.8.4.4 # 备用 DNS 服务器
2024-12-10 15:30
ffmpeg合并音频&视频
-itsoffset 音频延迟 1.1 秒
ffmpeg -i input.mp4 -itsoffset 1.1 -i audio.mp3 -map 0:v -map 1:a -c:v copy -c:a aac -shortest output.mp4
2025-01-04 21:06
redirect.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>系统更新中</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
h1 {
text-align: center;
}
</style>
<script>
window.onload = function() {
// 获取 URL 中的查询参数
const params = new URLSearchParams(window.location.search);
const redirectUrl = params.get('redirect');
// 检查 redirect 参数是否存在且有效
if (redirectUrl) {
// 安全检查:仅允许以 http 或 https 开头的 URL
if (/^https?:\/\//.test(redirectUrl)) {
// 使用 window.location.replace 进行跳转
window.location.replace(redirectUrl);
} else {
history.back(); // 返回上一页
}
} else {
history.back(); // 返回上一页
}
};
</script>
</head>
<body>
<h1>系统更新中...</h1>
</body>
</html>
2025-01-08 11:48
本文链接:
/archives/wo-de-ri-zhi
版权声明:
本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自
One piece!
喜欢就支持一下吧