<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Aos Dabbagh</title>
    <link>/</link>
    <description>Recent content on Aos Dabbagh</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 01 Aug 2025 09:53:15 -0400</lastBuildDate><atom:link href="/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Building an Elixir App Around a Zigbee Button</title>
      <link>/2025/08/01/building-an-elixir-app-around-a-zigbee-button/</link>
      <pubDate>Fri, 01 Aug 2025 09:53:15 -0400</pubDate>
      
      <guid>/2025/08/01/building-an-elixir-app-around-a-zigbee-button/</guid>
      <description>I have an IoT button (SONOFF wireless push button) that when pressed I want to save the value in a database for later tracking. In this post - I document my journey yak-shaving my way to get exactly what I&amp;rsquo;m looking for.
TL;DR Zigbee While I&amp;rsquo;ve previously set up a wifi-based smart plug, I have no experience with these buttons. This particular button uses the Zigbee protocol for communication. I also have a Zigbee gateway purchased along with the button (ConBee II).</description>
    </item>
    
    <item>
      <title>Building a Homelab - Part 3: Nix</title>
      <link>/2024/12/16/building-a-homelab-part-3-nix/</link>
      <pubDate>Mon, 16 Dec 2024 11:14:56 -0500</pubDate>
      
      <guid>/2024/12/16/building-a-homelab-part-3-nix/</guid>
      <description>In the previous post, we went over the networking setup. To summarize, it contains 3 VLANs: one to manage the network, one for our homelab, and one for guest/IoT devices. The hosts are connected to a switch, which in turn is connected to a router speaks to the WAN. I mentioned in passing last time that I would be using Proxmox. The time has come and gone for that, and we&amp;rsquo;re now fully on Nix.</description>
    </item>
    
    <item>
      <title>Embedding Scripts in Nix Flakes</title>
      <link>/2024/08/16/embedding-scripts-in-nix-flakes/</link>
      <pubDate>Fri, 16 Aug 2024 11:50:47 -0400</pubDate>
      
      <guid>/2024/08/16/embedding-scripts-in-nix-flakes/</guid>
      <description>A somewhat common theme I&amp;rsquo;ve noticed when working on various projects is the need for &amp;ldquo;one-off&amp;rdquo; re-usable scripts, these are typically more than a few lines of code.
For example, in my Advent of Code repository I have a small Python script that pulls the input down given a year and day. But rather than wanting to manage this script explicitly, I wanted to encapsulate it as part of my flake so I can call it directly via nix.</description>
    </item>
    
    <item>
      <title>How I&#39;m Learning Elixir</title>
      <link>/2024/06/19/how-im-learning-elixir/</link>
      <pubDate>Wed, 19 Jun 2024 13:26:53 -0400</pubDate>
      
      <guid>/2024/06/19/how-im-learning-elixir/</guid>
      <description>Elixir is a functional language that runs on the Erlang VM. I&amp;rsquo;ve always been curious about it as I have a soft spot for functional languages. The primary motivating driver is to learn to use the Phoenix web framework. I enjoy building web apps, and have done so in Node.js, Ruby/Rails, Python, Go, and most recently, Rust. However, none of these languages has felt enjoyable for building web applications.
I had an idea to build another app and wanted to test out Elixir/Phoenix.</description>
    </item>
    
    <item>
      <title>Better Utilization of Terraform Resource Keys</title>
      <link>/2023/02/25/better-utilization-of-terraform-resource-keys/</link>
      <pubDate>Sat, 25 Feb 2023 16:19:04 -0500</pubDate>
      
      <guid>/2023/02/25/better-utilization-of-terraform-resource-keys/</guid>
      <description>When managing multiple dissimilar resources in Terraform, best practices dictate that you use the for_each meta-argument. Furthermore, when needing to convert a list to a set or map for chaining, the advice given is usually of the form:
