<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shiba.Inu.Komino 柴犬mi佬 on Medium]]></title>
        <description><![CDATA[Stories by Shiba.Inu.Komino 柴犬mi佬 on Medium]]></description>
        <link>https://medium.com/@shiba.komino?source=rss-c04be4fc01af------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ljh-dohPXEbUXqAt1zeAyw.jpeg</url>
            <title>Stories by Shiba.Inu.Komino 柴犬mi佬 on Medium</title>
            <link>https://medium.com/@shiba.komino?source=rss-c04be4fc01af------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:48:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shiba.komino/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[使用 Raspberry Pi / ubuntu 來讀取 iPhone 的照片和影片]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@shiba.komino/%E4%BD%BF%E7%94%A8-raspberry-pi-ubuntu-%E4%BE%86%E8%AE%80%E5%8F%96-iphone-%E7%9A%84%E7%85%A7%E7%89%87%E5%92%8C%E5%BD%B1%E7%89%87-249982dc3375?source=rss-c04be4fc01af------2"><img src="https://cdn-images-1.medium.com/max/2600/1*qV8Quxnj-IfTt3156Ffikw.jpeg" width="3554"></a></p><p class="medium-feed-snippet">&#x6C92;&#x6709;&#x4F7F;&#x7528; iCloud &#x7684;&#x6211;&#xFF0C;&#x6BCF;&#x6B21;&#x70BA; iPhone &#x5099;&#x4EFD;&#x7167;&#x7247;&#x548C;&#x5716;&#x7247;&#x90FD;&#x5341;&#x5206;&#x82E6;&#x60F1;&#x3002;&#x56E0;&#x70BA; mac &#x4E0D;&#x80FD;&#x628A; iPhone &#x7576;&#x4F5C;&#x666E;&#x901A;&#x7684;&#x96A8;&#x8EAB;&#x789F;&#xFF0C;&#x800C; iPhoto &#x5BE6;&#x5728;&#x5F88;&#x6162;&#xFF0C;&#x5F88;&#x96E3;&#x53D6;&#x5F97;&#x6700;&#x8FD1;&#x6578;&#x6708;&#x7684;&#x5716;&#x7247;&#x548C;&#x5F71;&#x7247;&#x3002;&#x5728; Windows &#x4E0A;&#x53C8;&#x7D93;&#x5E38;&#x8B80;&#x53D6;&#x4E0D;&#x5230; iPhone &#x7684;&#x5167;&#x5BB9;&#x3002;&#x6211;&#x767C;&#x73FE; Linux&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@shiba.komino/%E4%BD%BF%E7%94%A8-raspberry-pi-ubuntu-%E4%BE%86%E8%AE%80%E5%8F%96-iphone-%E7%9A%84%E7%85%A7%E7%89%87%E5%92%8C%E5%BD%B1%E7%89%87-249982dc3375?source=rss-c04be4fc01af------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@shiba.komino/%E4%BD%BF%E7%94%A8-raspberry-pi-ubuntu-%E4%BE%86%E8%AE%80%E5%8F%96-iphone-%E7%9A%84%E7%85%A7%E7%89%87%E5%92%8C%E5%BD%B1%E7%89%87-249982dc3375?source=rss-c04be4fc01af------2</link>
            <guid isPermaLink="false">https://medium.com/p/249982dc3375</guid>
            <dc:creator><![CDATA[Shiba.Inu.Komino 柴犬mi佬]]></dc:creator>
            <pubDate>Fri, 12 Jul 2024 09:23:45 GMT</pubDate>
            <atom:updated>2024-07-12T09:23:45.730Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[新手入門 : 解構 Shopify theme 佈景主題 2.0]]></title>
            <link>https://medium.com/@shiba.komino/%E8%A7%A3%E6%A7%8B-shopify-theme-%E4%BD%88%E6%99%AF%E4%B8%BB%E9%A1%8C-2-0-866485376baa?source=rss-c04be4fc01af------2</link>
            <guid isPermaLink="false">https://medium.com/p/866485376baa</guid>
            <category><![CDATA[shopify-theme]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[hong-kong]]></category>
            <dc:creator><![CDATA[Shiba.Inu.Komino 柴犬mi佬]]></dc:creator>
            <pubDate>Fri, 23 Feb 2024 05:00:12 GMT</pubDate>
            <atom:updated>2024-02-23T05:40:06.484Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p><strong>Shopify 提供了一個樣板 DAWN theme，可是，它包含太多可設定的功能，難以從中了解 theme 的架構。以下是一個簡單過程讓你了解 theme 的基本架構。</strong></p><h3>頁面是怎樣煉成的</h3><blockquote>( Template → Sections → Blocks ) + Layout</blockquote><p>當你輸入URL，shopify 就會找出與它相關的 template, 而 Template 會把設定放進它所使用的 Sections，每個 Section 會跟據設定組合它的 blocks。</p><p>最後，Shopify 會把整個 Template 放進 Layout，再把它呈現出 HTML。</p><ul><li>Template 有兩種，liquid template 與 JSON template</li><li>如果要在 theme editor 內修改 template，就要使用 JSON template.</li><li>如果系統找不到相關的 template，就會顯示成預設的404畫面。</li></ul><h3>1. 你的 Hello World Theme</h3><p>Theme 是一個 zip 檔，內裡有幾個資料夾，結構如下：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*p22Xji1W38VoAj5R" /></figure><p>最基本的佈景主題要有</p><pre>./config/settings_schema.json <br>./layout/theme.liquid <br>./templates/index.json</pre><h3>佈景主題設定, config/settings_schema.json</h3><p>佈景主題名稱，作者，版本，放在 ./config/settings_schema.json</p><pre>[<br>  {<br>    &quot;name&quot;: &quot;theme_info&quot;,<br>    &quot;theme_name&quot;: &quot;Hello world&quot;,<br>    &quot;theme_author&quot;: &quot;作者&quot;,<br>    &quot;theme_version&quot;: &quot;1.0.0&quot;,<br>    &quot;theme_documentation_url&quot;: &quot;https:\/\/help.shopify.com\/manual\/online-store\/themes\/os20\/themes-by-shopify\/dawn&quot;,<br>    &quot;theme_support_url&quot;: &quot;https:\/\/support.shopify.com\/&quot;,<br>  },<br>]</pre><p>這些資料將顯示在 Online Store → Themes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/0*CdHsiKFOIqxQHFeg" /></figure><h3>預設的 Layout, layout/theme.liquid</h3><p>它要包含輸出 {{ content_for_header }} 和 {{ content_for_layout }} 兩個 liquid tags</p><pre>&lt;!doctype html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot;<br>        content=&quot;width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0&quot;&gt;<br>  &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;ie=edge&quot;&gt;<br>  &lt;title&gt;Document&lt;/title&gt;<br>  {{ content_for_header }}<br>&lt;/head&gt;<br>&lt;body&gt;<br>{{ content_for_layout }}<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h3>空白的主頁，templates/index.json</h3><p>每個 JSON Template 都要有 sections 及 order</p><pre>{<br>  &quot;sections&quot;: {<br>  },<br>  &quot;order&quot;: [<br>  ]<br>}</pre><h3>2. 增添 Section 內容到 JSON Template</h3><p>以下是最基本的Section，檔名是自訂的，例如 sections/hero.liquid</p><pre>{% schema %}<br>{<br>  &quot;name&quot;: &quot;Hero&quot;,<br>  &quot;settings&quot;: []<br>}<br>{% endschema %}<br><br>&lt;h1&gt;Hero Message&lt;/h1&gt;</pre><p>在 Schema 加入 presets，就可以讓 theme editor 增加這款 section</p><pre>{% schema %}<br>{<br>  &quot;name&quot;: &quot;Hero&quot;,<br>  &quot;settings&quot;: [],<br>  &quot;presets&quot;: [<br>    { &quot;name&quot;: &quot;Hero 1&quot;}<br>  ]<br>}<br>{% endschema %}<br>&lt;h1&gt;Hero Message&lt;/h1&gt;</pre><p>按下 Add section, preset 就會顯示出來</p><figure><img alt="更改 code 後, 需要 reload theme editor 才能更新列表" src="https://cdn-images-1.medium.com/max/744/0*hvY8PXbWNhfNlmSV" /></figure><h3>3. 在 theme editor 修改 Section</h3><p><strong>開啟 sections/hero.liquid</strong><br>在 Section 的 Schema 加入 settings，就可以讓 theme editor 修改內容</p><pre>{% schema %}<br>{<br>  &quot;name&quot;: &quot;Hero&quot;,<br>  &quot;settings&quot;: [<br>    {<br>      &quot;type&quot;: &quot;text&quot;,<br>      &quot;id&quot;: &quot;heading&quot;,<br>      &quot;label&quot;: &quot;Heading&quot;,<br>      &quot;default&quot;: &quot;Hello&quot;<br>    }<br>  ],<br>  &quot;presets&quot;: [<br>    { &quot;name&quot;: &quot;Hero 1&quot;}<br>  ]<br>}<br>{% endschema %}<br>&lt;h1&gt;Hero Message&lt;/h1&gt;</pre><p>在 Section 中，輸出的方法就是 {{ section.settings.setting_id }}</p><pre>&lt;h1&gt;{{ section.settings.heading }}&lt;/h1&gt;現在，你可以在 theme editor 中 add section, 修改內容，排列次序</pre><p>現在，你可以在 theme editor 中 add section, 修改內容，排列次序</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*V_DSb0gBe_POluL1" /></figure><p>當 save 完，你的設定其實是修改了 templates/index.json</p><pre>{<br>  &quot;sections&quot;: {<br>    &quot;hero_BnB6y3&quot;: {<br>      &quot;type&quot;: &quot;hero&quot;,<br>      &quot;settings&quot;: {<br>        &quot;heading&quot;: &quot;Lorem Lipsum&quot;<br>      }<br>    },<br>    &quot;main&quot;: {<br>      &quot;type&quot;: &quot;hero&quot;,<br>      &quot;settings&quot;: {<br>        &quot;heading&quot;: &quot;Hello&quot;<br>      }<br>    }<br>  },<br>  &quot;order&quot;: [<br>    &quot;hero_BnB6y3&quot;,<br>    &quot;main&quot;<br>  ]<br>}</pre><h3>4. 在 Section 內添加 Blocks</h3><p>試想像在一個 List 中添加 List Item，翻譯成佈景主題就是在 Section 內添加 Block。</p><p>Block 的功能是讓用戶在 Theme editor 中容易修改，所以我們要定義好它在 editor 中的輸入項目格式，例如一張附帶標題的圖片 (picture)，有 image 和 caption 兩欄資料：</p><pre>{<br>  &quot;type&quot;: &quot;picture&quot;,<br>  &quot;name&quot;: &quot;Picture&quot;,<br>  &quot;settings&quot;: [<br>    {<br>      &quot;type&quot;: &quot;image_picker&quot;,<br>      &quot;id&quot;: &quot;image&quot;,<br>      &quot;label&quot;: &quot;Image&quot;<br>    },<br>    {<br>      &quot;type&quot;: &quot;text&quot;,<br>      &quot;id&quot;: &quot;caption&quot;,<br>      &quot;label&quot;: &quot;Caption&quot;<br>    }<br>  ]<br>}</pre><p>既然 Block 是屬於 Section，所以它的代碼就是放在 section 檔案內，開啟sections/hero.liquid，新增 blocks array 到 schema liquid tag，再 copy block 定義進去。</p><pre>{% schema %}<br>{<br>  &quot;name&quot;: &quot;Hero&quot;,<br>  &quot;settings&quot;: [<br>    {<br>      &quot;type&quot;: &quot;text&quot;,<br>      &quot;id&quot;: &quot;heading&quot;,<br>      &quot;label&quot;: &quot;Heading&quot;,<br>      &quot;default&quot;: &quot;Hello&quot;<br>    }<br>  ],<br><br>  &quot;blocks&quot;: [<br>    {<br>      &quot;type&quot;: &quot;picture&quot;,<br>      &quot;name&quot;: &quot;Picture&quot;,<br>      &quot;settings&quot;: [<br>        {<br>          &quot;type&quot;: &quot;image_picker&quot;,<br>          &quot;id&quot;: &quot;image&quot;,<br>          &quot;label&quot;: &quot;Image&quot;<br>        },<br>        {<br>          &quot;type&quot;: &quot;text&quot;,<br>          &quot;id&quot;: &quot;caption&quot;,<br>          &quot;label&quot;: &quot;Caption&quot;<br>        }<br>      ]<br>    }<br>  ],<br>  &quot;presets&quot;: [<br>    { &quot;name&quot;: &quot;Hero 1&quot;}<br>  ]<br>}<br>{% endschema %}<br>&lt;h1&gt;{{ section.settings.heading }}&lt;/h1&gt;</pre><p>這樣就可以在theme editor 增減和修改 block</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*MEAy0KiJcl-9lqCA" /></figure><h3>5. 將Blocks顯示出來</h3><p>所有建立的 Blocks 都會放在 section.blocks object 內，可以用 for loop 和 case 把它們分類地顯示出來</p><pre>{% endschema %}<br>&lt;h1&gt;{{ section.settings.heading }}&lt;/h1&gt;<br>&lt;ul&gt;<br>{% for block in section.blocks %}<br>{% case block.type %}<br>  {% when &quot;picture&quot; %}<br>  &lt;li&gt;{{ block.settings.image }}&lt;br&gt;{{ block.settings.caption }}&lt;/li&gt;<br>{% endcase %}<br>{% endfor %}<br>&lt;/ul&gt;</pre><p>輸出就是這樣, blocks 以 list 形式顯示</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*KGBkmdr-6WZrWXbi" /></figure><p>修改 theme editor, 其實就是修改 JSON Template, 所以 index.json 又更新了</p><pre>{<br>  &quot;sections&quot;: {<br>    &quot;hero_BnB6y3&quot;: {<br>      &quot;type&quot;: &quot;hero&quot;,<br>      &quot;blocks&quot;: {<br>        &quot;picture_7fyYFw&quot;: {<br>          &quot;type&quot;: &quot;picture&quot;,<br>          &quot;settings&quot;: {<br>            &quot;image&quot;: &quot;shopify:\/\/shop_images\/skyscrapers-looking-up.jpg&quot;,<br>            &quot;caption&quot;: &quot;Hello world&quot;<br>          }<br>        },<br>        &quot;picture_KCczKq&quot;: {<br>          &quot;type&quot;: &quot;picture&quot;,<br>          &quot;settings&quot;: {<br>            &quot;image&quot;: &quot;shopify:\/\/shop_images\/highway-tail-light-streaks.jpg&quot;,<br>            &quot;caption&quot;: &quot;wonderful&quot;<br>          }<br>        }<br>      },<br>      &quot;block_order&quot;: [<br>        &quot;picture_7fyYFw&quot;,<br>        &quot;picture_KCczKq&quot;<br>      ],<br>      &quot;settings&quot;: {<br>        &quot;heading&quot;: &quot;Lorem Lipsum&quot;<br>      }<br>    },<br>    &quot;main&quot;: {<br>      &quot;type&quot;: &quot;hero&quot;,<br>      &quot;settings&quot;: {<br>        &quot;heading&quot;: &quot;Hello&quot;<br>      }<br>    }<br>  },<br>  &quot;order&quot;: [<br>    &quot;hero_BnB6y3&quot;,<br>    &quot;main&quot;<br>  ]<br>}</pre><p>以上就是 Shopify theme 2.0 的基礎, 詳細說明可以參考官方網站:</p><p><a href="https://shopify.dev/docs/themes/architecture">https://shopify.dev/docs/themes/architecture</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=866485376baa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup Chrome Remote Desktop for Digital Ocean $5 Droplet]]></title>
            <link>https://medium.com/@shiba.komino/setup-chrome-remote-desktop-for-digital-ocean-5-droplet-5a02bc3a2f55?source=rss-c04be4fc01af------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a02bc3a2f55</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[digitalocean]]></category>
            <category><![CDATA[debian]]></category>
            <category><![CDATA[chrome-remote-desktop]]></category>
            <dc:creator><![CDATA[Shiba.Inu.Komino 柴犬mi佬]]></dc:creator>
            <pubDate>Tue, 05 Nov 2019 04:43:15 GMT</pubDate>
            <atom:updated>2019-11-05T14:46:01.213Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*js41hV_hq_Ic6tQ7" /><figcaption>Photo by <a href="https://unsplash.com/@genmai?utm_source=medium&amp;utm_medium=referral">Shunsuke Ono</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Google Cloud Platform have a post to setup chrome remote desktop for Debian. The step is a little bit different in Digital Ocean droplet.</p><p>Original post:<br><a href="https://cloud.google.com/solutions/chrome-desktop-remote-on-compute-engine">https://cloud.google.com/solutions/chrome-desktop-remote-on-compute-engine</a></p><p>Here’s steps to install from digital ocean (cheaper)<br>1. create droplet with Debian, 1GB/1cpu<br>2. login the droplet with ssh</p><h4>Create User “crd” (or other name) and set it as administrator</h4><pre>apt-get remove unscd<br>adduser crd<br>usermod -aG sudo crd</pre><pre>su - crd<br>sudo whoami</pre><h4>download packages</h4><pre>wget <a href="https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb">https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb</a></pre><pre>sudo apt update<br>sudo dpkg --install chrome-remote-desktop_current_amd64.deb<br>sudo apt install --assume-yes --fix-broken</pre><h4>Install xfce</h4><pre>sudo DEBIAN_FRONTEND=noninteractive \<br>    apt install --assume-yes xfce4 desktop-base</pre><pre>sudo bash -c &#39;echo &quot;exec /etc/X11/Xsession /usr/bin/xfce4-session&quot; &gt; /etc/chrome-remote-desktop-session&#39;</pre><pre>sudo apt install --assume-yes xscreensaver</pre><pre>sudo systemctl disable lightdm.service</pre><h4>Optional: install chrome</h4><pre>wget <a href="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb">https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb</a></pre><pre>sudo dpkg --install google-chrome-stable_current_amd64.deb<br>sudo apt install --assume-yes --fix-broken</pre><h4>Optional: install asian font</h4><pre>sudo apt-get install fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core</pre><h4>Optional: set time zone</h4><pre>timedatectl set-timezone Asia/Hong_Kong</pre><h4>Optional: install sublime</h4><p><a href="https://www.sublimetext.com/docs/3/linux_repositories.html#apt">https://www.sublimetext.com/docs/3/linux_repositories.html#apt</a></p><pre>wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -</pre><pre>sudo apt-get install apt-transport-https</pre><pre>echo &quot;deb https://download.sublimetext.com/ apt/stable/&quot; | sudo tee /etc/apt/sources.list.d/sublime-text.list</pre><pre>sudo apt-get update<br>sudo apt-get install sublime-text </pre><p>It’s almost ready. You can take snapshot now.</p><h4>Setup the connection now, visit:</h4><p><a href="https://remotedesktop.google.com/headless">Sign in - Google Accounts</a></p><ol><li>click begin -&gt; next -&gt; authorize to get the setup code.</li><li>copy the setup code to ssh.</li><li>follow steps to setup computer name, pin and authorize from your droplet.</li><li>back to browser, click “Remote Access”. DONE!</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a02bc3a2f55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install nginx on Amazon Linux]]></title>
            <link>https://medium.com/@shiba.komino/install-nginx-on-amazon-linux-6aa4ed375802?source=rss-c04be4fc01af------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aa4ed375802</guid>
            <dc:creator><![CDATA[Shiba.Inu.Komino 柴犬mi佬]]></dc:creator>
            <pubDate>Mon, 30 Oct 2017 15:22:51 GMT</pubDate>
            <atom:updated>2017-10-30T15:22:51.126Z</atom:updated>
            <content:encoded><![CDATA[<p>sudo yum update -y</p><p>sudo yum install -y nginx</p><p>sudo service nginx start</p><p>sudo chkconfig nginx on</p><p>curl <a href="http://localhost/">http://localhost</a> -v</p><h3>Install node.js</h3><p>Install node version manager (nvm) by typing the following at the command line:</p><pre>curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash </pre><p>Activate nvm by typing the following at the command line.</p><pre>. ~/.nvm/nvm.sh</pre><p>Use nvm to install the version of Node.js you intend to use by typing the following at the command line</p><pre>nvm install --lts</pre><h3>Install mongoDB</h3><p>cd /etc/yum.repos.d/</p><pre>sudo vi mongodb-org-3.4.repo</pre><p><strong>[mongodb-org-3.4]</strong><br>name=MongoDB Repository<br>baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.4/x86_64/<br>gpgcheck=1<br>enabled=1<br>gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc</p><pre>sudo yum install -y mongodb-org</pre><p>start as service</p><pre>sudo service mongod start</pre><p>start on boot</p><pre>sudo chkconfig mongod on</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aa4ed375802" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use fiddler with Node.js]]></title>
            <link>https://medium.com/@shiba.komino/how-to-use-fiddler-with-node-js-bf0ead609aa3?source=rss-c04be4fc01af------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf0ead609aa3</guid>
            <category><![CDATA[fiddler]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Shiba.Inu.Komino 柴犬mi佬]]></dc:creator>
            <pubDate>Wed, 25 Oct 2017 03:26:41 GMT</pubDate>
            <atom:updated>2017-10-25T03:26:41.758Z</atom:updated>
            <content:encoded><![CDATA[<p>Dixin’s blog written a detail instruction to use fiddler with node.js.<br>I just write a summary for the nice post.</p><p><a href="https://weblogs.asp.net/dixin/use-fiddler-with-node-js">Use Fiddler with Node.js</a></p><p>suppose you are using “request” module to fetching HTTP requests.</p><ol><li>install packages: npm install request http url -s</li><li>get the fiddler.js here and save it to the folder of index.js:<br> <a href="https://github.com/Dixin/CodeSnippets/blob/master/Dixin.Nodejs/fiddler.js">https://github.com/Dixin/CodeSnippets/blob/master/Dixin.Nodejs/fiddler.js</a></li><li>use the code below in index.js</li></ol><pre><strong>const </strong>request = require(&#39;request&#39;);<br><strong>const </strong>fiddler = require(&#39;./fiddler&#39;);<br>fiddler.proxyRequests();<br>//fiddler.unproxyRequests();//use this to skip monitor by fiddler.</pre><pre>request<br>  .get(&#39;http://www.example.com&#39;)<br>  .on(&#39;response&#39;, <strong>function</strong>(response) {<br>    console.log(response.statusCode); // 200<br>    console.log(response.headers[&#39;content-type&#39;]); // &#39;text/html&#39;<br>  });</pre><p>4. start fiddler and run node index.js</p><p>Thanks for reading and don’t forget give me an clap. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf0ead609aa3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[setup VPN on AWS for beginners]]></title>
            <link>https://medium.com/@shiba.komino/setup-vpn-on-aws-for-beginners-ae17337eb120?source=rss-c04be4fc01af------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae17337eb120</guid>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[openvpn]]></category>
            <dc:creator><![CDATA[Shiba.Inu.Komino 柴犬mi佬]]></dc:creator>
            <pubDate>Mon, 15 May 2017 04:06:01 GMT</pubDate>
            <atom:updated>2017-05-15T04:06:01.289Z</atom:updated>
            <content:encoded><![CDATA[<p>First, Login AWS, then create a Key Pair and save the pem file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_vddh-8c7lM9jJivGYjeA.jpeg" /><figcaption>Create the Key Pair in EC2 dashboard.</figcaption></figure><p>Visit AWS Marketplace to launch the OpenVPN Access Server <br><a href="https://aws.amazon.com/marketplace/fulfillment?productId=fe8020db-5343-4c43-9e65-5ed4a825c931&amp;ref_=dtl_psb_continue&amp;region=ap-northeast-1">https://aws.amazon.com/marketplace/fulfillment?productId=fe8020db-5343-4c43-9e65-5ed4a825c931</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pD2koEbs9dcIPonBg0aSqA.jpeg" /><figcaption>Select the t2.micro instance, then click “Launch with 1-click” to launch the EC2 server.</figcaption></figure><h3>Yeah! Your OpenVPN Access Server is ready, but how can you connect it?</h3><p>Let’s Connect your EC2 server by SSH with user “openvpnas”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*LPYo-mSPsATR1EEn4WkEtw.jpeg" /><figcaption>Run the commands in terminal. Remember to connect with your server’s IP/hostname. The server name written in your EC2 dashboard.</figcaption></figure><p>After login, answer the questions prompt by the new OpenVPN Access Server. Here’s my setting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*xoe5NaGv7i1I-cs78lC_rQ.jpeg" /></figure><p>The configuration is complete! Let’s assign a password for your admin account.</p><blockquote>sudo passwd openvpn</blockquote><p>Now you can access your OpenVPN Access Server from browsers. Let’s create a user for your VPN connection.<br>visit <a href="https://your_vpn_server_ip:943/admin">https://your_vpn_server_ip:943/admin</a> to access the setup page.</p><p>create new user in User Management -&gt; User Permission</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZFf-09Nc5i2-kGD-dt9R1Q.jpeg" /><figcaption>click Save Settings!</figcaption></figure><p>What’s next? set password for the new user &amp; update Running Server!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_diE1SQpcMAUuwDBpJAcqg.jpeg" /></figure><h3>Congratulation! Now you can connect the OpenVPN Access Server with the new account!</h3><p>just visit <a href="https://your_vpn_server_ip:943/">https://your_vpn_server_ip:943</a> to get the client software.</p><p>MacOS may prevent the installer running. You can allow the installer running from System Preference -&gt; Security &amp; Privacy setting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*0760xwTf7k0z0UBsJ3yl9Q.jpeg" /></figure><p>After install the client, you can connect the VPN by clicking the icon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*gOCqsrZDXsmz_j277fihww.jpeg" /><figcaption>click the left circular icon to connect.</figcaption></figure><p>You can visit <a href="https://whatismyipaddress.com/">https://whatismyipaddress.com</a> to verify you’ve connected to the VPN server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae17337eb120" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install v8js for xampp]]></title>
            <link>https://medium.com/@shiba.komino/install-v8js-for-xampp-4303fc998a6a?source=rss-c04be4fc01af------2</link>
            <guid isPermaLink="false">https://medium.com/p/4303fc998a6a</guid>
            <category><![CDATA[xampp]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[isomorphic]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Shiba.Inu.Komino 柴犬mi佬]]></dc:creator>
            <pubDate>Wed, 12 Apr 2017 19:57:00 GMT</pubDate>
            <atom:updated>2017-04-12T19:57:00.951Z</atom:updated>
            <content:encoded><![CDATA[<p>Follow simple tutorial from <a href="https://blog.xenokore.com/how-to-install-v8js-for-php-on-windows/">https://blog.xenokore.com/how-to-install-v8js-for-php-on-windows/</a></p><p>If you follow these steps, and restart Apache from XAMPP Control Panel, <br>you will got System Error<br>“The program can’t start because v8.dll is missing from your computer….”</p><p>You can place v8.dll in c:/xampp folder rather than /php/ folder to fix it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4303fc998a6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>