<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[御风]]></title><description><![CDATA[御风]]></description><link>https://blog.ooim.xyz</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 12:35:41 GMT</lastBuildDate><atom:link href="https://blog.ooim.xyz/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[resend添加域名填坑]]></title><description><![CDATA[本文首发在我的xlog站点
在resend 添加域名后一直都是带验证状态，等了五天，忍不住了。看官方文档，竟然有在另一个地方有小字说明。晕

目标
添加域名，才能成功发送邮件
过程

直接无脑复制提示的字段到DNS服务商中添加

发现长时间没生效

看官方文档 发现坑

填补好


Omit your domain from the record values in Resend when you paste.
Instead of bounces.example.com, paste only...]]></description><link>https://blog.ooim.xyz/resend-add-domain-tips</link><guid isPermaLink="true">https://blog.ooim.xyz/resend-add-domain-tips</guid><category><![CDATA[Tutorial]]></category><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Sat, 12 Aug 2023 16:36:16 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/ukzHlkoz1IE/upload/245d5e881f2692cc01810b476823311d.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<blockquote>
<p>本文首发在<a target="_blank" href="https://xlog.ooim.xyz">我的xlog站点</a></p>
<p>在resend 添加域名后一直都是带验证状态，等了五天，忍不住了。看官方文档，竟然有在另一个地方有小字说明。晕</p>
</blockquote>
<h2 id="heading-55uu5qch">目标</h2>
<p>添加域名，才能成功发送邮件</p>
<h2 id="heading-6lh56il">过程</h2>
<ol>
<li><p>直接无脑复制提示的字段到DNS服务商中添加</p>
</li>
<li><p>发现长时间没生效</p>
</li>
<li><p>看<a target="_blank" href="https://resend.com/docs/dashboard/domains/cloudflare#add-txt-dkim-records">官方文档</a> 发现坑</p>
</li>
<li><p>填补好</p>
</li>
</ol>
<pre><code class="lang-bash">Omit your domain from the record values <span class="hljs-keyword">in</span> Resend when you paste.
Instead of bounces.example.com, paste only bounces
(or bounces.subdomain <span class="hljs-keyword">if</span> you’re using a subdomain).
</code></pre>
<p>也就是说只要添加<code>bounces.subdomain</code> ，而不是<code>bounces.subdomain.domain</code></p>
<pre><code class="lang-bash">Omit your domain from the record values <span class="hljs-keyword">in</span> Resend when you paste.
Instead of resend._domainkey.example.com, paste only resend._domainkey
(or resend._domainkey.subdomain <span class="hljs-keyword">if</span> you’re using a subdomain).
</code></pre>
<p>子域名不需要再加入字段中</p>
<p><img src="https://mintlify.s3-us-west-1.amazonaws.com/resend/images/dashboard-domains-resend-dkim.png" alt /></p>
<h2 id="heading-5oc757ut">总结</h2>
<ul>
<li><p>RTFM read the fuxking manual 果然是真理😁</p>
</li>
<li><p>不要盲目相信提示的信息</p>
</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[重置nginx proxy manager登录密码]]></title><description><![CDATA[原文来自 https://github.com/NginxProxyManager/nginx-proxy-manager/discussions/1634

介绍intro
nginx proxy manager 是基于`docker`可以用签SSL和设置代理的非常便捷的工具
原理
先进入容器空间，删除用户信息，再加回去
步骤
第一步
docker exec -it <container-name> sh
apt update && apt install sqlite3 -y
sqlite3...]]></description><link>https://blog.ooim.xyz/nginx-proxy-manager</link><guid isPermaLink="true">https://blog.ooim.xyz/nginx-proxy-manager</guid><category><![CDATA[technology]]></category><category><![CDATA[nginx]]></category><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Wed, 19 Jul 2023 17:57:08 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/j7mGBT2hyM8/upload/9b5e8788a0d8010dc559be1b9f16aa78.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<blockquote>
<p>原文来自 <a target="_blank" href="https://github.com/NginxProxyManager/nginx-proxy-manager/discussions/1634">https://github.com/NginxProxyManager/nginx-proxy-manager/discussions/1634</a></p>
</blockquote>
<h2 id="heading-intro">介绍intro</h2>
<p><a target="_blank" href="http://nginxproxymanager.com"><code>nginx proxy manager</code></a> 是基于`docker`可以用签SSL和设置代理的非常便捷的工具</p>
<h2 id="heading-5y6f55cg">原理</h2>
<p>先进入容器空间，删除用户信息，再加回去</p>
<h2 id="heading-5q2l6aqk">步骤</h2>
<h3 id="heading-56ys5lia5q2l">第一步</h3>
<pre><code class="lang-bash">docker <span class="hljs-built_in">exec</span> -it &lt;container-name&gt; sh
apt update &amp;&amp; apt install sqlite3 -y
sqlite3 /data/database.sqlite
</code></pre>
<p>进入了SQL模式后</p>
<pre><code class="lang-sql"><span class="hljs-keyword">UPDATE</span> <span class="hljs-keyword">user</span> <span class="hljs-keyword">SET</span> is_deleted=<span class="hljs-number">1</span>;
.exit
exit
</code></pre>
<h3 id="heading-56ys5lqm5q2l">第二步</h3>
<p>重启容器</p>
<h3 id="heading-56ys5lij5q2l">第三步</h3>
<p>在网页端登录</p>
<pre><code class="lang-bash">login: admin@example.com
pass: changeme
</code></pre>
<h3 id="heading-56ys5zub5q2l">第四步</h3>
<p>还原</p>
<pre><code class="lang-bash">docker <span class="hljs-built_in">exec</span> -it &lt;container-name&gt; sh
sqlite3 /data/database.sqlite
</code></pre>
<pre><code class="lang-sql"><span class="hljs-keyword">UPDATE</span> <span class="hljs-keyword">user</span> <span class="hljs-keyword">SET</span> is_deleted=<span class="hljs-number">0</span>;
.exit
exit
</code></pre>
]]></content:encoded></item><item><title><![CDATA[老iPhone支持中国广电卡]]></title><description><![CDATA[广电官方：苹果2018年9月后发布的机型均支持广电4G网络服务，5G网络软件适配正在进行中。建议升级到iOS16.0版本，如无法驻网请手动设置：设置-蜂窝网络-蜂窝数据选项-语音与数据-勾选“VoLTE”，然后执行一次飞行模式。 也就是起码得是 iPhone XR 才行。这不是欺负人吗（苹果？还是广电？） 我们DIY解决


原理分析
实测只需要更新IPCC文件就可以完美使用广电网络了。不用越狱不用解锁

具体步骤

先开飞行模式

再用爱思的工具箱里选择更新IPCC工具箱-选择本地IPCC文件...]]></description><link>https://blog.ooim.xyz/iphone-support-chinabroadnet-ipcc</link><guid isPermaLink="true">https://blog.ooim.xyz/iphone-support-chinabroadnet-ipcc</guid><category><![CDATA[chinabroadnet]]></category><category><![CDATA[ipcc]]></category><category><![CDATA[iphone]]></category><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Fri, 06 Jan 2023 08:51:12 GMT</pubDate><content:encoded><![CDATA[<blockquote>
<p>广电官方：苹果2018年9月后发布的机型均支持广电4G网络服务，5G网络软件适配正在进行中。建议升级到iOS16.0版本，如无法驻网请手动设置：设置-蜂窝网络-蜂窝数据选项-语音与数据-勾选“VoLTE”，然后执行一次飞行模式。 也就是起码得是 iPhone XR 才行。<s>这不是欺负人吗（苹果？还是广电？）</s> 我们DIY解决</p>
</blockquote>
<p><img src="https://shouji.10099.com.cn/list/img/iphone.png" alt="iPhone14设置" /></p>
<h3 id="heading-5y6f55cg5yig5p6q">原理分析</h3>
<p>实测只需要更新IPCC文件就可以完美使用广电网络了。不用越狱不用解锁</p>
<p><img src="https://cdn.ooim.xyz/991cdaf3f6353e710e1b62166684eb44.png" alt /></p>
<h3 id="heading-5yw35l2t5q2l6aqk">具体步骤</h3>
<ol>
<li><p>先开飞行模式</p>
</li>
<li><p>再用爱思的工具箱里选择更新IPCC工具箱-选择本地IPCC文件 （链接看本文末尾）</p>
</li>
<li><p>再关闭飞行模式</p>
</li>
<li><p>再进设置-蜂窝数据-蜂窝数据选项-语音与数据-打开4g/LTE和VoLTE/语音与数据</p>
</li>
</ol>
<p><img src="https://cdn.ooim.xyz/a3f60250ff54cf96e002208dbec35d38.jpg" alt /></p>
<ol>
<li><p>确保网络选择里面关闭<code>自动</code> ，手动选择<code>中国广电</code></p>
<p> <img src="https://cdn.ooim.xyz/5e850d20c4e98897f7aaa1ded08a4de7.jpg" alt /></p>
</li>
</ol>
<h3 id="heading-5pwi5p6c5bgv56s6">效果展示</h3>
<p>完美电话，4G/LTE上网，VoLTE也正常。理论支持iPhone XR以前的所有iPhone。</p>
<p><img src="https://cdn.ooim.xyz/1c45cf2276c66542e9bc4c0c0727c053.jpg" alt /></p>
<h3 id="heading-ippc">IPPC文件下载</h3>
<p>推荐<a target="_blank" href="https://myod.ooim.xyz/api/raw/?path=/img/%E5%B9%BF%E7%94%B5iphone6.ipcc&amp;odpt=f20fe38dd3fa965a64c99e4e3e650274de8e0581ed98dd7f34fe1c4c1aace1d1">广电 15.7.2可以用</a></p>
]]></content:encoded></item><item><title><![CDATA[解决nginx端口占用]]></title><description><![CDATA[错误信息:nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
主要是端口被占用，通过如下命令，可以查看该端口被那个应用占用:
sudo netstat -ntpl
然后 kill  PID 将相关进程关闭即可解决]]></description><link>https://blog.ooim.xyz/nginx-port-in-use</link><guid isPermaLink="true">https://blog.ooim.xyz/nginx-port-in-use</guid><category><![CDATA[nginx]]></category><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Sun, 01 Jan 2023 10:46:25 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/9be7a24cc6844137e74a89d844cababd.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>错误信息:nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)</p>
<p>主要是端口被占用，通过如下命令，可以查看该端口被那个应用占用:</p>
<p><code>sudo netstat -ntpl</code></p>
<p>然后 <code>kill  PID</code> 将相关进程关闭即可解决</p>
]]></content:encoded></item><item><title><![CDATA[博客正式遷移到Hexo]]></title><description><![CDATA[緣起

徘徊于WordPress 迷茫于VPS

糾結選哪個blog framework安家

猛然發現平台真的不重要 折騰的心應該focus于內容

希望得到舒適恬靜描描畫畫feelings （而不是臃腫擔心的後台admin）


目標

簡潔優美的書寫環境

輕鬆快捷的發佈服務端

意外極端情況的應急修復能力


擼起褲腿 思路+實現
本地測試環境 (現有)OS:win7 64bit text編輯器：notepad++ (即將搭建) git node.js npm hexo 基於node.j...]]></description><link>https://blog.ooim.xyz/migrate-hexo</link><guid isPermaLink="true">https://blog.ooim.xyz/migrate-hexo</guid><category><![CDATA[Blogging]]></category><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Sat, 31 Dec 2022 08:56:37 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/54dcec6574b8b34ac1072057df03ac78.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-57ej6lw3">緣起</h2>
<ul>
<li><p>徘徊于WordPress 迷茫于VPS</p>
</li>
<li><p>糾結選哪個blog framework安家</p>
</li>
<li><p>猛然發現平台真的不重要 折騰的心應該focus于內容</p>
</li>
<li><p>希望得到舒適恬靜描描畫畫feelings （而不是臃腫擔心的後台admin）</p>
</li>
</ul>
<h2 id="heading-55uu5qiz">目標</h2>
<ul>
<li><p>簡潔優美的書寫環境</p>
</li>
<li><p>輕鬆快捷的發佈服務端</p>
</li>
<li><p>意外極端情況的應急修復能力</p>
</li>
</ul>
<h2 id="heading-5po86lw36ksy6iwioaanei3ryvlr6bnj74">擼起褲腿 思路+實現</h2>
<p>本地測試環境 (現有)OS:win7 64bit text編輯器：notepad++ (即將搭建) <a target="_blank" href="http://git-scm.com/">git</a> <a target="_blank" href="https://www.npmjs.org/">node.js npm</a> <a target="_blank" href="http://hexo.io/">hexo 基於node.js靜態博客生成處理工具</a></p>
<p>遠程服務端環境 支持靜態化html解析的Github Pages</p>
<h2 id="heading-local-environment-setup">本地 local environment setup</h2>
<p>1.win平台安裝git <a target="_blank" href="http://git-scm.com/downloads">官方地址 下載安裝即可</a></p>
<p>2.本地安裝node.js <a target="_blank" href="http://nodejs.org/dist/v0.10.27/x64/node-v0.10.27-x64.msi">node-v0.10.27-x64(選合適的版本)</a></p>
<p>3.安裝hexo <code>$ npm install hexo -g</code> 非常簡潔</p>
<p><strong>至此，本地配置完成，搭好高樓大廈的骨架，要準備充實內容啦~</strong></p>
<h2 id="heading-remote-environment-setup">服務端 remote environment setup</h2>
<p>4.開通github賬號 <a target="_blank" href="http://github.com">官方註冊</a></p>
<p>5.新建repo 以xxxx.github.io命名的repository 建立pages的重要關鍵</p>
<p>至此，可以用https://<a target="_blank" href="http://github.com/xxxx/xxxx.github.io">github.com/xxxx/xxxx.github.io</a> 訪問到新建的repo</p>
<p>（換言之確保 git clone <a target="_blank" href="https://github.com/xxxx/xxxx.github.io.git">https://github.com/xxxx/xxxx.github.io.git</a> 可以正常）</p>
<p>6.打開剛剛的repo主頁，點擊項目的setting(URI直接進入)<a target="_blank" href="https://github.com/xxxx/xxxx.github.io/settings">https://github.com/xxxx/xxxx.github.io/settings</a> 點擊Github Pages自動生成默認的頁面</p>
<p><strong>至此可以通過xxxx.github.io訪問默認頁面了</strong>（首次生效可能需要10min）</p>
<p><strong>切換回本地操作</strong></p>
<h2 id="heading-0sshgit">0.<strong>利用ssh方式使用git</strong></h2>
<ul>
<li><p>每次輸入賬號密碼簡直反人類</p>
</li>
<li><p>利用ssh更安全快捷</p>
</li>
<li><p>原理：客戶端生成的public key反饋回服務端得到認證 以後server-client通信就利用key匹配</p>
</li>
<li><p>媽媽再也不用擔心我輸入密碼啦~</p>
</li>
</ul>
<p>進入Git Bash命令行 輸入</p>
<p>git config --global <a target="_blank" href="http://user.email">user.email</a> "<a target="_blank" href="mailto:your@email.com">your@email.com</a>" git config --global <a target="_blank" href="http://user.name">user.name</a> "yourname"</p>
<p>這兩步是設定客戶端的全局名稱和郵件信息（僅僅是標識作用 郵箱用戶名隨便填）</p>
<p><strong>生成秘鑰</strong></p>
<p>ssh-keygen -t rsa -C "<a target="_blank" href="mailto:your@email.com">your@email.com</a>" 一路按 Enter 確認 最後得到秘鑰</p>
<p>Your identification has been saved in x:\x.ssh\id_rsa Your public key has been saved in x:\x.ssh\id_rsa.pub The key fingerprint is: xx:xx:xx:xx:xx:ab:c1:50:10:40:0a:ba:c1:xx:xx:xx</p>
<p>然後,用文本编辑器打开<strong>id_rsa.pub</strong>文件,拷贝其中的内容,将其添加到 <a target="_blank" href="https://github.com/settings/ssh">官方Github add ssh key</a></p>
<p><strong>這一步目的是讓服務端認識客戶端 進行授權操作repo</strong>。</p>
<p>最後 執行命令</p>
<p>ssh -T <a target="_blank" href="mailto:git@github.com">git@github.com</a></p>
<p>提示已經授權代表成功 告別https密碼登陸啦啦啦 （忽視warning）</p>
<h2 id="heading-1hexo"><strong>1.利用hexo初始化博客</strong></h2>
<p>本地新建博客主目錄 例如blog</p>
<p>hexo init</p>
<p>完成<strong>主程序</strong>初始化 此時blog目錄應該create了很多文件 默認目錄結構</p>
<p>├── node_modules ├── scaffolds ├── scripts ├── source | ├── <em>drafts | └──</em> posts ├── themes ├── _config.yml └── package.json</p>
<p>根據程序默認配置 生成靜態博客文件</p>
<p>hexo generate</p>
<p>此時，主目錄下多了個子目錄 <code>public</code> 裡面就是整個博客的所有的靜態文件。</p>
<p>進行本地預覽調試 啟動本地服務器 默認4000端口</p>
<p>hexo server</p>
<p>現在通過 <a target="_blank" href="https://localhost:40000"><code>https://localhost:40000</code></a> 就可以看到剛剛生成的博客了</p>
<p>但這<strong>僅僅</strong>是本地可以訪問 （我們必須把它發佈到服務器 看下文）</p>
<h2 id="heading-2github-pages"><strong>2.發佈博客到Github Pages服務器</strong></h2>
<p>cd切換回博客的主目錄 前述的blog</p>
<p><strong>思路</strong></p>
<ul>
<li><p>2.1先把遠程的repo clone到本地</p>
</li>
<li><p>2.2再刪除<strong>github默認的pages文件</strong></p>
</li>
<li><p>2.3上傳更新我們的新的博客靜態文件</p>
</li>
</ul>
<p><strong>2.1 先把遠程的repo clone到本地</strong></p>
<p>git clone <a target="_blank" href="mailto:git@github.com">git@github.com</a>:xxxx/xxxx.github.io.git</p>
<p><strong>2.2 再刪除github默認的pages文件</strong></p>
<p>git rm -rf * git commit -m 'delete origin pages files' git push origin master</p>
<p>到這裡 已經把原來的pages文件刪除 清空完 可以放新文件上去了</p>
<p><strong>2.3上傳更新我們的新的博客靜態文件</strong></p>
<p>hexo原生支持發佈到Github的遠程服務端，因而只需修改全局配置文件<code>_config.yml</code> 就可以方便更新Github Pages了</p>
<p>用notepad++打開<code>_config.yml</code> 修改</p>
<p># Deployment ## Docs: <a target="_blank" href="http://hexo.io/docs/deployment.html">http://hexo.io/docs/deployment.html</a> deploy: type: github repo: <a target="_blank" href="mailto:git@github.com">git@github.com</a>:xxxx/xxxx.github.io.git branch: master</p>
<p>更多<code>_config.yml</code> 修改 <a target="_blank" href="http://hexo.io/docs/">看官方docs</a></p>
<p>最後 執行 <code>hexo deploy -g</code> 就成功發佈到Github Pages了</p>
<p><strong>驗證</strong></p>
<p>通過能訪問 <a target="_blank" href="http://xxxx.github.io">xxxx.github.io</a> 即證明成功publish</p>
<p><strong>恭喜你 到現在終於把基本博客的最基本完成啦~（碼字君好累啊）</strong></p>
<h2 id="heading-3-advanced-settings">3.進階配置 advanced settings</h2>
<p><strong>3.1 hexo發佈過程全解析</strong></p>
<p><strong>理順過程</strong></p>
<ul>
<li><p>1.hexo new 'hello-world' 本地編寫文章</p>
</li>
<li><p>2.hexo generate 生成靜態</p>
</li>
<li><p>3.hexo server 打開本地服務端 <a target="_blank" href="http://localhost:4000">http://localhost:4000</a> 調試</p>
</li>
<li><p>4.hexo deploy 發佈到遠端服務器</p>
</li>
</ul>
<p><strong>看清原理</strong>（對應上面過程來分析）</p>
<ul>
<li><p>1.hexo調用node.js生成.md文件 默認路徑<code>source\_posts\xx.md</code></p>
</li>
<li><p>2.hexo依據默認配置 生成靜態文件 默認生成在子目錄<code>public</code> 內</p>
</li>
<li><p>3.hexo利用web服務器開啟本地web服務</p>
</li>
<li><p>4.拷貝<code>public</code> 到<code>.deploy</code> 再執行git命令 讀取<code>_config.yml</code> 的deploy參數，<code>git add .</code> <code>git commit -m 'CommitMessage'</code> <code>git push origin [branch]</code></p>
</li>
</ul>
<p><strong>升華小結下</strong></p>
<p>1.直接在相應目錄建立文件,再deploy的效果和<code>hexo new new-post-article</code>一樣，<strong>eg.在</strong><code>source\_posts</code>下直接新建<code>xx.md</code>文件等效于<code>hexo n xx</code> (新建pages同理)</p>
<p>2.<strong>手動執行</strong><code>git add .</code> <code>git commit -m 'CommitMessage'</code> <code>git push origin [branch]</code> 等效同理于<code>hexo deploy</code></p>
<p>故此 以後熟悉后直接變成<strong>兩個步驟</strong></p>
<p>hexo new 'new-post-article' hexo d -g</p>
<p>稍等服務端就生效（最長10min）</p>
<p>hexo常用命令</p>
<p>hexo n == hexo new hexo g == hexo generate hexo s == hexo server hexo d == hexo deploy</p>
<h2 id="heading-32-sites-customization">3.2 博客站點個性化 sites customization</h2>
<p><strong>3.2.1 global settings</strong></p>
<p>全局設置在博客主目錄下 （前例blog）的<code>_config.yml</code> 中 默認配置如下 更多查看官方 <a target="_blank" href="http://hexo.io/docs/configuration.html">docs</a> 挺全面的 主要修改：站點簡介、固定鏈接、默認目錄、主題theme選擇、發佈deploy方式等。</p>
<pre><code class="lang-yaml">    <span class="hljs-attr">title:</span> <span class="hljs-string">Hexo</span>
    <span class="hljs-attr">subtitle:</span>
    <span class="hljs-attr">description:</span>
    <span class="hljs-attr">author:</span> <span class="hljs-string">John</span> <span class="hljs-string">Doe</span>
    <span class="hljs-attr">email:</span>
    <span class="hljs-attr">language:</span>
    <span class="hljs-attr">url:</span> <span class="hljs-string">http://yoursite.com</span>
    <span class="hljs-attr">root:</span> <span class="hljs-string">/</span>
    <span class="hljs-attr">permalink:</span> <span class="hljs-string">:year/:month/:day/:title/</span>
    <span class="hljs-attr">tag_dir:</span> <span class="hljs-string">tags</span>
    <span class="hljs-attr">archive_dir:</span> <span class="hljs-string">archives</span>
    <span class="hljs-attr">category_dir:</span> <span class="hljs-string">categories</span>
    <span class="hljs-attr">code_dir:</span> <span class="hljs-string">downloads/code</span>
    <span class="hljs-attr">new_post_name:</span> <span class="hljs-string">:title.md</span>
    <span class="hljs-attr">default_layout:</span> <span class="hljs-string">post</span>
    <span class="hljs-attr">auto_spacing:</span> <span class="hljs-literal">false</span>
    <span class="hljs-attr">titlecase:</span> <span class="hljs-literal">false</span>
    <span class="hljs-attr">filename_case:</span> <span class="hljs-number">0</span>
    <span class="hljs-attr">render_drafts:</span> <span class="hljs-literal">false</span>
    <span class="hljs-attr">post_asset_folder:</span> <span class="hljs-literal">false</span>
    <span class="hljs-attr">relative_link:</span> <span class="hljs-literal">false</span>
    <span class="hljs-attr">highlight:</span>
      <span class="hljs-attr">enable:</span> <span class="hljs-literal">true</span>
      <span class="hljs-attr">line_number:</span> <span class="hljs-literal">true</span>
      <span class="hljs-attr">tab_replace:</span>
    <span class="hljs-attr">default_category:</span> <span class="hljs-string">uncategorized</span>
    <span class="hljs-attr">category_map:</span>
    <span class="hljs-attr">tag_map:</span>
    <span class="hljs-attr">archive:</span> <span class="hljs-number">2</span>
    <span class="hljs-attr">category:</span> <span class="hljs-number">2</span>
    <span class="hljs-attr">tag:</span> <span class="hljs-number">2</span>
    <span class="hljs-attr">port:</span> <span class="hljs-number">4000</span>
    <span class="hljs-attr">logger:</span> <span class="hljs-literal">false</span>
    <span class="hljs-attr">logger_format:</span>
    <span class="hljs-attr">date_format:</span> <span class="hljs-string">MMM</span> <span class="hljs-string">D</span> <span class="hljs-string">YYYY</span>
    <span class="hljs-attr">time_format:</span> <span class="hljs-string">H:mm:ss</span>
    <span class="hljs-attr">per_page:</span> <span class="hljs-number">10</span>
    <span class="hljs-attr">pagination_dir:</span> <span class="hljs-string">page</span>
    <span class="hljs-attr">disqus_shortname:</span>
    <span class="hljs-attr">theme:</span> <span class="hljs-string">light</span>
    <span class="hljs-attr">exclude_generator:</span>
    <span class="hljs-attr">deploy:</span>
      <span class="hljs-attr">type:</span>
