入手新游戏手柄:飞智冰原狼

Gamepad Tester:

September 8, 2023 · 1 min · 2 words · Me

VS Code修复Latex Workshop报错

当文档是XeTeX时,会频繁出现Recipe terminated with error. Retry building the project的报错. 修改Latex Workshop插件的settings.json文件为: { // Latex workshop "latex-workshop.latex.tools": [ { "name": "latexmk", "command": "latexmk", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "%DOC%" ] }, { "name": "xelatex", "command": "xelatex", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOC%" ] }, { "name": "pdflatex", "command": "pdflatex", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOC%" ] }, { "name": "bibtex", "command": "bibtex", "args": [ "%DOCFILE%" ] } ], "latex-workshop.latex.recipes": [ { "name": "xelatex", "tools": [ "xelatex" ] }, { "name": "latexmk", "tools": [ "latexmk" ] }, { "name": "pdflatex -> bibtex -> pdflatex*2", "tools": [ "pdflatex", "bibtex", "pdflatex", "pdflatex" ] } ], "latex-workshop....

September 8, 2023 · 1 min · 128 words · Me

配置Nginx解决跨域问题

在网站配置中加入: location / { add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'; }

September 8, 2023 · 1 min · 16 words · Me

宝塔面板设置FTP的SSL证书

默认下,宝塔面板的FTP证书是自签名的证书。 我们可以把它替换成我们的SSL证书。 先备份Pure-FTPd的证书文件: mv /etc/ssl/private/pure-ftpd.pem /etc/ssl/private/pure-ftpd.pem.bak 将我们的证书写入(私钥在上,公钥在下): nano /etc/ssl/private/pure-ftpd.pem -----BEGIN PRIVATE KEY----- … -----END PRIVATE KEY----- -----BEGIN CERTIFICATE----- … -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- … -----END CERTIFICATE---- 保存后,在宝塔面板 ➡ 软件商店 ➡ Pure-Ftpd管理 ➡ 重启Pure-Ftpd。 之后再连接FTP时获取到的就是我们的证书了。

September 8, 2023 · 1 min · 34 words · Me

winget安装.NET Framework和.NET SDK

.NET Framework winget install Microsoft.DotNet.Framework.DeveloperPack_4 -v [4.X.X] .NET winget install Microsoft.DotNet.SDK.[X]

September 8, 2023 · 1 min · 11 words · Me