<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on Serge Gatezh</title><link>https://staging-www.gatezh.com/posts/</link><description>Recent content in Posts on Serge Gatezh</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://staging-www.gatezh.com/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker Desktop Disk Full on macOS: The 1 TB Default and the Dev Containers Cache</title><link>https://staging-www.gatezh.com/posts/docker-desktop-disk-full-macos/</link><pubDate>Wed, 09 Sep 2026 18:59:09 -0600</pubDate><guid>https://staging-www.gatezh.com/posts/docker-desktop-disk-full-macos/</guid><description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Docker Desktop ships with a &lt;strong&gt;1 TB&lt;/strong&gt; virtual disk limit by default. On a 460 GB Mac that means Docker&amp;rsquo;s real limit is your entire machine, so a full disk doesn&amp;rsquo;t produce a Docker error — it kills the VM. Set a real limit (&lt;a href="https://docs.docker.com/desktop/settings-and-maintenance/settings/" target="_blank" rel="noopener noreferrer"&gt;Settings → Resources → Advanced → Disk usage limit&lt;/a&gt;). If you just want commands, jump to the &lt;strong&gt;&lt;a href="#quick-reference"&gt;Quick Reference&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This is the third time macOS has warned me about low disk space and the answer turned out to be Docker. The first two times I pruned some images, felt clever, and moved on. This time Docker didn&amp;rsquo;t give me the chance — it died first.&lt;/p&gt;</description></item><item><title>Protecting SSH Keys with macOS Secure Enclave (Native Approach)</title><link>https://staging-www.gatezh.com/posts/macos-secure-enclave-ssh-keys/</link><pubDate>Thu, 12 Feb 2026 22:41:55 +0000</pubDate><guid>https://staging-www.gatezh.com/posts/macos-secure-enclave-ssh-keys/</guid><description>I&amp;rsquo;ve been paranoid about my SSH keys for a while now. They just sit there in &lt;code&gt;~/.ssh/&lt;/code&gt;, protected by nothing but file permissions.</description></item><item><title>Publishing Multi-Platform Docker Images to GitHub Container Registry</title><link>https://staging-www.gatezh.com/posts/publishing-multi-platform-docker-images-to-github-container-registry/</link><pubDate>Fri, 05 Dec 2025 20:41:18 +0000</pubDate><guid>https://staging-www.gatezh.com/posts/publishing-multi-platform-docker-images-to-github-container-registry/</guid><description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; If you&amp;rsquo;re just here for the commands, jump to the &lt;strong&gt;&lt;a href="#quick-reference"&gt;Quick Reference&lt;/a&gt;&lt;/strong&gt; at the bottom.&lt;/p&gt;
&lt;h2 id="why-i-needed-this"&gt;Why I Needed This&lt;/h2&gt;
&lt;p&gt;I&amp;rsquo;ve been working with devcontainers for my projects, and every time I start a new project, I end up waiting for some time for Docker to download and install Hugo, Bun, and other dependencies. It wasn&amp;rsquo;t too long of a wait (maybe 30-40 seconds), but it&amp;rsquo;s annoying enough to start thinking about doing something about it.&lt;/p&gt;</description></item><item><title>Add Remark42 comments to Hugo website</title><link>https://staging-www.gatezh.com/posts/add-remark42-comments-to-hugo-website/</link><pubDate>Sat, 22 Jun 2024 21:00:06 -0600</pubDate><guid>https://staging-www.gatezh.com/posts/add-remark42-comments-to-hugo-website/</guid><description>Disqus wasn’t cutting it for me anymore, so I explored privacy-first alternatives and landed on Remark42. This post covers how I set it up from scratch on a cheap Vultr VM, including Docker installation, firewall rules, and GitHub authentication integration—everything you need to enable a lightweight, self-hosted commenting system on your Hugo site.</description></item><item><title>How to Redirect www to Root Domain on Cloudflare Pages</title><link>https://staging-www.gatezh.com/posts/how-to-redirect-www-to-root-domain-on-cloudflare-pages/</link><pubDate>Sat, 15 Jun 2024 16:35:02 -0600</pubDate><guid>https://staging-www.gatezh.com/posts/how-to-redirect-www-to-root-domain-on-cloudflare-pages/</guid><description>&lt;p&gt;&lt;strong&gt;Prerequisites:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Your website is hosted on Cloudflare Pages.&lt;/li&gt;
&lt;li&gt;Your website is not accessible when there is &lt;code&gt;www&lt;/code&gt; in front of your apex domain.&lt;/li&gt;
&lt;li&gt;You kind of know what you&amp;rsquo;re doing.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Recently, I was talking to people and at some point, I mentioned having my website. What stumbled me was that first, some people are still using &lt;code&gt;www&lt;/code&gt; when typing the name of the website. And second, it turns out my website didn&amp;rsquo;t work with &lt;code&gt;www&lt;/code&gt; in front of it. I was pretty sure it was set up a long time ago, but apparently, when I was moving my website and DNS records to Cloudflare, something went wrong.&lt;/p&gt;</description></item><item><title>GraphQL schema: use it in a sentence</title><link>https://staging-www.gatezh.com/posts/graphql-schema-use-it-in-a-sentence/</link><pubDate>Mon, 22 Jun 2020 19:53:28 -0400</pubDate><guid>https://staging-www.gatezh.com/posts/graphql-schema-use-it-in-a-sentence/</guid><description>&lt;h2 id="tldr"&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Bad idea&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-js" data-lang="js"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#a6e22e"&gt;query&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;getCompanyInfo&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;$id&lt;/span&gt;&lt;span style="color:#f92672"&gt;:&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;Int&lt;/span&gt;&lt;span style="color:#f92672"&gt;!&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;company&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;id&lt;/span&gt;&lt;span style="color:#f92672"&gt;:&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;$id&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;companyId&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;companyName&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;companyConditionValue&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;companyConditionComment&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Good idea&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-js" data-lang="js"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#a6e22e"&gt;query&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;getCompanyInfo&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;$id&lt;/span&gt;&lt;span style="color:#f92672"&gt;:&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;Int&lt;/span&gt;&lt;span style="color:#f92672"&gt;!&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;company&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;id&lt;/span&gt;&lt;span style="color:#f92672"&gt;:&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;$id&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;id&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;name&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;specialWarning&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;triggered&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;reason&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;There are a few very simple rules to follow to create an easy to read GraphQL schema. Easy reading schema helps you to reduce the number of visits to your documentation. Especially it helps if your GraphQL schema is not accompanied by any documentation.&lt;/p&gt;</description></item><item><title>Using Anki to study programming</title><link>https://staging-www.gatezh.com/posts/using-anki-to-study-programming/</link><pubDate>Sun, 16 Jul 2017 20:04:19 -0400</pubDate><guid>https://staging-www.gatezh.com/posts/using-anki-to-study-programming/</guid><description>&lt;h2 id="why-it-works"&gt;Why it works&lt;/h2&gt;
&lt;p&gt;Anki is based on &lt;a href="https://en.wikipedia.org/wiki/Spaced_repetition" target="_blank" rel="noopener noreferrer"&gt;spaced repetition&lt;/a&gt; learning technique.&lt;/p&gt;
&lt;p&gt;I will try to explain it shortly. When you learn something new you have to repeat it to remember it. If you repeat that information too often - you just waste your time. But if you don&amp;rsquo;t repeat it at the right time - you forget it. So the problem here is to figure out &lt;em&gt;the right interval&lt;/em&gt; for repetitions. Anki is the tool to help with that task.&lt;/p&gt;</description></item><item><title>Getting started with Jekyll</title><link>https://staging-www.gatezh.com/posts/getting-started-with-jekyll/</link><pubDate>Tue, 04 Apr 2017 19:54:55 -0400</pubDate><guid>https://staging-www.gatezh.com/posts/getting-started-with-jekyll/</guid><description>&lt;h2 id="install-ruby"&gt;Install ruby&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;Here I assume that you have &lt;code&gt;brew&lt;/code&gt; already installed on your Mac machine. &lt;a href="https://brew.sh" target="_blank" rel="noopener noreferrer"&gt;Install it&lt;/a&gt; first if you don&amp;rsquo;t have it.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a href="https://github.com/rbenv/rbenv/issues/938#issuecomment-285342541" target="_blank" rel="noopener noreferrer"&gt;I had to do the following&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;sudo xcode-select --install&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Install rbenv with &lt;code&gt;brew install rbenv&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add &lt;code&gt;eval &amp;quot;$(rbenv init -)&amp;quot;&lt;/code&gt; to the end of &lt;code&gt;~/.zshrc&lt;/code&gt; or &lt;code&gt;~/.bash_profile&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Install a ruby version &lt;code&gt;rbenv install 2.4.1&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Select a ruby version by rbenv &lt;code&gt;rbenv global 2.4.1&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Open a new terminal window&lt;/li&gt;
&lt;li&gt;Verify that the right gem folder is being used with &lt;code&gt;gem env home&lt;/code&gt; (should report something in your user folder not system wide)&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;If you are on Windows then just &lt;a href="https://www.ruby-lang.org/en/downloads/" target="_blank" rel="noopener noreferrer"&gt;install Ruby 2.1.0 or higher&lt;/a&gt;&lt;sup id="fnref:1"&gt;&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref"&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;</description></item><item><title>Host your personal blog on GitHub Pages</title><link>https://staging-www.gatezh.com/posts/host-your-personal-blog-on-github-pages/</link><pubDate>Tue, 04 Apr 2017 19:53:19 -0400</pubDate><guid>https://staging-www.gatezh.com/posts/host-your-personal-blog-on-github-pages/</guid><description>&lt;p&gt;The initial idea was to write a small post about how to create a Jekyll blog hosted on GitHub. However, when I started to dig deeper and realized how many things I&amp;rsquo;ll have to describe to make it a manual I&amp;rsquo;ve decided to make this index page which will collect all the posts about this topic. I will try to keep it up to date and make changes whenever I figure out more.&lt;/p&gt;</description></item><item><title>How to host Angular application on GitHub Pages</title><link>https://staging-www.gatezh.com/posts/how-to-host-angular-application-on-github-pages/</link><pubDate>Fri, 31 Mar 2017 15:26:55 -0400</pubDate><guid>https://staging-www.gatezh.com/posts/how-to-host-angular-application-on-github-pages/</guid><description>&lt;p&gt;&lt;strong&gt;[Last update 04-04-2017]&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To install the command run the following:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;npm i -g angular-cli-ghpages
&lt;/code&gt;&lt;/pre&gt;&lt;blockquote&gt;
&lt;p&gt;Note: you have to create the &lt;strong&gt;dist&lt;/strong&gt; folder in before (e.g. &lt;code&gt;ng build --prod&lt;/code&gt;)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;ng build --prod --base-href &amp;#34;https://USERNAME.github.io/REPOSITORY/&amp;#34;
ngh
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In case you use a custom domain for one of your repositories (like I do for this blog), you should use &lt;code&gt;http&lt;/code&gt; instead&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;ng build --prod --base-href &amp;#34;http://YOURDOMAIN.com/REPOSITORY/&amp;#34;
ngh
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For more information check &lt;a href="https://github.com/angular-buch/angular-cli-ghpages" target="_blank" rel="noopener noreferrer"&gt;angular-cli-ghpages&lt;/a&gt; GitHub Page.&lt;/p&gt;
&lt;p&gt;There might be a problem with routing. If so check &lt;a href="https://github.com/angular-buch/angular-cli-ghpages/wiki/FAQ#why-is-the-routing-not-working-correctly-on-hard-reload-specific-to-github-pages-only" target="_blank" rel="noopener noreferrer"&gt;this FAQ&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>