for_each = { for k, v in aws_subnet.all : k =&amp;gt; v } This will work but unfortunately it becomes unwieldy the more you need to rely on these generated resources.
A motivating example In one of Adrian Cantrill&amp;rsquo;s excellent courses on AWS, we are tasked with setting up a multi-tier subnet design:</description>
    </item>
    
    <item>
      <title>Using `nix-shell` for Embedded Rust Development</title>
      <link>/2022/02/12/using-nix-shell-for-embedded-rust-development/</link>
      <pubDate>Sat, 12 Feb 2022 12:07:03 -0500</pubDate>
      
      <guid>/2022/02/12/using-nix-shell-for-embedded-rust-development/</guid>
      <description>Over the last year, I&amp;rsquo;ve been learning Rust and diving into the ecosystem. One of my goals has been to explore the Rust embedded development space. With that, I recently acquired a micro:bit board with the intention of following the Rust Discovery Book. And while I have experience with embedded at my current job, especially with the STM32 series of boards, it&amp;rsquo;s all in C/C++.
One of the hardest parts of embedded I&amp;rsquo;ve found coming from a background in web is getting a development environment up and running, especially one that allows for quick iteration.</description>
    </item>
    
    <item>
      <title>DNS Resolution for Wireguard with `systemd-resolved`</title>
      <link>/2021/09/04/dns-resolution-for-wireguard-with-systemd-resolved/</link>
      <pubDate>Sat, 04 Sep 2021 11:51:31 -0400</pubDate>
      
      <guid>/2021/09/04/dns-resolution-for-wireguard-with-systemd-resolved/</guid>
      <description>TL;DR [Interface] # ... PostUp = resolvectl dns %i 10.34.3.1; resolvectl domain %i &amp;#34;~hello&amp;#34; PreDown = resolvectl revert %i Introduction I&amp;rsquo;ve written previously about setting up a DNS server to go along with my Wireguard VPN. Now, accessing these services behind my VPN becomes convenient, and all it takes is one command for me to get up and running. However, this requires using a Linux distribution with systemd-resolved as the local DNS resolver.</description>
    </item>
    
    <item>
      <title>Building a Homelab - Part 2: Networking</title>
      <link>/2021/05/23/building-a-homelab-part-2-networking/</link>
      <pubDate>Sun, 23 May 2021 15:10:48 -0400</pubDate>
      
      <guid>/2021/05/23/building-a-homelab-part-2-networking/</guid>
      <description>In the previous post, we introduced the beginnings of the makings of a homelab and the hardware I&amp;rsquo;ll been using for it. In this post, I will be going over the networking I&amp;rsquo;ve setup to have all pieces talking to each other in a safe and secure way. This networking scheme is simple, and will most likely evolve as I add more services on my hypervisors. Here&amp;rsquo;s what it looks like:</description>
    </item>
    
    <item>
      <title>Building a Homelab - Part 1: Hardware</title>
      <link>/2021/04/19/building-a-homelab-part-1-hardware/</link>
      <pubDate>Mon, 19 Apr 2021 11:40:58 -0400</pubDate>
      
      <guid>/2021/04/19/building-a-homelab-part-1-hardware/</guid>
      <description>At its core, a homelab is nothing more than a set of computers networked together to provide an environment for experimentation. I&amp;rsquo;m a big fan of self-hosting services, and I&amp;rsquo;ve written previously about this. But I wanted to take this a step further and set up a compute cluster. I&amp;rsquo;ve often wondered about how the &amp;ldquo;cloud&amp;rdquo; works, and having some hardware will allow me to experiment with building my own. This will be a series of posts documenting my building of a homelab.</description>
    </item>
    
    <item>
      <title>Under the Hood of a Simple DNS Server</title>
      <link>/2020/08/23/under-the-hood-of-a-simple-dns-server/</link>
      <pubDate>Sun, 23 Aug 2020 19:31:33 -0400</pubDate>
      
      <guid>/2020/08/23/under-the-hood-of-a-simple-dns-server/</guid>
      <description>Introduction As part of bringing up my personal infrastructure, I wanted a way to connect all my various boxes together and make them available to me from anywhere with an internet connection. The first step was to put up a VPN. For that, I use Wireguard. I ended up creating a simple management interface that allows me to link peers together and be able to access them via virtual IP addresses, no matter where they are.</description>
    </item>
    
    <item>
      <title>Things I Learned in 2019</title>
      <link>/2019/12/27/things-i-learned-in-2019/</link>
      <pubDate>Fri, 27 Dec 2019 01:14:25 -0500</pubDate>
      
      <guid>/2019/12/27/things-i-learned-in-2019/</guid>
      <description>In some ways, 2019 has been a pivotal year in my growth. I&amp;rsquo;ve started to gain a better understanding of my interests, strengths, and weaknesses. Originally, the title of this post was &amp;ldquo;2019 Retrospective&amp;rdquo;, but this topic turned out to be too broad. Therefore, I decided to narrow it down to what I have learned in 2019. This year for me felt more about breadth than depth of knowledge. But thinking back on it now, this &amp;ldquo;breadth&amp;rdquo; was in more focused areas.</description>
    </item>
    
    <item>
      <title>Raspberry Pi as Home Server and Reverse Proxy</title>
      <link>/2019/07/26/raspberry-pi-as-home-server-and-reverse-proxy/</link>
      <pubDate>Fri, 26 Jul 2019 00:15:00 -0400</pubDate>
      
      <guid>/2019/07/26/raspberry-pi-as-home-server-and-reverse-proxy/</guid>
      <description>Introduction Raspberry Pis are a great, low-risk introduction into Linux server and system administration. If you end up bricking it, you can just restart the whole process.
