<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
      <title>amureki.me</title>
      <link>https://amureki.me</link>
      <description>Notes from Rust Saiargaliev</description>
      <generator>Zola</generator>
      <language>en</language>
      <atom:link href="https://amureki.me/rss.xml" rel="self" type="application/rss+xml"/>
      <lastBuildDate>Wed, 11 Nov 2026 00:00:00 +0000</lastBuildDate>
      <item>
          <title>Caps Lock, I love you</title>
          <pubDate>Wed, 11 Nov 2026 00:00:00 +0000</pubDate>
          <author>Rust Saiargaliev</author>
          <link>https://amureki.me/notes/2026-11-11-caps-lock-i-love-you/</link>
          <guid>https://amureki.me/notes/2026-11-11-caps-lock-i-love-you/</guid>
          <description xml:base="https://amureki.me/notes/2026-11-11-caps-lock-i-love-you/">&lt;p&gt;I love Caps Lock now. All it took was making it do something completely different.&lt;/p&gt;
&lt;p&gt;Several years ago, I discovered the idea of a &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://stevelosh.com/blog/2012/10/a-modern-space-cadet/#hyper&quot;&gt;Hyper key&lt;/a&gt;: one key that sends Control, Option, Command, and Shift together. Steve Losh’s 2012 article is the earliest mention of the term in this context that I could find on the web.&lt;/p&gt;
&lt;p&gt;That gives you a whole set of shortcuts that apps and the OS usually leave alone.&lt;/p&gt;
&lt;p&gt;So I replaced Caps Lock with Hyper. On a Mac, you can set it up with Raycast, Karabiner-Elements, or the standalone Hyperkey app.&lt;/p&gt;
&lt;p&gt;Now I hold Caps Lock with my left pinky and press another key to do whatever I assigned to that combination. Finally, some work for that pinky!&lt;/p&gt;
&lt;h2 id=&quot;everything-gets-a-shortcut&quot;&gt;Everything gets a shortcut&lt;/h2&gt;
&lt;p&gt;Most of my Hyper shortcuts take me to an app:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Hyper+B&lt;/code&gt;: browser&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Hyper+T&lt;/code&gt;: terminal&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Hyper+S&lt;/code&gt;: Slack&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Hyper+C&lt;/code&gt;: coding environment&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Hyper+E&lt;/code&gt;: editor&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Hyper+N&lt;/code&gt;: notes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And &lt;code&gt;Hyper+Space&lt;/code&gt; switches input languages. I previously wrote about &lt;a href=&quot;/notes/2025-03-07-fast-input-switch-macos/&quot;&gt;fixing the delay when switching languages&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Any app I use on my laptop more than once a day deserves a Hyper shortcut. The letters mostly match what I use the app for, so I don&#39;t have much to memorize.&lt;/p&gt;
&lt;h2 id=&quot;i-already-know-where-i-want-to-go&quot;&gt;I already know where I want to go&lt;/h2&gt;
&lt;p&gt;I used to hate opening the app switcher with &lt;code&gt;Cmd+Tab&lt;/code&gt; or looking at the Dock. I knew which app I wanted. But there I was, looking through icons to find it, then getting distracted by notification badges and other shiny things.&lt;/p&gt;
&lt;p&gt;I only wanted to open the browser. Why am I looking at Slack?&lt;/p&gt;
&lt;p&gt;Now I press &lt;code&gt;Hyper+B&lt;/code&gt;, and I am in the browser. &lt;code&gt;Hyper+T&lt;/code&gt;, and I am in the terminal. I don&#39;t use the app switcher or the Dock anymore.&lt;/p&gt;
&lt;p&gt;If an app doesn&#39;t have a shortcut, I open Raycast and type the first couple of letters of its name.&lt;/p&gt;
&lt;p&gt;Caps Lock was always in the right place. I finally gave it something useful to do.&lt;/p&gt;
</description>
      </item>
      <item>
          <title>Making Django admin easier to use every day</title>
          <pubDate>Mon, 02 Nov 2026 00:00:00 +0000</pubDate>
          <author>Rust Saiargaliev</author>
          <link>https://amureki.me/notes/2026-11-02-better-django-admin-dx/</link>
          <guid>https://amureki.me/notes/2026-11-02-better-django-admin-dx/</guid>
          <description xml:base="https://amureki.me/notes/2026-11-02-better-django-admin-dx/">&lt;p&gt;Several teams at &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://www.voiio.de/&quot;&gt;voiio&lt;/a&gt; use Django admin every day. Most of its users are not engineers.&lt;/p&gt;
