<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title># cd ~yaasita</title>
    <link>https://yaasita.github.io/</link>
    <description>Recent content on # cd ~yaasita</description>
    <generator>Hugo</generator>
    <language>ja</language>
    <lastBuildDate>Sat, 18 Jul 2026 22:54:04 +0900</lastBuildDate>
    <atom:link href="https://yaasita.github.io/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>gcloudの再認証が必要になった</title>
      <link>https://yaasita.github.io/2026/07/18/gcloud-re-auth/</link>
      <pubDate>Sat, 18 Jul 2026 22:54:04 +0900</pubDate>
      <guid>https://yaasita.github.io/2026/07/18/gcloud-re-auth/</guid>
      <description>このアップデートにより再認証が必要になった&#xA;https://dev.classmethod.jp/articles/google-cloud-session/&#xA;AIに作ってもらったexpect&#xA;これ呼び出せばとりあえずcron処理はOK</description>
    </item>
    <item>
      <title>EC2のIAMロールをローカルで使う</title>
      <link>https://yaasita.github.io/2026/06/23/ec2-role/</link>
      <pubDate>Tue, 23 Jun 2026 01:54:59 +0900</pubDate>
      <guid>https://yaasita.github.io/2026/06/23/ec2-role/</guid>
      <description>こんな感じのスクリプトをEC2に置いて&#xA;こんな感じに読み込めばOK&#xA;source &amp;lt;(ssh ec2-host ./ec2-cred.sh) </description>
    </item>
    <item>
      <title>Microsoft Foundryをopencodeで使う</title>
      <link>https://yaasita.github.io/2026/05/22/opencode-with-azure/</link>
      <pubDate>Fri, 22 May 2026 18:10:25 +0900</pubDate>
      <guid>https://yaasita.github.io/2026/05/22/opencode-with-azure/</guid>
      <description>適当にストレージアカウントを作成する&#xA;(ストレージアカウントとFoundryプロジェクトは異なっていてもOK)&#xA;リソースグループ -&amp;gt; 作成&#xA;適当にポチポチやればprojectも一緒に作られる&#xA;リソース選択 -&amp;gt; Foundryポータルに移動 -&amp;gt; 上のメニューからビルド -&amp;gt; モデルから好きなやつをdeploy&#xA;opencodeではazureを選択&#xA;https://opencode.ai/docs/ja/providers/#azure-openai&#xA;Foundryのホーム画面に出ている&#xA;Azure OpenAI エンドポイントの xxxxxx の部分を入力して、APIキー入れればOK&#xA;エンドポイントはこんな感じ&#xA;https://xxxxxx.openai.azure.com/openai/v1</description>
    </item>
    <item>
      <title>kiro-cliでスキルを使う</title>
      <link>https://yaasita.github.io/2026/04/20/kiro-cli-skills/</link>
      <pubDate>Mon, 20 Apr 2026 02:33:57 +0900</pubDate>
      <guid>https://yaasita.github.io/2026/04/20/kiro-cli-skills/</guid>
      <description>こんな感じでagentごとに skill://~/.kiro/skills/*/SKILL.md を設定しておく&#xA;~/.kiro/skills/*/SKILL.mdに置くだけじゃだめ&#xA;~/.kiro/agents/hoge.json&#xA;{ &amp;#34;name&amp;#34;: &amp;#34;hoge&amp;#34;, &amp;#34;description&amp;#34;: &amp;#34;&amp;#34;, &amp;#34;prompt&amp;#34;: &amp;#34;&amp;#34;, &amp;#34;mcpServers&amp;#34;: { &amp;#34;msdocs&amp;#34;: { &amp;#34;type&amp;#34;: &amp;#34;http&amp;#34;, &amp;#34;url&amp;#34;: &amp;#34;https://learn.microsoft.com/api/mcp&amp;#34; } }, &amp;#34;tools&amp;#34;: [&amp;#34;*&amp;#34;], &amp;#34;toolAliases&amp;#34;: {}, &amp;#34;allowedTools&amp;#34;: [&amp;#34;*&amp;#34;], &amp;#34;resources&amp;#34;: [ &amp;#34;file://README.md&amp;#34;, &amp;#34;skill://~/.kiro/skills/*/SKILL.md&amp;#34; ], &amp;#34;hooks&amp;#34;: {}, &amp;#34;toolsSettings&amp;#34;: {}, &amp;#34;useLegacyMcpJson&amp;#34;: false, &amp;#34;model&amp;#34;: null } </description>
    </item>
    <item>
      <title>opencodeの使い方2</title>
      <link>https://yaasita.github.io/2026/03/11/opencode2/</link>
      <pubDate>Wed, 11 Mar 2026 03:09:14 +0900</pubDate>
      <guid>https://yaasita.github.io/2026/03/11/opencode2/</guid>
      <description>最近知ったこと&#xA;/init でプロジェクト用のAGENTS.mdを作ってくれる github copilotもサポートしてる https://opencode.ai/docs/providers/#github-copilot ちなみに copilot cli の/modelsに出てない&#xA;grok-code-fast-1が使えたりする</description>
    </item>
    <item>
      <title>opencodeの使い方</title>
      <link>https://yaasita.github.io/2026/02/24/opencode/</link>
      <pubDate>Tue, 24 Feb 2026 01:56:44 +0900</pubDate>
      <guid>https://yaasita.github.io/2026/02/24/opencode/</guid>
      <description>公式ドキュメント&#xA;https://opencode.ai/docs/ja&#xA;主な設定ファイル&#xA;~/.local/share/opencode ~/.local/state/opencode ~/.config/opencode Globalなコンテキスト&#xA;~/.config/opencode/AGENTS.md&#xA;設定ファイルはこんな感じ&#xA;https://gist.github.com/yaasita/859a5ab0dc09b2b1d1d4ad83c144258b&#xA;small_modelをちゃんと指定しておかないとデフォルトでClaudeの小さいモデル使ってしまい&#xA;openrouterのクレジットを使ってしまうから注意&#xA;あとmcpは手動で立ち上げたほうが良い&#xA;OpenRouterのfreeモデルはここから探す&#xA;https://openrouter.ai/models?max_price=0&amp;amp;order=most-popular</description>
    </item>
    <item>
      <title>kiro-cliでStreamable httpのMCP追加</title>
      <link>https://yaasita.github.io/2026/01/20/kiro-cli-mcp/</link>
      <pubDate>Tue, 20 Jan 2026 03:10:50 +0900</pubDate>
      <guid>https://yaasita.github.io/2026/01/20/kiro-cli-mcp/</guid>
      <description>例えばこういうMCPサーバー&#xA;https://learn.microsoft.com/ja-jp/training/support/mcp&#xA;追加するときはこんな感じで&#xA;&amp;quot;mcpServers&amp;quot;: { &amp;quot;msdocs&amp;quot;: { &amp;quot;command&amp;quot;: &amp;quot;npx&amp;quot;, &amp;quot;args&amp;quot;: [ &amp;quot;mcp-remote&amp;quot;, &amp;quot;https://learn.microsoft.com/api/mcp&amp;quot; ] } }, こんな感じで追加してもうまく行かない&#xA;kiro-cli mcp add --url &amp;quot;https://learn.microsoft.com/api/mcp&amp;quot;&#xA;kiro-cli 1.24.0&#xA;で確認しました&#xA;2026/04/20 追記&#xA;こんな感じで追加して大丈夫になった&#xA;kiro-cli 2.0.1 で確認&#xA;&amp;#34;mcpServers&amp;#34;: { &amp;#34;msdocs&amp;#34;: { &amp;#34;type&amp;#34;: &amp;#34;http&amp;#34;, &amp;#34;url&amp;#34;: &amp;#34;https://learn.microsoft.com/api/mcp&amp;#34; } }, </description>
    </item>
    <item>
      <title>awsのEIPを自身のインスタンスから</title>
      <link>https://yaasita.github.io/2025/12/22/eip/</link>
      <pubDate>Mon, 22 Dec 2025 01:04:53 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/12/22/eip/</guid>
      <description>EIPは使うときだけアタッチしたいのでこんな感じにやってます&#xA;/etc/profile.d/aws-ec2-eip.sh において&#xA;eip on 2&#xA;みたいに打つと2時間だけEIPをアタッチしておく&#xA;release-eip についてはcronとかで１時間毎に定期実行&#xA;解放時間になったら自動でEIPを外す</description>
    </item>
    <item>
      <title>azure storage使い始めるまで</title>
      <link>https://yaasita.github.io/2025/11/23/azure-storage/</link>
      <pubDate>Sun, 23 Nov 2025 23:59:56 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/11/23/azure-storage/</guid>
      <description>コマンドメモ&#xA;ストレージアカウント作成&#xA;az storage account create \ --name $account \ --resource-group $resource_group \ --sku Standard_LRS \ --kind StorageV2 \ --access-tier Hot \ --allow-blob-public-access true \ --public-network-access Enabled \ --default-action Allow \ --routing-choice MicrosoftRouting \ --min-tls-version TLS1_2 削除ポリシー無効化&#xA;az storage blob service-properties delete-policy update \ --account-name $account \ --enable false \ --auth-mode login az storage account blob-service-properties update \ --account-name $account \ --resource-group $resource_group \ --enable-versioning false \ --enable-container-delete-retention false az storage account file-service-properties update \ --account-name $account \ --resource-group $resource_group \ --enable-delete-retention false ライフサイクル管理</description>
    </item>
    <item>
      <title>Amazon Q Developer CLI使うまで</title>
      <link>https://yaasita.github.io/2025/10/26/amazon-q-developer-cli/</link>
      <pubDate>Sun, 26 Oct 2025 03:24:35 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/10/26/amazon-q-developer-cli/</guid>
      <description>公式&#xA;https://github.com/aws/amazon-q-developer-cli&#xA;debパッケージで入れる方法もあるが、upgradeしやすいzipファイルからのインストールがお勧め&#xA;ユーザー権限でOK&#xA;curl &amp;quot;https://desktop-release.q.us-east-1.amazonaws.com/latest/q-x86_64-linux.zip&amp;quot; -o &amp;quot;q.zip&amp;quot; 解凍して./install.sh叩けばOK&#xA;シェル設定を変更しても良いか聞かれるのでyを押すと ~/.bashrc の先頭と最後に以下のような設定が追加される&#xA;# Amazon Q pre block. Keep at the top of this file. [[ -f &amp;quot;${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash&amp;quot; ]] &amp;amp;&amp;amp; builtin source &amp;quot;${HOME}/.local/share/amazon-q/shell/bashrc.pre.bash&amp;quot; # 元々.bashrcに書かれていた内容 # Amazon Q post block. Keep at the bottom of this file. [[ -f &amp;quot;${HOME}/.local/share/amazon-q/shell/bashrc.post.bash&amp;quot; ]] &amp;amp;&amp;amp; builtin source &amp;quot;${HOME}/.local/share/amazon-q/shell/bashrc.post.bash&amp;quot; 以下のコマンドでログイン処理&#xA;q login agentって単位で設定を分割できるので作っておく&#xA;下記コマンドで~/.aws/amazonq/cli-agents/aws.json に設定ファイルが作成される&#xA;/agent create -n aws デフォルトのagent設定&#xA;q settings chat.defaultAgent my こんな感じでaws用とazure用で分けるなんてことも出来る</description>
    </item>
    <item>
      <title>debian13にdanteが無い</title>
      <link>https://yaasita.github.io/2025/09/02/debian-dante/</link>
      <pubDate>Tue, 02 Sep 2025 21:42:31 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/09/02/debian-dante/</guid>
      <description>なぜかdebian13にはdanteが無かった&#xA;forkyにはあるのでそっから持ってくるか&#xA;https://packages.debian.org/forky/dante-server&#xA;公式から持ってきてmakeするしかないかな&#xA;https://www.inet.no/dante/download.html&#xA;普通にmakeすればいいだけ&#xA;./configure make install /etc/sockd.conf&#xA;/etc/systemd/system/sockd.service</description>
    </item>
    <item>
      <title>piholeのブロックリスト</title>
      <link>https://yaasita.github.io/2025/09/01/pihole-block-list/</link>
      <pubDate>Mon, 01 Sep 2025 16:51:45 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/09/01/pihole-block-list/</guid>
      <description>こんな感じのhosts形式だけじゃなく&#xA;https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts&#xA;ABP形式もOKらしい&#xA;https://pi-hole.net/blog/2023/03/22/pi-hole-ftl-v5-22-web-v5-19-and-core-v5-16-1-released/#page-content&#xA;サブドメインも含めてyoutube.comをブロックする場合&#xA;||youtube.com^ </description>
    </item>
    <item>
      <title>preloadの効果</title>
      <link>https://yaasita.github.io/2025/08/11/preload/</link>
      <pubDate>Mon, 11 Aug 2025 04:43:38 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/08/11/preload/</guid>
      <description>なんとなくdebianに入れてたpreload&#xA;設定はこんな感じ /etc/preload.conf&#xA;意味あるか測定してみた&#xA;測定はtimeコマンド経由で以下の条件を満たしたらウィンドウを閉じてrealtimeを比較&#xA;firefox: ホームメニューが出るまで chrome: ホームメニューが出るまで thunderbird: 受信ボックスが見れるまで preloadあり 2025/07/21 (月) 14:52:42&#xA;firefox-esr: 0m24.578s&#xA;google-chrome-stable: 0m35.277s&#xA;thunderbird: 0m24.932s&#xA;2025/07/22 (火) 04:04:37&#xA;firefox-esr: 0m21.119s&#xA;google-chrome-stable: 0m34.912s&#xA;thunderbird: 0m24.668s&#xA;2025/07/27 (日) 02:51:35&#xA;firefox-esr: 0m12.906s&#xA;google-chrome-stable: 0m15.793s&#xA;thunderbird: 0m20.732s&#xA;2025/07/27 (日) 17:10:02&#xA;firefox-esr: 0m21.614s&#xA;google-chrome-stable: 0m38.979s&#xA;thunderbird: 0m25.449s&#xA;preloadなし 2025/08/03 (日) 02:16:58&#xA;firefox-esr: 0m21.507s&#xA;google-chrome-stable: 0m14.986s&#xA;thunderbird: 0m11.729s&#xA;2025/08/11 (月) 04:38:53&#xA;firefox-esr: 0m22.632s&#xA;google-chrome-stable: 0m36.524s&#xA;thunderbird: 0m21.813s&#xA;結論 自分の環境だと意味なさそうなので止めた</description>
    </item>
    <item>
      <title>TVerをLinuxで見る</title>
      <link>https://yaasita.github.io/2025/07/20/tver-with-linux/</link>
      <pubDate>Sun, 20 Jul 2025 00:48:32 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/07/20/tver-with-linux/</guid>
      <description>firefox(esr)ならそのまま見れるけど、chromeだとPC判定されなくて&amp;quot;アプリで視聴する&amp;quot;ボタンになってしまう&#xA;User-Agentとか、クライアントヒントを以下のように設定すればOK&#xA;header value Sec-Ch-Ua &amp;ldquo;Not)A;Brand&amp;rdquo;;v=&amp;ldquo;8&amp;rdquo;, &amp;ldquo;Chromium&amp;rdquo;;v=&amp;ldquo;138&amp;rdquo;, &amp;ldquo;Google Chrome&amp;rdquo;;v=&amp;ldquo;138&amp;rdquo; Sec-Ch-Ua-Mobile ?0 Sec-Ch-Ua-Platform &amp;ldquo;Windows&amp;rdquo; User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 chrome dev tool -&amp;gt; 設定 -&amp;gt; デバイスで設定</description>
    </item>
    <item>
      <title>glacierで取り出し期間は後から変更できる</title>
      <link>https://yaasita.github.io/2025/07/12/aws-s3-glacier/</link>
      <pubDate>Sat, 12 Jul 2025 14:10:30 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/07/12/aws-s3-glacier/</guid>
      <description>aws s3 glacier で取り出しするときに&#xA;こんなコマンドを打つ&#xA;これはdeep archiveにあったファイルをstandardクラスのストレージに7日移してダウンロードできるようにするというもの&#xA;aws s3api restore-object \ --bucket $s3bucket \ --key $s3key \ --restore-request &#39;{&amp;quot;Days&amp;quot;:7,&amp;quot;GlacierJobParameters&amp;quot;:{&amp;quot;Tier&amp;quot;:&amp;quot;Bulk&amp;quot;}}&#39; Bulkでリクエストすると大体48時間後ぐらいに取り出せるようになる&#xA;でこれ7日間はstandardクラスの料金がかかるのでダウンロードしたらすぐにこんなコマンドを打って、残存期間を短くした方がいい&#xA;aws s3api restore-object \ --bucket $s3bucket \ --key $s3key \ --restore-request &#39;{&amp;quot;Days&amp;quot;:1,&amp;quot;GlacierJobParameters&amp;quot;:{&amp;quot;Tier&amp;quot;:&amp;quot;Bulk&amp;quot;}}&#39; ちなみに Days: 0 はエラーになる</description>
    </item>
    <item>
      <title>s3のマルチパートアップロード料金</title>
      <link>https://yaasita.github.io/2025/06/21/aws-s3-multipart/</link>
      <pubDate>Sat, 21 Jun 2025 15:30:58 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/06/21/aws-s3-multipart/</guid>
      <description>こんな感じで始めるマルチパートアップロードを開始&#xA;aws s3api create-multipart-upload --bucket $BUCKET --key $UPLOAD_KEY --storage-class DEEP_ARCHIVE glacierを指定しても&#xA;アップロード途中の料金はs3のスタンダード料金よりはちょっと安いくらいのお金がかかる&#xA;バージニア北部(us-east-1)リージョンでこんな感じ&#xA;請求書にStagingって書いてあるので気づけるはず&#xA;$0.021 per GB-Month of storage used in GlacierStagingStorage マルチパートアップロードの途中がないか定期的に確認したほうがよい&#xA;aws s3api list-multipart-uploads --bucket バケット名 </description>
    </item>
    <item>
      <title>sysstatのデータをbigqueryに入れる</title>
      <link>https://yaasita.github.io/2025/05/17/sysstat/</link>
      <pubDate>Sat, 17 May 2025 13:23:08 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/05/17/sysstat/</guid>
      <description>こんな感じでレポート出して&#xA;sadf -T -j /var/log/sysstat/sa\$(date -d yesterday +%d) -- -ruq -n DEV &amp;gt; /tmp/sadf.json bigquery用のフォーマットに変更&#xA;あとは Looker Studio で見るとか</description>
    </item>
    <item>
      <title>動画ファイルのダミーデータ</title>
      <link>https://yaasita.github.io/2025/05/16/download-stream-png-dummy/</link>
      <pubDate>Fri, 16 May 2025 16:45:58 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/05/16/download-stream-png-dummy/</guid>
      <description>m3uから動画をダウンロードすると&#xA;PNG image data, 1 x 1, 8-bit/color RGBA, non-interlacedのデータになることがある&#xA;こんな感じで先頭8byteを飛ばして&#xA;ffmpegで再エンコードするとよい&#xA;とりあえずffmpeg通せばヘッダは復活する&#xA;ffmpeg -i merged_output.ts -c copy out.mp4 参考リンク&#xA;https://github.com/yt-dlp/yt-dlp/issues/4381</description>
    </item>
    <item>
      <title>ロックマンX6攻略情報</title>
      <link>https://yaasita.github.io/2025/04/17/rockman6/</link>
      <pubDate>Thu, 17 Apr 2025 03:32:19 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/04/17/rockman6/</guid>
      <description>自分用メモ ナイトメアを上書きする方法&#xA;https://penpengames.blog.fc2.com/blog-entry-43.html&#xA;途中で右下に出てくるビックリマークは？&#xA;R3ボタンでオペレーターからのヒントを聞ける&#xA;強化パーツ&#xA;https://ameblo.jp/megamanblack/entry-12459899904.html&#xA;アイテム一覧&#xA;https://rockmanx6.gorillawiki.jp/entry/21&#xA;アーマー場所&#xA;https://www.youtube.com/watch?v=QtN-EFOMrEA&#xA;ライフアップ取り方&#xA;https://www.youtube.com/watch?v=qzuumF5boOk&amp;amp;t=34s&#xA;サブタンク/EXアイテム&#xA;https://www.youtube.com/watch?v=0l2LVclq804</description>
    </item>
    <item>
      <title>スマホ変えて楽天モバイルにした</title>
      <link>https://yaasita.github.io/2025/03/03/rakuten-mobile/</link>
      <pubDate>Mon, 03 Mar 2025 01:28:35 +0900</pubDate>
      <guid>https://yaasita.github.io/2025/03/03/rakuten-mobile/</guid>
      <description>スマホ変えました&#xA;Sharp AQUOS wish4 (15680円) の Docomo版にしました&#xA;androidは14&#xA;Docomo版なので、Docomo用のプリインアプリが沢山あって無効化が面倒&#xA;ただ画面がでかくて良いかもしれない&#xA;あとMNPで楽天モバイルにしました&#xA;イオンモバイルからワンストップMNPでやろうとしたんだけどなんか申請途中でエラー&#xA;イオン側は申請受付状態、楽天側は未申請状態になって詰んだと思ったけど&#xA;1日くらい待つと、イオンモバイル側にMNP予約番号が表示見されるようになってたのでそれを楽天モバイル側に手動で入力して申請&#xA;何とかなった&#xA;あとAPN設定しないとつながらない&#xA;https://network.mobile.rakuten.co.jp/faq/detail/00001495/&#xA;今回からeSIMにしてみたけど便利&#xA;ただ、eSIMでも楽天モバイルからの郵便物(楽天モバイルの取説)は届くし受け取り必要でした</description>
    </item>
  </channel>
</rss>
