Files
swangnice_site/public/index.xml

194 lines
10 KiB
XML
Raw Normal View History

2025-05-20 02:59:55 -04:00
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
2025-07-25 02:15:37 +08:00
<title>Home Page on SWangNice</title>
2025-05-20 02:59:55 -04:00
<link>http://localhost:1313/</link>
2025-07-25 02:15:37 +08:00
<description>Recent content in Home Page on SWangNice</description>
2025-05-20 02:59:55 -04:00
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<copyright>© 2025 SWang</copyright>
2025-07-25 02:15:37 +08:00
<lastBuildDate>Fri, 20 Sep 2024 04:17:50 +0000</lastBuildDate><atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>TODO List</title>
<link>http://localhost:1313/projects/self_host/stock_bot/01_todo/</link>
<pubDate>Fri, 20 Sep 2024 04:17:50 +0000</pubDate>
<guid>http://localhost:1313/projects/self_host/stock_bot/01_todo/</guid>
<description>&lt;h2 class=&#34;relative group&#34;&gt;Short-term TODO
&lt;div id=&#34;short-term-todo&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
&lt;span
class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
&lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
style=&#34;text-decoration-line: none !important;&#34; href=&#34;#short-term-todo&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;🚧 The Initial Policy implement (Parameterizing transaction variables)&lt;/li&gt;
&lt;li&gt;⬜️ The evaluate &amp;amp; logger script&lt;/li&gt;
&lt;li&gt;⬜ The automatic scripts with Email Sender deployed on the Server&lt;/li&gt;
&lt;li&gt;⬜ Web UI, will not be too complex just a simple one to synchronous my account for customized policy&lt;/li&gt;
&lt;li&gt;⬜️ Implement RL algorithms&lt;/li&gt;
&lt;/ul&gt;</description>
</item>
<item>
<title>Website Setup</title>
<link>http://localhost:1313/projects/self_host/mac_mini_m4/01_website_hosting/</link>
<pubDate>Fri, 20 Sep 2024 04:17:50 +0000</pubDate>
<guid>http://localhost:1313/projects/self_host/mac_mini_m4/01_website_hosting/</guid>
<description>&lt;p&gt;I don&amp;rsquo;t have a public IP, so my solution is SSH tunnel + reverse Proxy on cloud server.&lt;/p&gt;
&lt;h2 class=&#34;relative group&#34;&gt;🍎Mac Mini Side
&lt;div id=&#34;mac-mini-side&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
&lt;span
class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
&lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
style=&#34;text-decoration-line: none !important;&#34; href=&#34;#mac-mini-side&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;p&gt;As a server, my Mac won&amp;rsquo;t sleep, so change the setting firstly.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo systemsetup -setcomputersleep Never # never sleep
sudo systemsetup -setdisplaysleep 10 # display will sleep in 10 min
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Use autossh to avoid timeout:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;brew install autossh
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Add the configuration below in &lt;code&gt;~/.ssh/config&lt;/code&gt; Mac Mini will send package per 30 seconds to keep the connection alive.&lt;/p&gt;</description>
</item>
<item>
<title>NAS: Network Attachment Storage</title>
<link>http://localhost:1313/projects/self_host/mac_mini_m4/02_nas/</link>
<pubDate>Fri, 20 Sep 2024 04:17:50 +0000</pubDate>
<guid>http://localhost:1313/projects/self_host/mac_mini_m4/02_nas/</guid>
<description>&lt;h2 class=&#34;relative group&#34;&gt;Hardware
&lt;div id=&#34;hardware&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
&lt;span
class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
&lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
style=&#34;text-decoration-line: none !important;&#34; href=&#34;#hardware&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;p&gt;I went with the UNITEK 3373BBK for one of my drive enclosures—and honestly, it wasnt the best decision.&lt;/p&gt;
&lt;p&gt;The first big letdown? The bandwidth tops out at just 5Gbps. Thats fine for basic tasks, but definitely underwhelming if youre dealing with high-speed storage or large file transfers.&lt;/p&gt;
&lt;p&gt;Even worse, it doesnt support S.M.A.R.T passthrough, which makes monitoring drive health a hassle. That was a big deal-breaker for me.&lt;/p&gt;</description>
</item>
<item>
<title>Showcases</title>
<link>http://localhost:1313/projects/self_host/stock_bot/02_results/</link>
<pubDate>Fri, 20 Sep 2024 04:17:50 +0000</pubDate>
<guid>http://localhost:1313/projects/self_host/stock_bot/02_results/</guid>
<description>&lt;p&gt;This section will feature occasional showcases of my technical achievements—focused purely on the engineering side, not the income.&lt;/p&gt;</description>
</item>
<item>
<title>My Own Code Vault: Gitea on Mac Mini</title>
<link>http://localhost:1313/projects/self_host/mac_mini_m4/03_gitea/</link>
<pubDate>Fri, 20 Sep 2024 04:17:50 +0000</pubDate>
<guid>http://localhost:1313/projects/self_host/mac_mini_m4/03_gitea/</guid>
<description>&lt;p&gt;Install dependence of gitea:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;brew install git
brew install gitea
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Start the configuration page of Gitea:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;gitea web
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Install MySQL:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;brew install mysql
brew services start mysql
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Login MySQL and create the database and user:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;mysql -u root
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then, execute:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CREATE DATABASE gitea CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER &amp;#39;gitea&amp;#39;@&amp;#39;localhost&amp;#39; IDENTIFIED BY &amp;#39;&amp;lt;yourpassword&amp;gt;&amp;#39;;
GRANT ALL PRIVILEGES ON gitea.* TO &amp;#39;gitea&amp;#39;@&amp;#39;localhost&amp;#39;;
FLUSH PRIVILEGES;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;CREATE DATABASE gitea CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER &amp;lsquo;gitea&amp;rsquo;@&amp;rsquo;localhost&amp;rsquo; IDENTIFIED BY &amp;lsquo;gitea&amp;rsquo;;
GRANT ALL PRIVILEGES ON gitea.* TO &amp;lsquo;gitea&amp;rsquo;@&amp;rsquo;localhost&amp;rsquo;;
FLUSH PRIVILEGES;&lt;/p&gt;</description>
</item>
<item>
<title>C</title>
<link>http://localhost:1313/notes/coding/cheat_sheet/c/</link>
<pubDate>Fri, 20 Sep 2024 04:17:50 +0000</pubDate>
<guid>http://localhost:1313/notes/coding/cheat_sheet/c/</guid>
<description></description>
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://localhost:1313/notes/coding/cheat_sheet/c/feature.png" />
</item>
<item>
<title>C&#43;&#43;</title>
<link>http://localhost:1313/notes/coding/cheat_sheet/cpp/</link>
<pubDate>Fri, 20 Sep 2024 04:17:50 +0000</pubDate>
<guid>http://localhost:1313/notes/coding/cheat_sheet/cpp/</guid>
<description></description>
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://localhost:1313/notes/coding/cheat_sheet/cpp/feature.png" />
</item>
<item>
<title>Git</title>
<link>http://localhost:1313/notes/coding/cheat_sheet/git/</link>
<pubDate>Fri, 20 Sep 2024 04:17:50 +0000</pubDate>
<guid>http://localhost:1313/notes/coding/cheat_sheet/git/</guid>
<description>&lt;h2 class=&#34;relative group&#34;&gt;submodule
&lt;div id=&#34;submodule&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
&lt;span
class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
&lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
style=&#34;text-decoration-line: none !important;&#34; href=&#34;#submodule&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;h2 class=&#34;relative group&#34;&gt;Commit
&lt;div id=&#34;commit&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
&lt;span
class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
&lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
style=&#34;text-decoration-line: none !important;&#34; href=&#34;#commit&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Add date and time in commit messages:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git commit -m &lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;$(&lt;/span&gt;date &lt;span class=&#34;s1&#34;&gt;&amp;#39;+%Y-%m-%d %H:%M:%S&amp;#39;&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://localhost:1313/notes/coding/cheat_sheet/git/feature.png" />
</item>
<item>
<title>Python</title>
<link>http://localhost:1313/notes/coding/cheat_sheet/python/</link>
<pubDate>Fri, 20 Sep 2024 04:17:50 +0000</pubDate>
<guid>http://localhost:1313/notes/coding/cheat_sheet/python/</guid>
<description></description>
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="http://localhost:1313/notes/coding/cheat_sheet/python/feature.png" />
</item>
2025-05-20 02:59:55 -04:00
</channel>
</rss>