&lt;p&gt;It is a wonderful tool, but after years of adding models, fields, and inlines, some things become annoying. Too many clicks to find a record, too much scrolling to change a setting.&lt;/p&gt;
&lt;p&gt;I spend a lot of time there too, checking records and investigating bugs, so here are a few things I wanted to improve.&lt;/p&gt;
&lt;h2 id=&quot;jump-to-a-model-or-record&quot;&gt;Jump to a model or record&lt;/h2&gt;
&lt;p&gt;I tried &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://github.com/rajasimon/django-command-palette&quot;&gt;django-command-palette&lt;/a&gt; and liked it. It had an annoying bug that was spamming Sentry, but otherwise worked fine. I reported it and submitted a fix, but got no response.&lt;/p&gt;
&lt;p&gt;I often opened a model&#39;s list with &lt;code&gt;Cmd+K&lt;/code&gt;, then added the record ID to the URL by hand. I already knew which record I needed, so why not go there directly?&lt;/p&gt;
&lt;p&gt;So I made &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://github.com/amureki/django-cmdbar&quot;&gt;django-cmdbar&lt;/a&gt;. Now I can type &lt;code&gt;user#42&lt;/code&gt; and open that record.&lt;/p&gt;
&lt;figure&gt;
  &lt;a href=&quot;/images/django-admin-dx/cmdbar-record.png&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; aria-label=&quot;Open full screenshot in a new tab: Django CmdBar showing user#42 with an option to open record #42.&quot;&gt;
    &lt;img src=&quot;/images/django-admin-dx/cmdbar-record.png&quot; alt=&quot;Django CmdBar showing user#42 with an option to open record #42.&quot; width=&quot;2000&quot; height=&quot;680&quot; loading=&quot;lazy&quot;&gt;
  &lt;/a&gt;
  &lt;figcaption&gt;Type user#42 to jump straight to that record.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;I thought only power users would use this, but our non-technical colleagues liked it more than I expected.&lt;/p&gt;
&lt;h2 id=&quot;press-to-search&quot;&gt;Press &lt;code&gt;/&lt;/code&gt; to search&lt;/h2&gt;
&lt;p&gt;This one is tiny, but I use it all the time. On admin list pages, we added &lt;code&gt;/&lt;/code&gt; to focus the search field.&lt;/p&gt;
&lt;p&gt;We also changed the placeholder so people can discover it:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Type &quot;/&quot; to search&lt;/p&gt;
&lt;/blockquote&gt;
&lt;figure&gt;
  &lt;a href=&quot;/images/django-admin-dx/search-hint.png&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; aria-label=&quot;Open full screenshot in a new tab: Demo book list with the search placeholder Type &amp;quot;/&amp;quot; to search.&quot;&gt;
    &lt;img src=&quot;/images/django-admin-dx/search-hint.png&quot; alt=&quot;Demo book list with the search placeholder Type &amp;quot;/&amp;quot; to search.&quot; width=&quot;960&quot; height=&quot;280&quot; loading=&quot;lazy&quot;&gt;
  &lt;/a&gt;
  &lt;figcaption&gt;The search field shows the keyboard shortcut.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;I can press &lt;code&gt;/&lt;/code&gt; and start typing without reaching for the mouse.&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://github.com/khanxmetu/django-admin-keyshortcuts&quot;&gt;django-admin-keyshortcuts&lt;/a&gt; was another inspiration here, if you are interested in more keyboard shortcuts for the admin.&lt;/p&gt;
&lt;h2 id=&quot;split-long-detail-forms-into-tabs&quot;&gt;Split long detail forms into tabs&lt;/h2&gt;
&lt;p&gt;One of our admin forms had grown to around 8–10 inlines. Finding one setting involved enough scrolling to count as exercise.&lt;/p&gt;
&lt;p&gt;So we recently grouped related fields and inlines into tabs, inspired by &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://pypi.org/project/django-tabbed-admin2/&quot;&gt;django-tabbed-admin2&lt;/a&gt;. A couple of admin classes and a JavaScript snippet were enough to build our own version.&lt;/p&gt;
&lt;p&gt;It is still the same form with the usual save button, but we spend less time scrolling.&lt;/p&gt;
&lt;figure&gt;
  &lt;a href=&quot;/images/django-admin-dx/admin-tabs.png&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; aria-label=&quot;Open full screenshot in a new tab: Demo book form with Details, Authors, and Reviews tabs and sample data.&quot;&gt;
    &lt;img src=&quot;/images/django-admin-dx/admin-tabs.png&quot; alt=&quot;Demo book form with Details, Authors, and Reviews tabs and sample data.&quot; width=&quot;960&quot; height=&quot;590&quot; loading=&quot;lazy&quot;&gt;
  &lt;/a&gt;
  &lt;figcaption&gt;Related fields are grouped into tabs. Demo form with sample data.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;After we added tabs to our heaviest admin page, staff members asked us to do the same for other long admin pages.&lt;/p&gt;