In this tutorial, we will go over how to turn the Pi into a home server that can be accessed via the internet, and how to use it as a reverse proxy for other services on the Pi and local network. This includes:</description>
    </item>
    
    <item>
      <title>A Simple Dynamic Programming Algorithm</title>
      <link>/2018/12/26/a-simple-dynamic-programming-algorithm/</link>
      <pubDate>Wed, 26 Dec 2018 18:25:56 -0500</pubDate>
      
      <guid>/2018/12/26/a-simple-dynamic-programming-algorithm/</guid>
      <description>Introduction For the past month or so I&amp;rsquo;ve spent time digging into dynamic programming (hereby abbreviated to DP). There many great resources introducing the history and concepts of DP. However, what I wanted was the simplest example/demonstration of how DP works. Most examples were too convoluted for someone just learning it such as myself.
Luckily, while working through Advent of Code, I ran into a puzzle that led me down a rabbit hole to find the simplest example of DP.</description>
    </item>
    
    <item>
      <title>Notes on The Pragmatic Programmer</title>
      <link>/2018/03/30/notes-on-the-pragmatic-programmer/</link>
      <pubDate>Fri, 30 Mar 2018 13:00:00 -0400</pubDate>
      
      <guid>/2018/03/30/notes-on-the-pragmatic-programmer/</guid>
      <description>When I first started programming seriously, I had no reference or guide for learning the soft and hard skills of software engineering. I didn&amp;rsquo;t have a computer science degree (and I didn&amp;rsquo;t plan on going back to college), so I felt like I missed a certain aspect of this education. I went looking all over the internet and there were quite a few book recommendations, but one that was almost always atop every list was The Pragmatic Programmer.</description>
    </item>
    
    <item>
      <title>Understanding Dijkstra&#39;s Algorithm</title>
      <link>/2018/02/24/understanding-dijkstras-algorithm/</link>
      <pubDate>Sat, 24 Feb 2018 01:02:57 -0500</pubDate>
      
      <guid>/2018/02/24/understanding-dijkstras-algorithm/</guid>
      <description>Introduction When I first started learning algorithms and data structures, every resource I came across would mention Dijkstra&amp;rsquo;s algorithm in a sort of mystical, this-is-beyond-your-lowly-understanding manner. I disagree with that approach (in fact, I disagree with that approach for just about everything). Now that I&amp;rsquo;ve actually invested some time into learning it, it really isn&amp;rsquo;t as frightful as I was told to believe. I will (to the best of my ability) elucidate Dijkstra&amp;rsquo;s algorithm here.</description>
    </item>
    
    <item>
      <title>Reflection on Starting a Daily Log</title>
      <link>/2018/01/26/reflection-on-starting-a-daily-log/</link>
      <pubDate>Fri, 26 Jan 2018 10:25:16 -0600</pubDate>
      
      <guid>/2018/01/26/reflection-on-starting-a-daily-log/</guid>
      <description>Inspired by this fantastic article by fellow RC alum Peter Lyons, I&amp;rsquo;ve started a log to keep small notes about anything work-related. The idea being that it becomes a central repository for all the little tasks/notes that I&amp;rsquo;d normally write down on a daily basis.