</code></pre>
<p><strong>3.2.2 主題配色優化 theme customization</strong></p>
<p>主目錄下子目錄 <code>theme</code> 為主題文件夾所在,而 <a target="_blank" href="https://github.com/hexojs/hexo/wiki/Themes">官方hexo theme wiki參考</a> 童靴們也可以自己寫add進去</p>
<ul>
<li><p>找到合適的 copy進來就好 git clone也行 whatever u like</p>
</li>
<li><p>最後配置 <code>_config.yml</code> options中的<code>theme： 改為新主題名</code> (注意冒號：後面先加個space空格鍵 不然報錯)</p>
</li>
</ul>
<p><strong>3.2.3 添加插件 新建頁面</strong></p>
<p>添加插件</p>
<p><a target="_blank" href="http://hexo.io/docs/plugins.html">官方說明不錯</a> 瞄瞄吧 碼字好苦啊~</p>
<p>添加頁面等</p>
<p>hexo new page 'page-name'</p>
<p><strong>3.2.4 添加自定義域名</strong></p>
<p>感謝開源程序與大家無私的精神 終於可以通過 <a target="_blank" href="http://xxxx.github.io">http://xxxx.github.io</a> 訪問您的博客啦~~</p>
<p>however 這個在github.io下的子域名有點長或者不爽的</p>
<p>Github Pages支持用自定義域名 <code>萬惡的資本主義想得好周到嘛~</code></p>
<p><strong>兩種情況</strong></p>
<p><a target="_blank" href="http://1.xn--example-1o5o.com"><strong>1.有</strong><code>example.com</code></a> 這樣的由頂級域名下的域名（叫一級域名？who knows）</p>
<ul>
<li><p>到repo目錄下新建 <code>CNAME</code> 文件，該文件只有一行，只需填 <a target="_blank" href="http://example.com"><code>example.com</code></a></p>
</li>
<li><p>ping dig traceroute xxxx.github.io的ip 找最快最穩定的</p>
</li>
<li><p>到DNS服務商修改 <a target="_blank" href="http://example.com"><code>example.com</code></a> 的A 記錄指向 剛剛的ip</p>
</li>
<li><p>drink a cup of coffee and visit <a target="_blank" href="http://example.com">http://example.com</a> Enjoy it!</p>
</li>
</ul>
<p><a target="_blank" href="http://2.xn--abc-5y9f.example.com"><strong>2.有</strong><code>abc.example.com</code></a> 的子域名</p>
<ul>
<li><p>到repo目錄下新建 <code>CNAME</code> 文件，該文件只有一行，只需填 <a target="_blank" href="http://abc.example.com"><code>abc.example.com</code></a></p>
</li>
<li><p>到DNS服務商修改 <a target="_blank" href="http://abc.example.com"><code>abc.example.com</code></a> 的CNAME 記錄指向 <a target="_blank" href="http://abc.example.com"><code>abc.example.com</code></a></p>
</li>
</ul>
<p><a target="_blank" href="https://help.github.com/articles/about-custom-domains-for-github-pages-sites">more details!</a></p>
<p>To be continued (額 手抽筋啦).....</p>
<p>PS:</p>
<p>long time no write something elegantly with pure purpose.</p>
<p>有問題歡迎留言哈 輕輕拍就好 LOL</p>
]]></content:encoded></item><item><title><![CDATA[hexo更新记录]]></title><description><![CDATA[仅以此文记录博客折腾过程 方便回滚检查

回归disqus评论
2018-05-01更新
兜兜转转 伊人还在
换主题
2017-08-13 更新
感谢 @  Yusen 的[indigo 主题] (https://github.com/yscoder/hexo-theme-indigo)
比较简洁的MD风格
感谢 @  Kevin Tan
非常优秀的MD风格的博客UI
增加评论系统
感谢 @   gitalk
基于issues页面 超级方便移植入静态博客 友好化时间提醒
展望：加入@ 回复提醒。...]]></description><link>https://blog.ooim.xyz/hexo-1</link><guid isPermaLink="true">https://blog.ooim.xyz/hexo-1</guid><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Sat, 31 Dec 2022 08:51:35 GMT</pubDate><content:encoded><![CDATA[<blockquote>
<p>仅以此文记录博客折腾过程 方便回滚检查</p>
</blockquote>
<h3 id="heading-disqus">回归disqus评论</h3>
<p>2018-05-01更新
兜兜转转 伊人还在</p>
<h3 id="heading-5o2i5li76aky">换主题</h3>
<p>2017-08-13 更新
感谢 @  <a target="_blank" href="https://imys.net/">Yusen</a> 的[indigo 主题] (https://github.com/yscoder/hexo-theme-indigo)
比较简洁的MD风格</p>
<p>感谢 @  <a target="_blank" href="https://keyin.me/">Kevin Tan</a>
非常优秀的MD风格的博客UI</p>
<h3 id="heading-5ake5yqg6ke6k6657o757uf">增加评论系统</h3>
<p>感谢 @   <a target="_blank" href="https://github.com/gitalk">gitalk</a>
基于issues页面 超级方便移植入静态博客 友好化时间提醒
展望：加入@ 回复提醒。加入评论者来源平台 浏览器 etc</p>
<p>To be continued</p>
]]></content:encoded></item><item><title><![CDATA[Test function]]></title><description><![CDATA[pic
text
domain_check() {
    read -rp "请输入你的域名信息(eg:www.wulabing.com):" domain
    domain_ip=$(ping "${domain}" -c 1 | sed '1{s/[^(]*(//;s/).*//;q}')
    echo -e "${OK} ${GreenBG} 正在获取 公网ip 信息，请耐心等待 ${Font}"
    local_ip=$(curl https://api-ipv4.ip.s...]]></description><link>https://blog.ooim.xyz/test-function</link><guid isPermaLink="true">https://blog.ooim.xyz/test-function</guid><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Sat, 31 Dec 2022 08:34:49 GMT</pubDate><content:encoded><![CDATA[<h3 id="heading-pic">pic</h3>
<h3 id="heading-text">text</h3>
<pre><code class="lang-bash"><span class="hljs-function"><span class="hljs-title">domain_check</span></span>() {
    <span class="hljs-built_in">read</span> -rp <span class="hljs-string">"请输入你的域名信息(eg:www.wulabing.com):"</span> domain
    domain_ip=$(ping <span class="hljs-string">"<span class="hljs-variable">${domain}</span>"</span> -c 1 | sed <span class="hljs-string">'1{s/[^(]*(//;s/).*//;q}'</span>)
    <span class="hljs-built_in">echo</span> -e <span class="hljs-string">"<span class="hljs-variable">${OK}</span> <span class="hljs-variable">${GreenBG}</span> 正在获取 公网ip 信息，请耐心等待 <span class="hljs-variable">${Font}</span>"</span>
    local_ip=$(curl https://api-ipv4.ip.sb/ip)
    <span class="hljs-built_in">echo</span> -e <span class="hljs-string">"域名dns解析IP：<span class="hljs-variable">${domain_ip}</span>"</span>
    <span class="hljs-built_in">echo</span> -e <span class="hljs-string">"本机IP: <span class="hljs-variable">${local_ip}</span>"</span>
    sleep 2
    <span class="hljs-keyword">if</span> [[ $(<span class="hljs-built_in">echo</span> <span class="hljs-string">"<span class="hljs-variable">${local_ip}</span>"</span> | tr <span class="hljs-string">'.'</span> <span class="hljs-string">'+'</span> | bc) -eq $(<span class="hljs-built_in">echo</span> <span class="hljs-string">"<span class="hljs-variable">${domain_ip}</span>"</span> | tr <span class="hljs-string">'.'</span> <span class="hljs-string">'+'</span> | bc) ]]; <span class="hljs-keyword">then</span>
        <span class="hljs-built_in">echo</span> -e <span class="hljs-string">"<span class="hljs-variable">${OK}</span> <span class="hljs-variable">${GreenBG}</span> 域名dns解析IP 与 本机IP 匹配 <span class="hljs-variable">${Font}</span>"</span>
        sleep 2
    <span class="hljs-keyword">else</span>
        <span class="hljs-built_in">echo</span> -e <span class="hljs-string">"<span class="hljs-variable">${Error}</span> <span class="hljs-variable">${RedBG}</span> 请确保域名添加了正确的 A 记录，否则将无法正常使用 V2ray <span class="hljs-variable">${Font}</span>"</span>
        <span class="hljs-built_in">echo</span> -e <span class="hljs-string">"<span class="hljs-variable">${Error}</span> <span class="hljs-variable">${RedBG}</span> 域名dns解析IP 与 本机IP 不匹配 是否继续安装？（y/n）<span class="hljs-variable">${Font}</span>"</span> &amp;&amp; <span class="hljs-built_in">read</span> -r install
        <span class="hljs-keyword">case</span> <span class="hljs-variable">$install</span> <span class="hljs-keyword">in</span>
        [yY][eE][sS] | [yY])
            <span class="hljs-built_in">echo</span> -e <span class="hljs-string">"<span class="hljs-variable">${GreenBG}</span> 继续安装 <span class="hljs-variable">${Font}</span>"</span>
            sleep 2
            ;;
        *)
            <span class="hljs-built_in">echo</span> -e <span class="hljs-string">"<span class="hljs-variable">${RedBG}</span> 安装终止 <span class="hljs-variable">${Font}</span>"</span>
            <span class="hljs-built_in">exit</span> 2
            ;;
        <span class="hljs-keyword">esac</span>
    <span class="hljs-keyword">fi</span>
}
</code></pre>
<p>**加粗了**</p>
]]></content:encoded></item><item><title><![CDATA[those days]]></title><description><![CDATA[前尘往事

当年大学教授刚好在讲授《MATLAB》这门课，正好之前数学建模竞赛经常用到。基本的内容也就熟悉，后面刘教授一时高兴，拿了一篇在生物数学之类的著名期刊发表的全英的论文，叫我们练练手。读懂论文，再利用MATLAB添加相应的示意图。
玩着玩着，也挺有趣。据说最后我画出的图，与题目论述的问题比较接近。哇咔咔。
贼高兴，当时围脖写下感想：

传说中的 混沌现象“分岔图”，真心觉得 算法的优化很重要，不然多强悍的CPU都扛不住，话说i3 的CPU也算了15分钟，算法优化是尽量 可以打包输出再统一...]]></description><link>https://blog.ooim.xyz/those-days</link><guid isPermaLink="true">https://blog.ooim.xyz/those-days</guid><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Sat, 31 Dec 2022 08:19:15 GMT</pubDate><content:encoded><![CDATA[<blockquote>
<p>前尘往事</p>
</blockquote>
<p>当年大学教授刚好在讲授《MATLAB》这门课，正好之前数学建模竞赛经常用到。基本的内容也就熟悉，后面刘教授一时高兴，拿了一篇在生物数学之类的著名期刊发表的全英的论文，叫我们练练手。读懂论文，再利用MATLAB添加相应的示意图。</p>
<p>玩着玩着，也挺有趣。据说最后我画出的图，与题目论述的问题比较接近。哇咔咔。</p>
<p>贼高兴，当时围脖写下感想：</p>
<blockquote>
<p>传说中的 混沌现象“<a target="_blank" href="https://en.wikipedia.org/wiki/Bifurcation_theory">分岔图</a>”，真心觉得 算法的优化很重要，不然多强悍的CPU都扛不住，话说i3 的CPU也算了15分钟，算法优化是尽量 可以打包输出再统一处理，别一步步都调用循环。</p>
</blockquote>
<p>![alt](http://imglf6.ph.126.net/_jQjrj6BGtziRVCYkz48Bw==/2598014035056844566.jpg "改变参数 绘制出来的图")</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1672474753265/fHvMfKkFG.undefined" alt="alt" /></p>
<p>![alt](http://imglf3.ph.126.net/1gG-ePXZcWLv_eROF_3c4g==/207165582876104663.jpg "最终论文上的图")</p>
<p>其实，无忧无虑，单纯读读paper。写写abstract。科研也挺好玩的~~</p>
]]></content:encoded></item><item><title><![CDATA[make some rules]]></title><description><![CDATA[For a better and healthy life,I have to make an effort to change my lifestyle .

share my own time

13:00~14:00 no need to care about my head teacher job.Just have a rest.

22:00~6:30 time for reading my favorite book ,enjoy the music and sleep with ...]]></description><link>https://blog.ooim.xyz/make-some-rules</link><guid isPermaLink="true">https://blog.ooim.xyz/make-some-rules</guid><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Sat, 31 Dec 2022 08:19:09 GMT</pubDate><content:encoded><![CDATA[<blockquote>
<p>For a better and healthy life,I have to make an effort to change my lifestyle .</p>
</blockquote>
<h2 id="heading-share-my-own-time">share my own time</h2>
<ul>
<li><p>13:00~14:00 no need to care about my head teacher job.Just have a rest.</p>
</li>
<li><p>22:00~6:30 time for reading my favorite book ,enjoy the music and sleep with heart and soul.</p>
</li>
<li><p>In my office,take a headphones for doing my reviewing textbook.</p>
</li>
</ul>
<h2 id="heading-buy-more-fruits-and-milk">buy more fruits and milk</h2>
<ul>
<li>buy fruits on Monday.No fruits,no health.</li>
<li>buy milk and other little chocolate at the nearby supermarket twice a week.</li>
<li>buy small lovely items online to enrich daily life.</li>
</ul>
<h2 id="heading-do-exercises">do exercises</h2>
<ul>
<li>badminton.Once a week with my colleague.</li>
<li>running.In the playground,music night.</li>
<li>go to gym.Never late.Fitness is now now now.</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[hexo更新记录]]></title><description><![CDATA[仅以此文记录博客折腾过程 方便回滚检查

换主题
2017-08-13 更新
感谢 @  Yusen 的[indigo 主题] (https://github.com/yscoder/hexo-theme-indigo)
比较简洁的MD风格
感谢 @  Kevin Tan
非常优秀的MD风格的博客UI
增加评论系统
感谢 @   gitalk
基于issues页面 超级方便移植入静态博客 友好化时间提醒
展望：加入@ 回复提醒。加入评论者来源平台 浏览器 etc
to be continued]]></description><link>https://blog.ooim.xyz/hexo</link><guid isPermaLink="true">https://blog.ooim.xyz/hexo</guid><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Sat, 31 Dec 2022 08:19:04 GMT</pubDate><content:encoded><![CDATA[<blockquote>
<p>仅以此文记录博客折腾过程 方便回滚检查</p>
</blockquote>
<h3 id="heading-5o2i5li76aky">换主题</h3>
<p>2017-08-13 更新
感谢 @  <a target="_blank" href="https://imys.net/">Yusen</a> 的[indigo 主题] (https://github.com/yscoder/hexo-theme-indigo)
比较简洁的MD风格</p>
<p>感谢 @  <a target="_blank" href="https://keyin.me/">Kevin Tan</a>
非常优秀的MD风格的博客UI</p>
<h3 id="heading-5ake5yqg6ke6k6657o757uf">增加评论系统</h3>
<p>感谢 @   <a target="_blank" href="https://github.com/gitalk">gitalk</a>
基于issues页面 超级方便移植入静态博客 友好化时间提醒
展望：加入@ 回复提醒。加入评论者来源平台 浏览器 etc</p>
<p>to be continued</p>
]]></content:encoded></item><item><title><![CDATA[Back To Record]]></title><description><![CDATA[THIS IS MY WEBSITE.]]></description><link>https://blog.ooim.xyz/back2origin</link><guid isPermaLink="true">https://blog.ooim.xyz/back2origin</guid><category><![CDATA[Blogging]]></category><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Sat, 31 Dec 2022 07:26:37 GMT</pubDate><content:encoded><![CDATA[<blockquote>
<p>THIS IS MY WEBSITE.</p>
</blockquote>
<p><img src="https://cdn.ooim.xyz/cfa6b8d0b22d28054d9b7bdb4284a991.jpg" alt class="image--center mx-auto" /></p>
]]></content:encoded></item><item><title><![CDATA[第一篇尝试写写画画]]></title><description><![CDATA[好久没写了，折腾各种平台。
内心还是喜欢简单的。
#双11 剁手一个平板好开心]]></description><link>https://blog.ooim.xyz/56ys5lia56h5bcd6kv5yaz5yaz55s755s7</link><guid isPermaLink="true">https://blog.ooim.xyz/56ys5lia56h5bcd6kv5yaz5yaz55s755s7</guid><category><![CDATA[try]]></category><dc:creator><![CDATA[Hua Lau]]></dc:creator><pubDate>Sun, 13 Nov 2022 01:09:14 GMT</pubDate><content:encoded><![CDATA[<p>好久没写了，折腾各种平台。
内心还是喜欢简单的。</p>
<p>#双11 剁手一个<code>平板</code>好开心</p>
]]></content:encoded></item></channel></rss>