&lt;h2 id=&quot;next-tell-environments-apart&quot;&gt;Next: tell environments apart&lt;/h2&gt;
&lt;p&gt;Another idea I liked: a &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://github.com/django/new-features/issues/228&quot;&gt;proposal to use different admin colors when &lt;code&gt;DEBUG=True&lt;/code&gt;&lt;/a&gt;. When several browser tabs show the same admin in different environments, it is quite easy to edit something in the wrong one.&lt;/p&gt;
&lt;p&gt;I haven&#39;t tried this yet, but I&#39;d like to make our environments easier to tell apart.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I like Django admin a lot. And since it is another Django app, we can change the parts that annoy us. If your team spends hours there every day, it is worth spending some time making it better.&lt;/p&gt;
</description>
      </item>
      <item>
          <title>Safer local envs with 1Password and op run</title>
          <pubDate>Thu, 18 Jun 2026 00:00:00 +0000</pubDate>
          <author>Rust Saiargaliev</author>
          <link>https://amureki.me/notes/2026-06-18-safer-local-envs-with-1password/</link>
          <guid>https://amureki.me/notes/2026-06-18-safer-local-envs-with-1password/</guid>
          <description xml:base="https://amureki.me/notes/2026-06-18-safer-local-envs-with-1password/">&lt;p&gt;I kept too many secrets in my &lt;code&gt;.env&lt;/code&gt; files.&lt;/p&gt;
