<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
<title>飘在云端</title>
<link>https://www.0z.gs/</link>
<description>东西南北，海角天涯</description>
<atom:link href="https://www.0z.gs/rss.xml" rel="self" type="application/rss+xml" />
<lastBuildDate>Wed, 17 Jun 2026 18:26:13 +0800</lastBuildDate>
<item>
<title>名侦探柯南M28剧场版 1080P 独眼的残像</title>
<link>https://www.0z.gs/{category}/M28-1080P.html</link>
<guid isPermaLink="false">https://www.0z.gs/{category}/M28-1080P.html</guid>
<pubDate>Sun, 10 May 2026 10:23:59 +0800</pubDate>
<dc:creator>量子涨落</dc:creator>
<category><![CDATA[备查]]></category>
<description><![CDATA[名侦探柯南剧场版 M28 独眼的残像 1080P
https://www.alipan.com/s/UEPA26hR23a
提取码 48wa
文件大小：7.72 GiB
分辨率：1080P
码率：10.1 Mbps
简体中字 + 日语 双行内嵌字幕
封装格...]]></description>
<content:encoded><![CDATA[
<!--markdown-->名侦探柯南剧场版 M28 独眼的残像 1080P
<p><a href="https://www.alipan.com/s/UEPA26hR23a">https://www.alipan.com/s/UEPA26hR23a</a>
提取码 48wa
文件大小：7.72 GiB
分辨率：1080P
码率：10.1 Mbps
简体中字 + 日语 双行内嵌字幕
封装格式：mkv</p>
<p><strong>被删可能不会补链</strong></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.0z.gs/{category}/M28-1080P.html#comments</comments>
</item>
<item>
<title>部分专线流量转发 IDC 收集</title>
<link>https://www.0z.gs/{category}/3371.html</link>
<guid isPermaLink="false">https://www.0z.gs/{category}/3371.html</guid>
<pubDate>Sat, 04 Apr 2026 05:31:51 +0800</pubDate>
<dc:creator>量子涨落</dc:creator>
<category><![CDATA[随笔]]></category>
<description><![CDATA[仅收集记录，所有内容均来源于公开或可获取的信息渠道，不对相关产品的实际性能、质量或使用体验作任何形式的保证或承诺，自行甄别，随时跑路，**且用且珍惜**
说明：基本涵盖 深 / 泉 / 夏 / 沪 / 京 / 广 / 莞 / 琼 / 杭 入口，
部分商家提...]]></description>
<content:encoded><![CDATA[
<!--markdown-->仅收集记录，所有内容均来源于公开或可获取的信息渠道，不对相关产品的实际性能、质量或使用体验作任何形式的保证或承诺，自行甄别，随时跑路，**且用且珍惜**
<p>说明：基本涵盖 深 / 泉 / 夏 / 沪 / 京 / 广 / 莞 / 琼 / 杭 入口，
部分商家提供了 云厂 CNIX 专线接入，云上互联，如 深圳前海 cnix，也有沪日方向的 CNIX，如果你手里有 阿里云 / 腾讯云 / 火山云 / 华为云 / UCloud / 百度云 任意一个前置机，那就很香了，比如阿里云的 ecs 99 活动机、或者他们的 200 Mbps 带宽的<strong>"无限"</strong>流量轻量服务器</p>
<ul>
<li><strong>注意事项</strong><ul>
<li>大多数需要实名，<strong>尽量月付</strong>，不要往里面存太多余额</li>
<li>一般来说都会提供落地，但是也有部分可能需要<strong>自备落地</strong>，取决于你购买的产品类型、商家</li>
<li>部分商家需要使用 tg 联系方式来人工开户审核</li>
<li>愿赌服输，特殊产品</li>
</ul>
</li>
</ul>
<hr />
<ul>
<li>
<p>NNR
<a href="https://nnr.moe/">https://nnr.moe/</a></p>
</li>
<li>
<p>GoRelay
<a href="https://gorelay.net/#register/FZAOAMEEES">https://gorelay.net/#register/FZAOAMEEES</a></p>
</li>
<li>
<p>KN4
<a href="https://kn4.com/">https://kn4.com/</a></p>
</li>
<li>
<p>轩辕云
<a href="https://www.globaliepl.com/index.php?rp=/store/wen-gang-duan-kou-zhuan-fa">https://www.globaliepl.com/index.php?rp=/store/wen-gang-duan-kou-zhuan-fa</a></p>
</li>
<li>
<p>Nya
<a href="https://nya.trp.sh/">https://nya.trp.sh/</a></p>
</li>
<li>
<p>大牛子
<a href="https://idc333.top/">https://idc333.top/</a>
备注：这家需要家宽住宅 IP 作为前置接入，使用机房 IP 接入会清退封号</p>
</li>
<li>
<p>连连看
<a href="https://sijowd9.bitmusthk.com/">https://sijowd9.bitmusthk.com/</a></p>
</li>
<li>
<p>HeptaSky 
<a href="https://heptasky.com/store/qhbgp-iplc">https://heptasky.com/store/qhbgp-iplc</a>
备注：提供 UCloud 专线接入 + 前海 IX</p>
</li>
</ul>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.0z.gs/{category}/3371.html#comments</comments>
</item>
<item>
<title>Orthanc 修改自带插件 OHIF 的配置参数</title>
<link>https://www.0z.gs/{category}/Orthanc-OHIF.html</link>
<guid isPermaLink="false">https://www.0z.gs/{category}/Orthanc-OHIF.html</guid>
<pubDate>Wed, 11 Mar 2026 10:09:09 +0800</pubDate>
<dc:creator>量子涨落</dc:creator>
<category><![CDATA[pacs]]></category>
<category><![CDATA[Orthanc]]></category>
<description><![CDATA[- 环境：Orthanc v1.12.10

由于某些原因需要修改 OHIF 的 showStudyList 参数为 false，
让 OHIF 搜索（或工作列表）页面不显示，并同时在 OHIF 浏览界面中屏蔽左上角显示的返回按钮（倒 V 形）来回退到工作...]]></description>
<content:encoded><![CDATA[
<!--markdown-->- 环境：Orthanc v1.12.10
<hr />
<p>由于某些原因需要修改 OHIF 的 <code>showStudyList</code> 参数为 <strong>false</strong>，
让 OHIF 搜索（或工作列表）页面不显示，并同时在 OHIF 浏览界面中屏蔽左上角显示的返回按钮（倒 V 形）来回退到工作列表</p>
<p>检查了安装目录 <code>Orthanc Server\Configuration</code> 下面的所有配置文件内容，并没看到相关配置文件
遍历本地磁盘，<strong>OHIF</strong> 关键字的关联文件只有</p>
<p><strong>"Orthanc Server\Plugins\libOrthancOHIF-Windows64.dll"</strong></p>
<p>这个文件有 51 MiB 大小，推测 Orthanc OHIF 插件会把前端资源、默认配置硬编码到插件二进制 DLL 里 
查询 OHIF 相关文档，得知需要访问这个 URL 查看 Orthanc 的 OHIF 静态资源路由</p>
<pre><code>http://127.0.0.1:8042/ohif/app-config.js</code></pre>
<p>访问后返回了一大堆参数信息，发现 Orthanc 将 <strong>showStudyList</strong> 定义为了 true，而 OHIF 官方配置的默认值其实是 false</p>
<p>将 Orthanc 预配置的 OHIF 参数信息全部复制，<strong>然后仅修改该参数</strong>，不能直接在该文件定义为 <code>window.config.showStudyList = false;</code>，这会导致 Orthanc 的所有预配置插件信息全部丢了</p>
<p>需要复制 <code>http://127.0.0.1:8042/ohif/app-config.js</code> 显示的所有内容，最后在 Orthanc 的配置目录，新建一个文件 <code>"Orthanc Server\Configuration\ohif-config.js"</code></p>
<p>把复制的所有内容粘贴进去，然后修改你需要的部分，保存</p>
<p>然后让 Orthanc 引用你的配置内容，覆盖掉其硬编码的默认配置</p>
<p>注入 OHIF 自定义参数配置到 Orthanc 主配置文件 <code>Orthanc Server\Configuration\orthanc.json</code>
这里注意 json 语法，追加前对上一个配置段落 <code>"MaximumConcurrentDcmtkTranscoders" : 0</code>手动添加 <code>,</code>后变为 <code>"MaximumConcurrentDcmtkTranscoders" : 0,</code>，再追加下面配置</p>
<pre><code>  "OHIF" : {
    "Enable" : true,
    "UserConfiguration" : "C:\\your\\path\\to\\Orthanc Server\\Configuration\\ohif-config.js"
  }</code></pre>
<p>终端里面使用 Debug 模式手动启动，查看输出信息，没有报错</p>
<pre><code>Orthanc.exe "C:\your\path\to\Orthanc Server\Configuration\orthanc.json" --trace</code></pre>
<p>启动成功，访问 <code>http://127.0.0.1:8042/ohif/</code> 检查效果，此时会显示黑屏，屏蔽成功</p>
<p>其他更多高级自定义特性请参考文末链接进行修改</p>
<hr />
<p>参看资料
<a href="https://docs.ohif.org/configuration/configurationfiles/">https://docs.ohif.org/configuration/configurationfiles/</a>
<a href="https://ohif.org/">https://ohif.org/</a></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.0z.gs/{category}/Orthanc-OHIF.html#comments</comments>
</item>
<item>
<title>nginx 配置最宽松的 CORS 跨域 header 到 location 复用</title>
<link>https://www.0z.gs/{category}/nginx-CORS-header-include.html</link>
<guid isPermaLink="false">https://www.0z.gs/{category}/nginx-CORS-header-include.html</guid>
<pubDate>Sun, 01 Feb 2026 03:53:52 +0800</pubDate>
<dc:creator>量子涨落</dc:creator>
<category><![CDATA[未定义]]></category>
<category><![CDATA[前端]]></category>
<description><![CDATA[cors.conf 内容

#CORS 
# #Allow all requset/method/header/custom credentials
    add_header 'Access-Control-Allow-Origin' $http_or...]]></description>
<content:encoded><![CDATA[
<!--markdown-->cors.conf 内容
<hr />
<pre><code>#CORS 
# #Allow all requset/method/header/custom credentials
    add_header 'Access-Control-Allow-Origin' $http_origin always;
    #add_header 'Access-Control-Allow-Origin' '*' always;
    add_header 'Access-Control-Allow-Headers' $http_access_control_request_headers always;
    add_header 'Access-Control-Allow-Credentials' 'true' always;
    add_header 'Access-Control-Max-Age' 86400 always;
    # 缓存 + 预检复用，动态允许所有方法可能会翻车，并且某些请求根本没有 Access-Control-Request-Method（非预检的简单请求、curl / 非浏览器客户端、代理 / 中转，此时会变为空值），上述场景中，动态允许所有方法最后的实际含义却变成了我允许你这一次用什么方法，所以最好明确定义所有支持的方法，对于任意的每次请求就不会踩坑掉坑里
    #add_header 'Access-Control-Allow-Methods' $http_access_control_request_method always;
    # 把 http RFC 现行标准里的核心方法 + WebDAV 的 RFC 标准定义的方法全部允许
   add_header 'Access-Control-Allow-Methods' 'GET,HEAD,POST,PUT,DELETE,TRACE,OPTIONS,PATCH,CONNECT,COPY,LOCK,MKCOL,MOVE,PROPPATCH,PROPFIND,UNLOCK,REPORT,CHECKOUT,MERGE,MKACTIVITY,SEARCH,ACL,LINK,UNLINK,PRI' always;
   add_header Vary "Origin" always;
     if ($request_method = 'OPTIONS') {
        return 204 always;
       }</code></pre>
<hr />
<p>把配置保存为 cors.conf 到 nginx 配置目录，通过 include 指令进行复用 ，在需要的 location 段引入该配置，如</p>
<pre><code>location ~* ^/api/ {    
include /usr/local/nginx/conf/cors.conf;
}</code></pre>
<ul>
<li>效果<ul>
<li>允许所有来源</li>
<li>允许所有请求头</li>
<li>允许所有 HTTP 方法（动态允许所有 Header 有些场景会翻车，比如第一次预检 PUT，第二次实际请求 POST，发现 Allow-Methods 里没有 POST，会拒绝，特别是 fetch 复用连接，service worker，跨页面请求等）</li>
<li>允许携带凭证</li>
<li>正确处理预检请求</li>
<li>适配 CDN 缓存场景，让 CDN / 代理正确区分不同 Origin</li>
</ul>
</li>
</ul>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.0z.gs/{category}/nginx-CORS-header-include.html#comments</comments>
</item>
<item>
<title>检查是哪个进程阻止电脑自动关闭屏幕</title>
<link>https://www.0z.gs/{category}/fuck-aDrive.html</link>
<guid isPermaLink="false">https://www.0z.gs/{category}/fuck-aDrive.html</guid>
<pubDate>Mon, 29 Dec 2025 17:42:50 +0800</pubDate>
<dc:creator>量子涨落</dc:creator>
<category><![CDATA[Windows]]></category>
<description><![CDATA[最近一段时间发现我的电脑屏幕经常无法自动关闭，重启电脑后能恢复正常
之前一直没深究，使用了一个脚本来手动关闭屏幕
powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern ...]]></description>
<content:encoded><![CDATA[
<!--markdown-->最近一段时间发现我的电脑屏幕经常无法自动关闭，重启电脑后能恢复正常
<p>之前一直没深究，使用了一个脚本来手动关闭屏幕</p>
<pre><code>powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int PostMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::PostMessage(-1,0x0112,0xF170,2)</code></pre>
<p>将其保存为 <strong>关闭屏幕.bat</strong>，双击运行即可自动关闭屏幕</p>
<p>这次有空了进行一下检查
使用系统内置命令查询是谁干扰了电源策略</p>
<pre><code>powercfg -requests</code></pre>
<p><img src="https://cdn.0z.gs/2025/12/29/69524dd106e2b.jpg" alt="请输入图片描述" /></p>
<p>输出结果这个进程是 Electron 框架开发的，一看进程名，这不就是 阿里云盘 吗
问题是我的阿里云盘基本是闲置状态，没有任何下载、上传、同步任务，没有开启任何同步盘、挂载盘、自动备份等需要持续保持后台进程的任务
唯一可能的选项 <strong>有传输任务时电脑不休眠</strong> 也是没勾选，我也没用阿里云盘进行任何操作，就是闲置挂机到后台而已，这桌面版客户端的开发人员太恶心人了，怀疑是有意为之</p>
<p>把阿里云盘客户端退出后恢复正常，电脑自动按预设的1分钟后无任何操作自动关闭屏幕</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.0z.gs/{category}/fuck-aDrive.html#comments</comments>
</item>
<item>
<title>Orthanc 从默认数据库引擎 SQLite 索引平滑迁移到 PostgreSQL</title>
<link>https://www.0z.gs/{category}/Orthanc-postgresql.html</link>
<guid isPermaLink="false">https://www.0z.gs/{category}/Orthanc-postgresql.html</guid>
<pubDate>Thu, 18 Dec 2025 08:43:02 +0800</pubDate>
<dc:creator>量子涨落</dc:creator>
<category><![CDATA[pacs]]></category>
<category><![CDATA[Orthanc]]></category>
<description><![CDATA[最近发现随着使用时间变长，Orthanc 的性能下降变得十分明显，且越来越无法忍受，表现为从 PACS 系统上查询缓慢，通常需要10秒 +，下载也缓慢，内网千兆空闲，极端情况下，传输速度甚至会掉到 300 KiB/s ，并且经测试不是本地硬盘的读写瓶颈（队...]]></description>
<content:encoded><![CDATA[
<!--markdown-->最近发现随着使用时间变长，Orthanc 的性能下降变得十分明显，且越来越无法忍受，表现为从 PACS 系统上查询缓慢，通常需要10秒 +，下载也缓慢，内网千兆空闲，极端情况下，传输速度甚至会掉到 300 KiB/s ，并且经测试不是本地硬盘的读写瓶颈（队列、4K）
<p>因为之前是基本默认配置部署的，想着是不是有什么更优配置需要修改下
查了下官方社区文档资料
<a href="https://orthanc.uclouvain.be/book/faq/troubleshooting.html">https://orthanc.uclouvain.be/book/faq/troubleshooting.html</a></p>
<p>提到其默认部署的数据库引擎是 <strong>SQLite</strong>,这里已经蚌埠住了，应该是这个问题没跑了，继续往下看看到
<strong>From a performance point of view, you may stick with SQLite if you do not plan to store more than 25.000 - 50.000 instances.</strong>
从性能角度看，如果你不打算存储超过 25,000 到 50,000 个实例，可以选择 SQLite。</p>
<p>看到这句话，我立刻检查了当前本地 Orthanc PACS 系统的存储实例数量</p>
<pre><code># Patients  1490
# 研究    1644
# 系列    8324
# 实例    674946
存储大小    322.06 GB</code></pre>
<p>好家伙，67 万+ 已经远远超出默认 SQLite 数据库引擎索引的推荐范围了
检查本地文件系统上面的 Orthanc 所使用的默认 SQLite 索引文件大小
<strong>D:\OrthancStorage\index</strong> 显示为1.05 GiB，才 1 GiB 就已经无法忍受了，很难想象现在不解决后面数据量继续增加再解决，会是什么表情，全是技术债啊
是时候动手了，尝试从默认的 SQLite 索引迁移到的 PostgreSQL，这里 PostgreSQL 只做 Index，因为我这里不是使用了 对象存储 / HA / 云场景
对于本地单机实例来说，Storage 继续用 本地文件系统 NTFS，不让 PostgreSQL 成为 DICOM 文件的存储后端，官方备注 <strong>You likely don't need to enable this option</strong></p>
<hr />
<ul>
<li>
<h3>环境</h3>
<ul>
<li>Windows 11 24H2 Tiny</li>
<li>Orthanc <strong>1.12.7</strong>、<strong>1.12.10</strong></li>
<li>希捷银河 X16 氦气机械硬盘</li>
<li>330 GiB 数据量，67 万+ 实例（Instances）</li>
</ul>
</li>
</ul>
<hr />
<ol>
<li>
<p>去官网获取最新版本的 PostgreSQL 相关插件
默认安装时是有自带的 PostgreSQL相关插件，我看了下我的自带插件版本为 v7.2
C:\Program Files\Orthanc Server\Plugins 下面的 2 个插件：OrthancPostgreSQLIndex.dll、OrthancPostgreSQLStorage.dll
去官网下载最新版 <a href="https://orthanc.uclouvain.be/downloads/windows-64/orthanc-postgresql/index.html">https://orthanc.uclouvain.be/downloads/windows-64/orthanc-postgresql/index.html</a>
此时此刻最新版为 v10.0
把下载回来的 OrthancPostgreSQLStorage-10.0.dll 和 OrthancPostgreSQLIndex-10.0.dll 重命名，去掉后缀的 <strong>-10</strong>
备份原本的自带插件版本，直接在原本的插件上重命名附带 <strong>_bak</strong> 后缀，完成备份，把新版的插件放到插件目录
启动失败，日志输出二进制不兼容，无奈只能回滚到自带的插件版本
<strong>也就是必须使用配套的自带的插件版本</strong></p>
</li>
<li>
<p>安装 PostgreSQL 数据库
到官网下载最新版，此时最新版为 v18.1.2
<a href="https://www.postgresql.org/download/">https://www.postgresql.org/download/</a></p>
</li>
</ol>
<p>安装完之后，使用超级管理员权限给 Orthanc 分配一个专用数据库，将 PostgreSQL 的相关路径添加到系统的环境变量
如我这里是 <code>D:\PostgreSQL\18\bin</code></p>
<p>打开终端，登录 PostgreSQL CLI</p>
<pre><code>psql -U postgres</code></pre>
<p>创建 orthanc 用户和数据库，这里用户名数据库密码全部为 orthanc</p>
<pre><code>   CREATE USER orthanc WITH PASSWORD 'secret';
   CREATE DATABASE orthanc
   WITH OWNER = orthanc
   ENCODING = 'UTF8';
   GRANT ALL PRIVILEGES ON DATABASE orthanc TO orthanc;</code></pre>
<ol start="3">
<li>
<p>查询迁移相关资料
经过长达一天的各种尝试，在当前版本 (2025-05-22) 最新发布的 v1.12.7 情况下，<strong>无法只迁移 SQLite 索引到 PostgreSQL</strong>
相关资料
<a href="https://discourse.orthanc-server.org/t/help-with-index-migration-from-sqlite-to-postgresql-using-python-orthanc-tools/5930/1">https://discourse.orthanc-server.org/t/help-with-index-migration-from-sqlite-to-postgresql-using-python-orthanc-tools/5930/1</a>
<a href="https://orthanc.uclouvain.be/book/users/replication.html">https://orthanc.uclouvain.be/book/users/replication.html</a>
<a href="https://orthanc.uclouvain.be/book/plugins/advanced-storage.html">https://orthanc.uclouvain.be/book/plugins/advanced-storage.html</a>
都是必须对原有数据存储目录进行复制，相当于重新导入
最后还是发现了一个官方的方案
有一个 <strong>Advanced Storage Plugin</strong> 插件可以处理这种数据库索引迁移的情况
但是对版本有要求，要求是 ≥ v1.12.8 ，我这是 v1.12.7，有点尴尬刚好差临门一脚，此时最新版为 2025-12-15 发布的 v1.12.10
好在升级很简单
停止运行旧版本 Ortahnc 后台相关服务，然后使用自带的卸载程序卸载，会保留所有数据和配置，仅是卸载自身，放心卸载
之后下载最新版安装程序，运行安装，安装时，注意存储目录和安装目录要跟卸载前的一致，即可无损平滑升级
之后顺利启动</p>
</li>
<li>
<p>使用高级存储插件来实现 SQLite 索引迁移到 PostgreSQL</p>
<h4>文档：</h4>
<p><a href="https://orthanc.uclouvain.be/book/plugins/advanced-storage.html">https://orthanc.uclouvain.be/book/plugins/advanced-storage.html</a>
<a href="https://github.com/orthanc-server/orthanc-setup-samples/tree/master/docker/sqlite-to-postgresql">https://github.com/orthanc-server/orthanc-setup-samples/tree/master/docker/sqlite-to-postgresql</a>
<a href="https://github.com/orthanc-server/orthanc-advanced-storage/blob/master/Plugin/Configuration.json">https://github.com/orthanc-server/orthanc-advanced-storage/blob/master/Plugin/Configuration.json</a>
这也是官方例子里面的一个典型场景，原话 <strong>Note: The plugin should never be configured to index its own Orthanc storage! However, the plugin might be used to index another Orthanc storage, e.g., to perform a migration from SQLite to PostgreSQL.</strong> </p>
</li>
</ol>
<p>最后根据文档，迁移配置如下
编辑 Orthanc 的配置文件 <strong>"C:\Program Files\Orthanc Server\Configuration\orthanc.json"</strong></p>
<p>添加如下字段</p>
<pre><code>    "AdvancedStorage": {
    "Enable": true,
    "Indexer": {
      "Enable": true,

       // Interval (in seconds) between the end of a scan and the start of the next scan.

      "Interval": 10,

      // Interval (in milliseconds) between the handling of 2 scanned files.  This reduces the
      // workload on Orthanc while scanning files.

      "ThrottleDelayMs": 5,

      // The list of file extensions to parse while indexing.  Any extension not in this list will not be parsed.
      // This option can not be used together with "SkippedExtensions".
      "ParsedExtensions": [],

      // The list of file extensions to skip from indexing.  Any file ending with one of these extensions will not be parsed.
      // This option can not be used together with "ParsedExtensions"

      "SkippedExtensions": [],
      "Folders": ["D:\\OrthancStorage"],
      "TakeOwnership": true
    },
     // This is the Delayed Deletion mode configuration.  On some file systems, file deletions might
    // be slow.  When the delayed deletion moe is enabled, when Orthanc needs to delete a file,
    // the file is scheduled for later deletion and the delete operation seems fast from the user point of view.
    // Orthanc will then delete all scheduled files asynchronously. 
    // This replaces the former delayed-deletion plugin.
    "DelayedDeletion": {
      // Set "Enable" to true to enable the delayed deletion moe
      "Enable": true,

      // Interval (in milliseconds) between the deletion of 2 scheduled files.  This reduces the
      // workload on the disk while deleting files.
      "ThrottleDelayMs": 5
    }
    },
   "PostgreSQL": {
        "EnableIndex": true,
        "EnableStorage": false,

        "Host": "127.0.0.1",
        "Port": 5432,
        "Database": "orthanc",
        "Username": "orthanc",
        "Password": "orthanc",

        "Lock": false,
        "EnableSsl": false,

        "MaximumConnectionRetries": 10,
        "ConnectionRetryInterval": 5,

        "IndexConnectionsCount": 50,
        "TransactionMode": "ReadCommitted",

        "EnableVerboseLogs": false,
        "HousekeepingInterval": 1,

        "AllowInconsistentChildCounts": false,
        "UseDynamicConnectionPool": false,

        "Schema": "public",
        "ApplicationName": "Orthanc"
        },</code></pre>
<p>以上配置中，其他正常配置没什么说的，有一个特性可以开启，开启 <strong>DelayedDeletion</strong> 延迟删除功能，可以把删除文件的操作改为异步操作+后台队列进行</p>
<p>开始测试，为了便于观察，使用终端启动 Orthanc，并添加 Debug 标志输出详细日志信息</p>
<pre><code>Orthanc.exe "C:\Program Files\Orthanc Server\Configuration\orthanc.json" --trace</code></pre>
<p><img src="https://cdn.0z.gs/2025/12/19/6944bc2525126.jpg" alt="请输入图片描述" /></p>
<p>可以看到已经生效了，扫描本地的存储后端的数据，读取每个 DICOM 文件的元信息，重建索引写入 PostgreSQL，并且无需停机
期间可以继续接受新的检查推送，平滑升级
就是本地的这个希捷银河 X16 氦气硬盘在发出吱吱喳喳的炒豆子声音
访问 <strong>Orthanc Explorer 2</strong> WebUI ：<a href="http://127.0.0.1:8042/ui/app/index.html#/settings">http://127.0.0.1:8042/ui/app/index.html#/settings</a>
根据观察，大概 1 分钟能识别添加重建索引的数据量为 0.5 - 1 GiB 的样子
10 分钟的时候，识别添加纳入索引的实例数量为 7867，1454 个研究，速度还是很快的</p>
<p>升级期间，就进行效果测试，然后也是给了我一个大大的惊喜
从 Orthanc PACS 查询检索，一个月的数据量，千条级别的量级检索，0.5 秒立刻返回了数据，经过多次测试，检索速度提升显著
无线网络下，下载速度从 300 ~ 1000 KiB/s 提升到 22.5 MiB/s（无线网卡速率瓶颈），有线网卡随意跑满 1 Gbps 带宽
对于<strong>一年</strong>的数据量规模，也是没有任何压力，至多 3 秒钟给我返回了 上万+ 数据
以前过得都是什么苦日子，查个 1 天范围的数据，几条数据，都是需要十几秒的查询耗时，经常还无响应</p>
<p>检查资源占用，PG 开了 60 个子进程，但是内存占用很低，常驻闲置状态下每个子进程 几百 KiB ~ 5 MiB，，有传输任务时能快速响应，挺好的</p>
<p>PostgreSQL 不愧是 <strong>The World's Most Advanced Open Source Relational Database</strong>（世界上最先进的开源关系数据库）</p>
]]></content:encoded>
<slash:comments>2</slash:comments>
<comments>https://www.0z.gs/{category}/Orthanc-postgresql.html#comments</comments>
</item>
<item>
<title>某些应用绕过谷歌 Play Integrity 完整性校验的方法</title>
<link>https://www.0z.gs/{category}/Play-Integrity.html</link>
<guid isPermaLink="false">https://www.0z.gs/{category}/Play-Integrity.html</guid>
<pubDate>Thu, 04 Dec 2025 07:27:30 +0800</pubDate>
<dc:creator>量子涨落</dc:creator>
<category><![CDATA[Android]]></category>
<description><![CDATA[刷机后，一直使用的是 Play Integrity Fix (PIF) Magisk 模块提升谷歌服务框架的 Play Integrity 检测的完整性等级，该模块的开发者为 chiteroman，在某一段时间之后发现该模块一直没收到最新版更新，因为没遇到...]]></description>
<content:encoded><![CDATA[
<!--markdown-->刷机后，一直使用的是 Play Integrity Fix (PIF) Magisk 模块提升谷歌服务框架的 Play Integrity 检测的完整性等级，该模块的开发者为 chiteroman，在某一段时间之后发现该模块一直没收到最新版更新，因为没遇到校验问题，也没在意，后面遇到问题时手动检查模块的更新，才发现原作者已经在 GitHub 删除该项目，并在 XDA 开发者论坛发表了相关说明，挺可惜的
<p>最近更新 Play Store 版本到较新版本，有些应用搜不到，并且本机上已安装的该应用也无法打开闪退，通过第三方渠道 apkpure 拿到最新版安装包也没用
因为本身刷机，联想到是本机完整性校验没通过，检测之后发现 SafetyNet 测试为 <code>Failed</code>
Play Integrity API 等级降级到 <code>MEETS_BASIC_INTEGRITY</code>，没想到那么快就失效了</p>
<p>无奈只好换别的，刷了不同活跃的 fork 原项目的 <code>Play Integrity Fix</code> 的模块都没法提升设备完整性等级，即使环境做好隐藏、通过 Google Play Store 设备认证，也依然无法使用该应用</p>
<p>这些都试过
tryigit/PlayIntegrityFix
Bradford1040/PlayIntegrityFix
KOWX712/PlayIntegrityFix
osm0sis/PlayIntegrityFork</p>
<p>也就是该应用强依赖 Google Play Store 提供的安全机制的校验，想着降级 Play Store 版本会移除这些增强的安全措施</p>
<p>因为已经进行了核心破解，直接覆盖安装降级
此时我用的 Play Store 版本是 v47，降到 v41 不行，降到 v39.8 不行，最后降级到 v34.9， 该应用可以正常打开使用了</p>
<p>下面提供一些不同版本的 Google Play Store 合集
<a href="https://www.alipan.com/s/4DM9htQGeHQ">https://www.alipan.com/s/4DM9htQGeHQ</a>
提取码 5rc9</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.0z.gs/{category}/Play-Integrity.html#comments</comments>
</item>
<item>
<title>管理员取得所有权.reg</title>
<link>https://www.0z.gs/{category}/3318.html</link>
<guid isPermaLink="false">https://www.0z.gs/{category}/3318.html</guid>
<pubDate>Tue, 25 Nov 2025 23:33:14 +0800</pubDate>
<dc:creator>量子涨落</dc:creator>
<category><![CDATA[Windows]]></category>
<description><![CDATA[
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\...]]></description>
<content:encoded><![CDATA[
<!--markdown-->
<pre><code>Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" &amp;&amp; icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" &amp;&amp; icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\exefile\shell\runas2]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\exefile\shell\runas2\command]
@="cmd.exe /c takeown /f \"%1\" &amp;&amp; icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" &amp;&amp; icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y &amp;&amp; icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y &amp;&amp; icacls \</code></pre>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.0z.gs/{category}/3318.html#comments</comments>
</item>
<item>
<title>给 ComfyUI 配置代理免 TUN 虚拟网卡驱动</title>
<link>https://www.0z.gs/{category}/ComfyUI-TUN.html</link>
<guid isPermaLink="false">https://www.0z.gs/{category}/ComfyUI-TUN.html</guid>
<pubDate>Tue, 25 Nov 2025 12:38:02 +0800</pubDate>
<dc:creator>量子涨落</dc:creator>
<category><![CDATA[未定义]]></category>
<description><![CDATA[公司网络配置了上网行为管理系统：**云枢上网行为管理(YunShu.exe）**
不过倒是没有禁止第三方驱动加载，在这种情况下，Clash 客户端即使成功加载 TUN 虚拟网卡所需的驱动，开启 TUN 虚拟网卡模式，ComfyUI 在登录账户时依然进不去，...]]></description>
<content:encoded><![CDATA[
<!--markdown-->公司网络配置了上网行为管理系统：**云枢上网行为管理(YunShu.exe）**
<p>不过倒是没有禁止第三方驱动加载，在这种情况下，Clash 客户端即使成功加载 TUN 虚拟网卡所需的驱动，开启 TUN 虚拟网卡模式，ComfyUI 在登录账户时依然进不去，报错 <strong>Firebase:Error(auth/network-request-failed)</strong></p>
<p>clash meta core 日志疯狂刷屏输出 <strong>WARNING</strong> 级别日志</p>
<pre><code>The requested address is not valid in its context.</code></pre>
<p>原因是 YunShu.exe 与 Clash TUN 冲突，或许可以尝试在 clash 配置文件加入</p>
<pre><code>exclude-process:
    - YunShu.exe</code></pre>
<p>因时间问题没有测试，使用了别的方案</p>
<p>因为这样那样的原因，需要在不动上网行为管理系统的情况下让 comfyUI 正常走代理使用
经过测试，发现 ComfyUI 支持配置代理，无需开启 TUN 虚拟网卡模式
注意自行修改本地代理监听的端口号，这里设置的是 clash 默认监听的端口 7890，如果不是该端口，自行修改批处理脚本里面的端口号</p>
<p>配置成品：
<a href="https://www.alipan.com/s/8BsTvnn44Zw">https://www.alipan.com/s/8BsTvnn44Zw</a>
提取码 rk43</p>
<p>新建一个批处理文件，内容填写为如下，并保存，之后管理员权限运行该批处理</p>
<pre><code>setx all_proxy "http://127.0.0.1:7879" /m
setx ALL_PROXY "http://127.0.0.1:7879" /m
setx http_proxy "http://127.0.0.1:7879" /m
setx HTTP_PROXY "http://127.0.0.1:7879" /m
setx https_proxy "http://127.0.0.1:7879" /m
setx HTTPS_PROXY "http://127.0.0.1:7879" /m</code></pre>
<p>然后在 Clash 客户端开启 系统代理 开关，退出 ComfyUI，<strong>重新打开才能生效</strong></p>
<p>此时 ComfyUI 所有的相关工具链、环境依赖的网络请求 git / python / pip 都会走系统代理、你设置的本地代理监听端口
之后就能正常登录账户</p>
<hr />
<p>如果是个人电脑，就没那么麻烦了，简单粗暴 TUN 虚拟网卡 一把梭</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.0z.gs/{category}/ComfyUI-TUN.html#comments</comments>
</item>
<item>
<title>Can&amp;#039;t find MMDB, start download</title>
<link>https://www.0z.gs/{category}/linux-metacore-run.html</link>
<guid isPermaLink="false">https://www.0z.gs/{category}/linux-metacore-run.html</guid>
<pubDate>Thu, 06 Nov 2025 18:00:00 +0800</pubDate>
<dc:creator>量子涨落</dc:creator>
<category><![CDATA[Linux]]></category>
<description><![CDATA[Linux 下启动 clash meta core（mihomo） 时报错
root@8ng41dng:~/.config/mihomo# $HOME/clashmeta/clashmetacore
INFO[2025-11-06T17:53:58.977...]]></description>
<content:encoded><![CDATA[
<!--markdown-->Linux 下启动 clash meta core（mihomo） 时报错
<pre><code>root@8ng41dng:~/.config/mihomo# $HOME/clashmeta/clashmetacore
INFO[2025-11-06T17:53:58.977586084+08:00] Start initial configuration in progress      
INFO[2025-11-06T17:53:58.978506844+08:00] Geodata Loader mode: memconservative         
INFO[2025-11-06T17:53:58.978531440+08:00] Geosite Matcher implementation: succinct     
INFO[2025-11-06T17:53:58.987239196+08:00] Can't find MMDB, start download  </code></pre>
<p>缺少<strong>前置基础分流数据库文件</strong> <code>country.mmdb</code>，它会尝试直接从官方上游 MetaCubeX 的项目拉取最新 latest tag 的文件</p>
<p>因为本身没代理，clash meta core 会尝试国内服务器直连 GitHub 拉取分流数据库：<a href="https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb">https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb</a> ，在国内因为神秘力量，访问 GitHub 大概率是连接会被劣化、DNS 污染、RST 重置、SNI 嗅探等方式被干扰，导致无法下载，我们直接手动使用 GitHub 镜像站下载该分流数据库文件</p>
<p>cd 到 calsh meta core 的分流数据库默认保存路径</p>
<pre><code>cd $HOME/.config/mihomo/</code></pre>
<p>在该路径下，下载相关基础前置分流数据库文件</p>
<p><strong>使用 GitHub 镜像进行下载</strong></p>
<h3>镜像 URL：</h3>
<ul>
<li>
<p>使用 wget 下载</p>
<p>wget -L <a href="https://hub.keccak.top/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb">https://hub.keccak.top/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb</a></p>
</li>
<li>
<p>或者 curl</p>
<p>curl -L -O -k <a href="https://hub.keccak.top/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb">https://hub.keccak.top/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb</a></p>
</li>
</ul>
<p><strong>备注：使用镜像加速时禁止使用代理，镜像站屏蔽了非中国大陆 IP 的访问</strong></p>
<ul>
<li>其他相关规则数据镜像 URL（上游：MetaCubeX）：
<strong>GeoIP</strong>：<code>https://hub.keccak.top/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat</code>
<strong>GeoSite</strong>：<code>https://hub.keccak.top/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat</code>
<strong>MMDB 数据库</strong>：<code>https://hub.keccak.top/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.metadb</code>
<strong>ASN 数据库</strong>：<code>https://hub.keccak.top/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb</code></li>
</ul>
<p>再次启动 Clash meta 核心即可，以我当前的保存 mihomo 核心的位置 <strong>/root/clashmeta/clashmetacore</strong>，那么就是</p>
<pre><code>$HOME/clashmeta/clashmetacore</code></pre>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.0z.gs/{category}/linux-metacore-run.html#comments</comments>
</item>
</channel>
</rss>
