<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Bjørnar Hagen</title>
    <link>https://bjornar.dev</link>
    <atom:link href="https://bjornar.dev/rss.xml" rel="self" type="application/rss+xml" />
    <description>Notes, experiments and mistakes documented in real-time.</description>
    <language>en</language>
    <item>
      <title>Drizzle Migrations with a Safety Net</title>
      <link>https://bjornar.dev/entries/2025/drizzle-migrations-with-a-safety-net</link>
      <guid isPermaLink="true">https://bjornar.dev/entries/2025/drizzle-migrations-with-a-safety-net</guid>
      <pubDate>Fri, 05 Sep 2025 12:00:00 GMT</pubDate>
      <description>Ever ran a database migration only for it to fail halfway through, and then you're stuck with a partially migrated database? Then you try to run a rollback, which fails because the database is not on the previous version, nor is it on the next version, it's somewhere in between, so you have to cleanup manually. I've had this problem way too many times, so I finally got bothered by it enough to create a solution for myself.</description>
    </item>
    <item>
      <title>You are using Docker wrong</title>
      <link>https://bjornar.dev/entries/2024/you-are-using-docker-wrong</link>
      <guid isPermaLink="true">https://bjornar.dev/entries/2024/you-are-using-docker-wrong</guid>
      <pubDate>Sat, 10 Feb 2024 23:55:00 GMT</pubDate>
      <description>I see many developers using Docker wrong. They still run everything locally, and only use Docker in the CI/CD pipeline. While this has it's benefits, there's still a lot of potential being missed.</description>
    </item>
    <item>
      <title>Auto versioning your app with a simple bash script</title>
      <link>https://bjornar.dev/entries/2024/automatic-versioning-with-simple-bash-script</link>
      <guid isPermaLink="true">https://bjornar.dev/entries/2024/automatic-versioning-with-simple-bash-script</guid>
      <pubDate>Fri, 05 Jan 2024 13:03:00 GMT</pubDate>
      <description>To automatically version your app can be pretty complicated and a lot of solutions require complex dependencies and configurations. In this post I will show you how to do it with just a simple Bash script and Git.</description>
    </item>
    <item>
      <title>Laravel CSP and BrowserSync</title>
      <link>https://bjornar.dev/entries/2023/laravel-csp-and-browersync</link>
      <guid isPermaLink="true">https://bjornar.dev/entries/2023/laravel-csp-and-browersync</guid>
      <pubDate>Sat, 05 Aug 2023 11:15:00 GMT</pubDate>
      <description>In this post, I'll show you how to set up Content Security Policy (CSP) and BrowserSync in a Laravel project.</description>
    </item>
    <item>
      <title>Good money.</title>
      <link>https://bjornar.dev/entries/2022/good-money</link>
      <guid isPermaLink="true">https://bjornar.dev/entries/2022/good-money</guid>
      <pubDate>Tue, 15 Mar 2022 01:33:00 GMT</pubDate>
      <description>I don't believe we shall ever have a good money again before we take the thing out of the hands of government - F. A. Hayek</description>
    </item>
    <item>
      <title>Are cookies really the most important thing for your business?</title>
      <link>https://bjornar.dev/entries/2021/are-cookies-really-the-most-important-thing-for-your-business</link>
      <guid isPermaLink="true">https://bjornar.dev/entries/2021/are-cookies-really-the-most-important-thing-for-your-business</guid>
      <pubDate>Thu, 08 Jul 2021 22:04:54 GMT</pubDate>
      <description>The number one priority for so many businesses these days seem to be to get your oh so precious consent in order track you with cookies, and don't you dare do anything on their website before you've given it!</description>
    </item>
    <item>
      <title>How to add line numbers to pre tags</title>
      <link>https://bjornar.dev/entries/2021/pre-line-numbers</link>
      <guid isPermaLink="true">https://bjornar.dev/entries/2021/pre-line-numbers</guid>
      <pubDate>Thu, 06 May 2021 14:25:01 GMT</pubDate>
      <description>Reading code is easier when you have line numbers, but how can you show line numbers in a &lt;pre&gt; tag? This can easily be solved with a few lines of JS and CSS, no need for a big external library.</description>
    </item>
    <item>
      <title>UX tip for external links</title>
      <link>https://bjornar.dev/entries/2021/links</link>
      <guid isPermaLink="true">https://bjornar.dev/entries/2021/links</guid>
      <pubDate>Wed, 28 Apr 2021 20:08:47 GMT</pubDate>
      <description>Clicking links going to an external site can be annoying if you aren't prepared for that. To improve the user experience you should show some kind of indicator for external links.</description>
    </item>
  </channel>
</rss>