&lt;p&gt;The goal: run local commands without keeping sensitive environment variables in plaintext inside the project directory.&lt;/p&gt;
&lt;p&gt;This led me to looking for ways to be protected against:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;supply-chain attacks: a random dependency or tool reading local files;&lt;/li&gt;
&lt;li&gt;agentic workflows: coding agents accidentally seeing or exposing secrets from the workspace.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I already use a password manager for secrets. In my case, that is 1Password, and like many password managers it has a CLI integration.&lt;/p&gt;
&lt;p&gt;The CLI can read items from your vault and pass them to local commands without you copying values around. The part I care about here is &lt;code&gt;op run&lt;/code&gt;: it can start a process with environment variables resolved from 1Password.&lt;/p&gt;
&lt;p&gt;That means I can keep the local &lt;code&gt;.env&lt;/code&gt; workflow, but stop putting real secret values in the file:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SECRET_KEY=op://dev/project/SECRET_KEY&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;DATABASE_URL=op://dev/project/DATABASE_URL&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then &lt;code&gt;op run&lt;/code&gt; resolves those pointers only for the command it starts:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;op&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; run&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; --env-file&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; .env&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; --&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; uv run manage.py runserver&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A nice side effect: reading the real values goes through 1Password. If something unexpected tries to resolve them, I get an unlock prompt first, which gives me a chance to stop and ask: “did I actually mean to give this command my secrets?”&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://github.com/user-attachments/assets/d5f86e6d-bb04-4bd0-ad06-933dd6b333db&quot; alt=&quot;1Password unlock prompt&quot; /&gt;&lt;/p&gt;
&lt;p&gt;That is already enough, but I did not want to type the full command every time, so I wrapped it in a tiny zsh helper:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;opr&lt;/span&gt;&lt;span&gt;() {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;  op&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; run&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; --env-file&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;quot;${&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;OP_ENV_FILE&lt;/span&gt;&lt;span&gt;:-&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;env&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;}&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; --&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #E06C75;font-style: italic;&quot;&gt;$@&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Now I can run my Django server like this:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;opr&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; uv run manage.py runserver&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;or a FastAPI app:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;opr&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; fastapi dev&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The process still gets the environment it needs, but the secrets are managed by 1Password instead of sitting casually in the repository/worktree.&lt;/p&gt;
&lt;h2 id=&quot;advanced-aliases&quot;&gt;Advanced: aliases&lt;/h2&gt;
&lt;p&gt;I am also quite lazy and like &lt;a href=&quot;/notes/2019-03-15-heroku-aliases/&quot;&gt;aliases&lt;/a&gt;, so I wanted this to work too:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; runserver&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;uv run manage.py runserver&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;opr&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; runserver&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The minimal &lt;code&gt;opr&lt;/code&gt; helper does not support that, because shell aliases are not executables. &lt;code&gt;op run&lt;/code&gt; tries to execute &lt;code&gt;runserver&lt;/code&gt; as a real command from &lt;code&gt;$PATH&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;To make &lt;code&gt;opr&lt;/code&gt; understand zsh aliases too, I expand the first argument before calling &lt;code&gt;op run&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;opr&lt;/span&gt;&lt;span&gt;() {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;  local&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; env_file&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;${&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;OP_ENV_FILE&lt;/span&gt;&lt;span&gt;:-&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;env&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;}&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;  local&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; -a&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; cmd expanded&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;  local&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; expansions&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt;0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;  cmd&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #E06C75;font-style: italic;&quot;&gt;$@&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;  while&lt;/span&gt;&lt;span&gt; (( $#&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;cmd&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; &amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span&gt; ${+&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;aliases&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;$cmd&lt;/span&gt;&lt;span&gt;[1]]}&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; &amp;amp;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; expansions&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; 20&lt;/span&gt;&lt;span&gt; ));&lt;/span&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt; do&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;    expanded&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span&gt;(${(&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;z&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;aliases&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;$cmd&lt;/span&gt;&lt;span&gt;[1]]})&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;    cmd&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;${&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;expanded&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;[&lt;/span&gt;&lt;span&gt;@&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;]}&amp;quot; &amp;quot;${&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;cmd&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;[&lt;/span&gt;&lt;span&gt;@&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;]&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;}&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    ((&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;expansions&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;++&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;  done&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;  op&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; run&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; --env-file&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;$env_file&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; --&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;quot;${&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt;cmd&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;[&lt;/span&gt;&lt;span&gt;@&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;]}&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then the lazy version works:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;opr&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; runserver&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&quot;alternatives&quot;&gt;Alternatives&lt;/h2&gt;
&lt;p&gt;This helper is intentionally tiny. If you are interested in the idea, but did not like my solution or want something more production-like, here are some alternatives:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://github.com/dotenvx/dotenvx&quot;&gt;dotenvx&lt;/a&gt;, which supports encrypted &lt;code&gt;.env&lt;/code&gt; workflows and stays close to the familiar dotenv model.&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://github.com/dmno-dev/varlock&quot;&gt;Varlock&lt;/a&gt;, which adds a committed &lt;code&gt;.env.schema&lt;/code&gt;, type/required metadata, redacted config checks, and secret leak scanning.&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://sobolevn.me/git-secret/&quot;&gt;git-secret&lt;/a&gt;, which encrypts secret files before committing them to Git. Useful, but a different trade-off: after decrypting, you still have plaintext files in the worktree.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Devcontainers can also help by isolating the tooling that touches a project, but they do not remove the secrets problem by themselves: the container still needs those values from somewhere.&lt;/p&gt;
&lt;p&gt;These are bigger tools than my alias, but that can be the right trade-off for a team, especially if you want an explicit env contract for humans and agents.&lt;/p&gt;
&lt;p&gt;None of this protects you from code running inside the target process: that code can read its own environment. The win is smaller than that, but still useful: fewer plaintext secrets sitting around for tools, agents, or accidental commits to stumble over.&lt;/p&gt;
&lt;p&gt;I would not add this to every project by default. It is most useful when the same checkout is touched by lots of tools, scripts, or agents.&lt;/p&gt;
</description>
      </item>
      <item>
          <title>Fast Keyboard Layout Switching on macOS</title>
          <pubDate>Fri, 07 Mar 2025 00:00:00 +0000</pubDate>
          <author>Rust Saiargaliev</author>
          <link>https://amureki.me/notes/2025-03-07-fast-input-switch-macos/</link>
          <guid>https://amureki.me/notes/2025-03-07-fast-input-switch-macos/</guid>
          <description xml:base="https://amureki.me/notes/2025-03-07-fast-input-switch-macos/">&lt;p&gt;For the longest time, switching input languages on my Mac was frustratingly slow.
The default &lt;em&gt;Control + Space&lt;/em&gt; shortcut had a nearly &lt;strong&gt;one-second delay&lt;/strong&gt; before switching languages.
If you&#39;re a fast typist, that means typing the first few characters in the wrong language — super annoying.&lt;/p&gt;
&lt;p&gt;I tried every solution I could find:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Custom AppleScripts.&lt;/li&gt;
&lt;li&gt;The unmaintained (but surprisingly still functional) open-source tool &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://github.com/hatashiro/kawa&quot;&gt;Kawa&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;I even wrote my own Swift-based solution.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;None of them fixed the actual problem — the &lt;strong&gt;delay itself&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id=&quot;the-solution&quot;&gt;The Solution&lt;/h2&gt;
&lt;p&gt;After a lot of trial and error, I stumbled upon this in &lt;em&gt;System Preferences → Keyboard → Shortcuts -&amp;gt; Input Sources&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://github.com/user-attachments/assets/4314b71d-a55b-4555-941c-660460e60916&quot; alt=&quot;Input Sources&quot; /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The default shortcut for &lt;strong&gt;“Select the previous input source”&lt;/strong&gt; (&lt;em&gt;Control + Space&lt;/em&gt;) has a delay.&lt;/li&gt;
&lt;li&gt;The shortcut for &lt;strong&gt;“Select next source in Input menu”&lt;/strong&gt; (&lt;em&gt;Control + Option + Space&lt;/em&gt;) does &lt;em&gt;not&lt;/em&gt; have a delay.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For whatever reason, Apple made the slower one the default. The fix?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Just swap the shortcuts.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now, the &lt;em&gt;Control + Space&lt;/em&gt; shortcut switches input languages instantly,
and the &lt;em&gt;Control + Option + Space&lt;/em&gt; shortcut has the delay (who cares?).&lt;/p&gt;
&lt;h2 id=&quot;but-why&quot;&gt;But why?&lt;/h2&gt;
&lt;p&gt;I still have questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Why does the “previous” shortcut have a delay while the “next” one doesn’t?&lt;/li&gt;
&lt;li&gt;Why isn’t the faster shortcut the default?&lt;/li&gt;
&lt;li&gt;Is this a bug, a design choice, or just legacy behavior?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you know the answer, I’d love to hear it.&lt;/p&gt;
&lt;h2 id=&quot;for-globe-globe-with-meridians-icon-lovers&quot;&gt;For Globe (🌐) icon lovers&lt;/h2&gt;
&lt;p&gt;In case you like are using Apple&#39;s keyboard with the Globe icon,
you may also experience a delay when switching input languages.
For you I found another hint:
In &lt;em&gt;System Preferences → Keyboard → Shortcuts → Mission Control&lt;/em&gt; you can disable the shortcut for “Quick Note” (🌐Q)
which can cause the delay if you just want to switch the input language.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://github.com/user-attachments/assets/c36fd69b-e05f-473b-93b5-75c8daf6f0a4&quot; alt=&quot;Mission Control&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Another example of some creativity ruining the user experience.&lt;/p&gt;
&lt;p&gt;Keep calm and typing fast!&lt;/p&gt;
</description>
      </item>
      <item>
          <title>Disable `auto_now` and `auto_now_add` in Django migrations</title>
          <pubDate>Fri, 27 Sep 2024 00:00:00 +0000</pubDate>
          <author>Rust Saiargaliev</author>
          <link>https://amureki.me/notes/2024-09-27-django-disable-auto-now/</link>
          <guid>https://amureki.me/notes/2024-09-27-django-disable-auto-now/</guid>
          <description xml:base="https://amureki.me/notes/2024-09-27-django-disable-auto-now/">&lt;p&gt;Django&#39;s &lt;code&gt;DateField&lt;/code&gt; and &lt;code&gt;DateTimeField&lt;/code&gt; fields have two options that can be set to automatically set the field to the current date and time when a new record is created or updated:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;auto_now&lt;/code&gt;: Automatically sets the field to the current date and time every time the record is saved.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;auto_now_add&lt;/code&gt;: Automatically sets the field to the current date and time when the record is first created.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A common use case for these options is setting &lt;code&gt;created_at&lt;/code&gt; and &lt;code&gt;updated_at&lt;/code&gt; fields in a model:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;python&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;from&lt;/span&gt;&lt;span&gt; django.db&lt;/span&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt; import&lt;/span&gt;&lt;span&gt; models&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #E5C07B;&quot;&gt; Article&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #E5C07B;&quot;&gt;models&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #E5C07B;&quot;&gt;Model&lt;/span&gt;&lt;span&gt;):&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    title&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span&gt; models.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;CharField&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #E06C75;font-style: italic;&quot;&gt;max_length&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt;255&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    created_at&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span&gt; models.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;DateTimeField&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #E06C75;font-style: italic;&quot;&gt;auto_now_add&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt;True&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    updated_at&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span&gt; models.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;DateTimeField&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #E06C75;font-style: italic;&quot;&gt;auto_now&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt;True&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;However, if you want to migrate some data you might stumble into a problem.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;python&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;from&lt;/span&gt;&lt;span&gt; django.db&lt;/span&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt; import&lt;/span&gt;&lt;span&gt; migrations, models&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;def&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt; create_old_article&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #D19A66;font-style: italic;&quot;&gt;apps&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: #D19A66;font-style: italic;&quot;&gt; schema_editor&lt;/span&gt;&lt;span&gt;):&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    Article&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span&gt; apps.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;get_model&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;#39;blog&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;#39;Article&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    old_article&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;        &amp;#39;title&amp;#39;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;#39;My old article&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;        &amp;#39;created_at&amp;#39;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;#39;2020-01-01 12:00:00&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;        &amp;#39;updated_at&amp;#39;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;#39;2024-01-01 12:00:00&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    Article.objects.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;create&lt;/span&gt;&lt;span&gt;(**old_article)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #E5C07B;&quot;&gt; Migration&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #E5C07B;&quot;&gt;migrations&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span style=&quot;color: #E5C07B;&quot;&gt;Migration&lt;/span&gt;&lt;span&gt;):&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      dependencies&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;          (&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;#39;blog&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;#39;0001_initial&amp;#39;&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      operations&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;          migrations.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;RunPython&lt;/span&gt;&lt;span&gt;(create_old_article),&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;      ]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Running this migration would set &lt;code&gt;created_at&lt;/code&gt; and &lt;code&gt;updated_at&lt;/code&gt; to the current date and time, not the specified historical dates.&lt;/p&gt;
&lt;p&gt;To preserve the historical dates during migration, you can temporarily disable the &lt;code&gt;auto_now&lt;/code&gt; and &lt;code&gt;auto_now_add&lt;/code&gt; behavior:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;python&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt;...&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;def&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt; create_old_article&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #D19A66;font-style: italic;&quot;&gt;apps&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: #D19A66;font-style: italic;&quot;&gt; schema_editor&lt;/span&gt;&lt;span&gt;):&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    Article&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span&gt; apps.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;get_model&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;#39;blog&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;#39;Article&amp;#39;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    old_article&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;        &amp;#39;title&amp;#39;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;#39;My old article&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;        &amp;#39;created_at&amp;#39;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;#39;2020-01-01 12:00:00&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;        &amp;#39;updated_at&amp;#39;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;#39;2024-01-01 12:00:00&amp;#39;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #7F848E;font-style: italic;&quot;&gt;    # Disable the auto_now and auto_now_add behavior&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    Article._meta.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;get_field&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;#39;created_at&amp;#39;&lt;/span&gt;&lt;span&gt;).auto_now_add&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; False&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    Article._meta.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;get_field&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;#39;updated_at&amp;#39;&lt;/span&gt;&lt;span&gt;).auto_now&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; False&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    Article.objects.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;create&lt;/span&gt;&lt;span&gt;(**old_article)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #7F848E;font-style: italic;&quot;&gt;    # Re-enable the `auto_now` and `auto_now_add` behavior &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #7F848E;font-style: italic;&quot;&gt;    #  in case there are other operations within the migration&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    Article._meta.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;get_field&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;#39;created_at&amp;#39;&lt;/span&gt;&lt;span&gt;).auto_now_add&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; True&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    Article._meta.&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;get_field&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;#39;updated_at&amp;#39;&lt;/span&gt;&lt;span&gt;).auto_now&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; True&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt;...&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This approach disables the automated logic for the duration of the migration, allowing the fields to be set to the specified values.&lt;/p&gt;
</description>
      </item>
      <item>
          <title>Heroku CLI aliases</title>
          <pubDate>Sun, 17 Mar 2019 00:00:00 +0000</pubDate>
          <author>Rust Saiargaliev</author>
          <link>https://amureki.me/notes/2019-03-15-heroku-aliases/</link>
          <guid>https://amureki.me/notes/2019-03-15-heroku-aliases/</guid>
          <description xml:base="https://amureki.me/notes/2019-03-15-heroku-aliases/">&lt;p&gt;Heroku has nice and powerful &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://devcenter.heroku.com/articles/heroku-cli&quot;&gt;CLI&lt;/a&gt;, which I am using quite heavily for company and personal stuff almost every day.&lt;/p&gt;
&lt;p&gt;Very often I need to log in to one of my apps or to the addons, but default commands are very verbose, so here are my shorter aliases:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #7F848E;font-style: italic;&quot;&gt;# Heroku&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; heroku-login&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;heroku login&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; heroku-logs&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;heroku logs -t&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; heroku-bash&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;heroku run bash&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #7F848E;font-style: italic;&quot;&gt;## Addons&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; heroku-cloudamqp&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;heroku addons:open cloudamqp&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; heroku-newrelic&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;heroku addons:open newrelic&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; heroku-scheduler&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;heroku addons:open scheduler&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; heroku-librato&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;heroku addons:open librato&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; heroku-logentries&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;heroku addons:open logentries&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; heroku-connect&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;heroku addons:open herokuconnect&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #7F848E;font-style: italic;&quot;&gt;## Django-related&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; heroku-shell-plus&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;heroku run python manage.py shell_plus&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #C678DD;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: #E06C75;&quot;&gt; heroku-dbshell&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt;&amp;quot;heroku run python manage.py dbshell&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description>
      </item>
      <item>
          <title>Revoke third-party access</title>
          <pubDate>Thu, 10 Aug 2017 00:00:00 +0000</pubDate>
          <author>Rust Saiargaliev</author>
          <link>https://amureki.me/notes/2017-08-10-revokeaccess/</link>
          <guid>https://amureki.me/notes/2017-08-10-revokeaccess/</guid>
          <description xml:base="https://amureki.me/notes/2017-08-10-revokeaccess/">&lt;p&gt;Somewhere in a Twitter, I found a couple of links to social networks settings
and advice to check the list of third-party services, which have access to your account.
I started going through my social accounts and cleaning there.&lt;/p&gt;
&lt;p&gt;That was a horrible mess, sometimes I did not recognize what is this service
is used for and why I gave it permissions.&lt;/p&gt;
&lt;p&gt;So, I&#39;ve just decided to keep a list of links to social accounts settings,
so I can revisit it sometimes and clean up again.&lt;/p&gt;
&lt;p&gt;Here is a link to it: &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://amureki.me/revokeaccess/&quot;&gt;https://amureki.me/revokeaccess/&lt;/a&gt;
(&lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://github.com/amureki/revokeaccess&quot;&gt;GitHub&lt;/a&gt;)&lt;/p&gt;
</description>
      </item>
      <item>
          <title>How GitHub uses GitHub to develop and deploy GitHub</title>
          <pubDate>Fri, 21 Oct 2016 00:00:00 +0000</pubDate>
          <author>Rust Saiargaliev</author>
          <link>https://amureki.me/notes/2016-10-21-how-github-uses-github-to-deploy-github/</link>
          <guid>https://amureki.me/notes/2016-10-21-how-github-uses-github-to-deploy-github/</guid>
          <description xml:base="https://amureki.me/notes/2016-10-21-how-github-uses-github-to-deploy-github/">&lt;p&gt;So, the talk was from Johannes Nicolai from Enterprise Solutions Engineering team. There were almost no marketing stuff, but about their inner structure and flow.&lt;/p&gt;
&lt;p&gt;Company-wise they have around 600 people, half of them working remotely from everywhere, half of them based in San Francisco. And they are operating the 51st popular website on the internet.&lt;/p&gt;
&lt;p&gt;They are doing everything over GitHub, like literally everything. Marketing, finance, legal and agreements teams all using only GitHub and markdown for issues, documents reviewing and stuff. They all against email - want to be everything documented on GitHub, so if in case it could be pointed to right issue or discussion.&lt;/p&gt;
&lt;p&gt;An interesting thing - even for documents and non-code repositories, they have different CI checks and linters, for example for the blog they have text errors, buzzwords, passive-aggressive style checks (around 10-16 different linters only for text).&lt;/p&gt;
&lt;p&gt;They are doing around 500 deploys per week. All devops stuff - deployments, metrics, changing some devops configurations, increasing limits they are doing via hubot in Slack. If something is going wrong, for example, DDoS, online team is talking about it and doing some performance checks and fixes right in Slack commands - that helps to see in the future what happened and what was done to check it and to fix it (also helps other people to learn how to be in that kind of situations).&lt;/p&gt;
&lt;p&gt;GitHub&#39;s engineers have deployment timeline - you can see if there were increased errors rate or some spikes, you see after which PRs that happened, who made it, who fixed it.&lt;/p&gt;
&lt;p&gt;If you want to deploy your feature (from feature-branch only), you are queuing up for it in Slack, hubot will notify when you can deploy a feature, notify where you can deploy it and here you go. If you’re ready for production, first your branch goes for canary-production (for a small part of the servers), then after 5-15 minutes, it goes for all servers. Only after that, your branch is merged to main. :)&lt;/p&gt;
&lt;p&gt;Also, they are actively using feature-flags, so deployed features they can turn on for themselves/certain teams/some repositories/part of end users.&lt;/p&gt;
&lt;h4 id=&quot;some-useful-links&quot;&gt;Some useful links:&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://www.youtube.com/watch?v=YIpNpptGX6Q&quot;&gt;FutureStack15: Changing the Laws of Engineering with Pull Requests (talk from New Relic)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://hubot.github.com/&quot;&gt;Hubot - chatops bot used in GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://githubengineering.com/&quot;&gt;GitHub Engineering Blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://github.com/jnunemaker/flipper&quot;&gt;Package for feature-flags&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
      </item>
      <item>
          <title>Количество строк кода в Django-проекте</title>
          <pubDate>Tue, 20 Jan 2015 00:00:00 +0000</pubDate>
          <author>Rust Saiargaliev</author>
          <link>https://amureki.me/notes/2015-01-20-django-project-loc/</link>
          <guid>https://amureki.me/notes/2015-01-20-django-project-loc/</guid>
          <description xml:base="https://amureki.me/notes/2015-01-20-django-project-loc/">&lt;p&gt;Составил недавно небольшую команду для подсчета количества строчек полезного (более или менее) кода в своих Django-проектах.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #ABB2BF; background-color: #282C34;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt;find&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; .&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; -name&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;quot;*.py&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; -type&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; f !&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; -path&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; &amp;#39;*/migrations/*&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; -exec&lt;/span&gt;&lt;span style=&quot;color: #98C379;&quot;&gt; grep . {}&lt;/span&gt;&lt;span style=&quot;color: #56B6C2;&quot;&gt; \;&lt;/span&gt;&lt;span&gt; |&lt;/span&gt;&lt;span style=&quot;color: #61AFEF;&quot;&gt; wc&lt;/span&gt;&lt;span style=&quot;color: #D19A66;&quot;&gt; -l&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Коротко про команду: берем все файлы с расширением &lt;code&gt;.py&lt;/code&gt;, исключаем папки миграций, после чего уже внутри самих файлов считаем все не пустые строчки.&lt;/p&gt;
&lt;p&gt;Update: Нашел &lt;a rel=&quot;noopener noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://github.com/AlDanial/cloc&quot;&gt;cloc&lt;/a&gt; - отличная утилитка для подробного подсчета количества строчек в проектах для разных языков программирования.&lt;/p&gt;
</description>
      </item>
      <item>
          <title>Регистрация при восстановлении пароля</title>
          <pubDate>Sat, 17 Jan 2015 00:00:00 +0000</pubDate>
          <author>Rust Saiargaliev</author>
          <link>https://amureki.me/notes/2015-01-17-signup-on-password-recovery/</link>
          <guid>https://amureki.me/notes/2015-01-17-signup-on-password-recovery/</guid>
          <description xml:base="https://amureki.me/notes/2015-01-17-signup-on-password-recovery/">&lt;p&gt;На одном из сервисов недавно возникла ситуация: в поддержку пришло письмо, с жалобой пользователя, которому не приходит письмо для восстановления пароля.&lt;/p&gt;
&lt;p&gt;После короткой проверки выяснил, что такого пользователя просто нет в системе.&lt;/p&gt;
&lt;p&gt;И в голову пришла мысль, а почему бы не регистрировать пользователей, которые по какой-либо причине считают что уже имеют аккаунт на сайте? Их цель - получить свой пароль и зайти на сервис, так давайте позволим им это.&lt;/p&gt;
</description>
      </item>
    </channel>
</rss>
