<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>bytama</title>
    <link>https://blog.bytama.my.id/</link>
    <description>Notes on the systems I run.</description>
    <language>en</language>
    <atom:link href="https://blog.bytama.my.id/rss.xml" rel="self" type="application/rss+xml"/>
    <item>
      <title>Change a Postgres enum used by Sequelize</title>
      <link>https://blog.bytama.my.id/change-a-postgres-enum-in-sequelize/</link>
      <guid isPermaLink="true">https://blog.bytama.my.id/change-a-postgres-enum-in-sequelize/</guid>
      <pubDate>Tue, 11 Jun 2024 02:00:00 GMT</pubDate>
      <description>Adding a value is one statement. Removing or reordering values means rebuilding the type, and the table with it.</description>
    </item>
    <item>
      <title>Merge two arrays of objects by key</title>
      <link>https://blog.bytama.my.id/merge-arrays-of-objects-by-key/</link>
      <guid isPermaLink="true">https://blog.bytama.my.id/merge-arrays-of-objects-by-key/</guid>
      <pubDate>Mon, 19 Feb 2024 02:00:00 GMT</pubDate>
      <description>Index one side into a Map, then merge by id. The version that matches on array position only works by luck.</description>
    </item>
    <item>
      <title>Rename a Python virtualenv</title>
      <link>https://blog.bytama.my.id/rename-a-python-virtualenv/</link>
      <guid isPermaLink="true">https://blog.bytama.my.id/rename-a-python-virtualenv/</guid>
      <pubDate>Mon, 02 Oct 2023 02:00:00 GMT</pubDate>
      <description>virtualenv does not support renaming. Recreating it is faster and safer than editing paths by hand.</description>
    </item>
    <item>
      <title>Normalize CRLF to LF in a Git repository</title>
      <link>https://blog.bytama.my.id/normalize-crlf-to-lf-in-git/</link>
      <guid isPermaLink="true">https://blog.bytama.my.id/normalize-crlf-to-lf-in-git/</guid>
      <pubDate>Mon, 14 Aug 2023 02:00:00 GMT</pubDate>
      <description>Turn off autocrlf, rebuild the index, and keep the working tree unchanged.</description>
    </item>
    <item>
      <title>Find and kill the process holding a Windows port</title>
      <link>https://blog.bytama.my.id/find-and-kill-a-process-on-a-windows-port/</link>
      <guid isPermaLink="true">https://blog.bytama.my.id/find-and-kill-a-process-on-a-windows-port/</guid>
      <pubDate>Mon, 22 May 2023 02:00:00 GMT</pubDate>
      <description>netstat gives you the PID, taskkill ends it. The PowerShell equivalents are shorter.</description>
    </item>
    <item>
      <title>Reset a Postgres sequence</title>
      <link>https://blog.bytama.my.id/reset-a-postgres-sequence/</link>
      <guid isPermaLink="true">https://blog.bytama.my.id/reset-a-postgres-sequence/</guid>
      <pubDate>Thu, 09 Mar 2023 02:00:00 GMT</pubDate>
      <description>One ALTER SEQUENCE fixes the &quot;duplicate key&quot; failures that follow a manual data import.</description>
    </item>
    <item>
      <title>Move a WSL 2 distribution to another drive</title>
      <link>https://blog.bytama.my.id/move-wsl2-to-another-drive/</link>
      <guid isPermaLink="true">https://blog.bytama.my.id/move-wsl2-to-another-drive/</guid>
      <pubDate>Tue, 17 Jan 2023 02:00:00 GMT</pubDate>
      <description>Export, unregister, import — and restore the default user, which the import quietly resets to root.</description>
    </item>
    <item>
      <title>SSH keys for a non-root user</title>
      <link>https://blog.bytama.my.id/ssh-keys-for-a-non-root-user/</link>
      <guid isPermaLink="true">https://blog.bytama.my.id/ssh-keys-for-a-non-root-user/</guid>
      <pubDate>Mon, 05 Dec 2022 02:00:00 GMT</pubDate>
      <description>Generate a key, install it for a regular account, prove it works, then turn passwords off.</description>
    </item>
    <item>
      <title>Enable password login for SSH on a VPS</title>
      <link>https://blog.bytama.my.id/enable-ssh-password-login-on-a-vps/</link>
      <guid isPermaLink="true">https://blog.bytama.my.id/enable-ssh-password-login-on-a-vps/</guid>
      <pubDate>Mon, 21 Nov 2022 02:00:00 GMT</pubDate>
      <description>Some images ship key-only SSH. Here is how to switch password authentication back on without locking yourself out.</description>
    </item>
    <item>
      <title>Create a non-root user on a fresh Ubuntu server</title>
      <link>https://blog.bytama.my.id/create-non-root-user-on-ubuntu/</link>
      <guid isPermaLink="true">https://blog.bytama.my.id/create-non-root-user-on-ubuntu/</guid>
      <pubDate>Tue, 08 Nov 2022 02:00:00 GMT</pubDate>
      <description>Add a sudo user, switch to it, and stop doing everyday work as root over SSH.</description>
    </item>
  </channel>
</rss>