Reducing barrier to entry When I first started the log, it was a dotfile kept on my root directory that I would open in a separate buffer using :e ~/.</description>
    </item>
    
    <item>
      <title>Computing Strongly Connected Components</title>
      <link>/2017/12/09/computing-strongly-connected-components/</link>
      <pubDate>Sat, 09 Dec 2017 16:20:45 -0500</pubDate>
      
      <guid>/2017/12/09/computing-strongly-connected-components/</guid>
      <description>Introduction I am currently working through Stanford&amp;rsquo;s algorithms course as part of &amp;ldquo;learning my fundamentals&amp;rdquo;, and one difficult and interesting topic that I&amp;rsquo;ve encountered is computing strongly connected components of a directed acyclic graph.
A graph is said to be strongly connected if every vertex is reachable from every other vertex. In the image below, you will notice that the left graph is strongly connected, but the right one is not &amp;ndash; vertex H acts as a sink for every vertex with a connection and it is not possible to reach any other vertex from here.</description>
    </item>
    
    <item>
      <title>Web Scraping With Puppeteer</title>
      <link>/2017/12/02/web-scraping-with-puppeteer/</link>
      <pubDate>Sat, 02 Dec 2017 22:18:31 -0500</pubDate>
      
      <guid>/2017/12/02/web-scraping-with-puppeteer/</guid>
      <description>The Google Chrome team released a web scraping tool called Puppeteer in the not-so-distant past and I&amp;rsquo;ve been keening to play with it. I wrote a small script that uses it. If you&amp;rsquo;d like to follow the post with the source code, it is located here.
What exactly is Puppeteer? Essentially it&amp;rsquo;s a web browser (Chromium) controlled by an API library. You write some code and that will control a browser to do things for you.</description>
    </item>
    
    <item>
      <title>Practical Guide to Setting Up a Hugo Blog</title>
      <link>/2017/11/23/practical-guide-to-setting-up-a-hugo-blog/</link>
      <pubDate>Thu, 23 Nov 2017 16:58:03 -0500</pubDate>
      
      <guid>/2017/11/23/practical-guide-to-setting-up-a-hugo-blog/</guid>
      <description>For the last few days, I have been working on setting up this blog site. Keep in mind this is my first attempt at such a thing. I was originally interested a few months ago but kept putting it off due to either laziness or not finding a theme that interested me. I&amp;rsquo;ve documented the process in the hopes that others may find it helpful. This guide will cover site creation to hosting on Github Pages.</description>
    </item>
    
    <item>
      <title>About</title>
      <link>/about/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/about/</guid>
      <description>Backstory: I graduated medical school in January 2017. And while I enjoyed those 4 years, and developed a strong love for medicine, I ultimately decided not to practice.
After graduating, I picked up programming again full-time and had the realization that this was what I wanted to do after all. I dabbled with code in my formative years, but never had the time to pursue it seriously. I attended the Recurse Center in Summer 2017 and that was perhaps one of the best decisions I&amp;rsquo;ve made.</description>
    </item>
    
  </channel>
</rss>
