<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nate Whistler on Medium]]></title>
        <description><![CDATA[Stories by Nate Whistler on Medium]]></description>
        <link>https://medium.com/@nate_w?source=rss-d399dbe8581f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OOs20eRzT7bB-lTBFIhwOA.png</url>
            <title>Stories by Nate Whistler on Medium</title>
            <link>https://medium.com/@nate_w?source=rss-d399dbe8581f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:22:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nate_w/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What My Alert Backlog Was Hiding]]></title>
            <link>https://medium.com/@nate_w/what-my-alert-backlog-was-hiding-5ad5fb1e0edd?source=rss-d399dbe8581f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ad5fb1e0edd</guid>
            <category><![CDATA[security-alert]]></category>
            <category><![CDATA[soar]]></category>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[tine]]></category>
            <dc:creator><![CDATA[Nate Whistler]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 08:25:34 GMT</pubDate>
            <atom:updated>2026-08-14T08:25:34.062Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>I built an MCP server so Claude could work the Tines Cases generated by our security alerts. Clearing a hundred of them in one sitting surfaced two problems that had gone unnoticed.</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UQ-zZH0CCaMFq00Yt1R6kw.png" /></figure><p>A SaaS connection to our IdP had been locking accounts out at random.</p><p>It had been going on long enough that it had stopped being a question. Someone would lose access, it would get sorted out, and everyone would move on. Nobody knew why it happened, and at some point nobody was asking anymore.</p><p>It was an attack. I found it while clearing a backlog, and I found it because I was looking at a hundred cases at once instead of one at a time.</p><h3>The problem</h3><p>Security alerts land in my Tines case queue. Tines is a SOAR platform (Security Orchestration, Automation, and Response), and it snaps the rest of your security stack together like Lego bricks. An alert from one tool can trigger a lookup in another, and the resulting case ends up living in Tines.</p><p>Almost none of those cases can be judged on their own contents. To decide whether a case matters, I need what the endpoint tool knows about that host, what the data-loss tool saw around that user, what happened before and after in the logs. Tines is built to wire those lookups together so the case arrives with the context already attached.</p><p>The catch is bandwidth. On a small team, building and maintaining that wiring for every tool combination competes with everything else on the list, and it rarely wins. There’s also the problem of not knowing what you’re automating against. If you don’t know what your alerts actually look like, what’s noise and what matters, you have no frame of reference for what to build.</p><p>Work that Tines could have automated, I did by hand instead with three or four consoles, copying identifiers between them, holding the answers in my head, and then writing a conclusion back into the case.</p><p>Threat hunting gets a lot easier once your tools are set up in a central, connected way. When you don’t have the resources to build that out, having an AI that can talk to each tool directly gets you most of the same benefit.</p><p>I already had MCP servers running for most of the tools in my stack, so I could ask questions about a host or a user right from my terminal. Tines was the one system I still couldn’t reach that way. Tines ships its own MCP server, but it’s built for authoring stories. The Cases API had nothing exposed as MCP tools.</p><p>So I wrote one.</p><h3>What I built</h3><p>It’s a small container that exposes Tines Cases v2 as MCP tools: fetch a case, search the queue, page through comments, check assignees and metadata. On the write side: create, update, close, comment, link, and delete.</p><p>It’s open source, MIT licensed:</p><p><a href="https://github.com/nwhistler/tines-cases-mcp"><strong>github.com/nwhistler/tines-cases-mcp</strong></a></p><p>The README within the repo covers setup and configuration. The hardest part wasn’t reading cases; it was making sure it refused to write.</p><p>The gates exist because of prompt injection. Case text flows into a model that could also modify cases, and I didn’t want those two things sharing a session by default.</p><p>The more practical reason to start read-only is that everyone builds their Tines cases differently. I didn’t know how my own queue would map onto an MCP client’s tool calls until I tried it, or whether the model would pull the fields I expected. None of this causes a production outage. If it had deleted a case on day one I’d have been surprised, but it’s the system of record for my security work, and there’s no reason to rush it.</p><p>So the server starts read-only, and every write tool refuses until you set an environment variable to exactly false; even a typo leaves it read-only. Deletion needs a second variable on top of that, plus an explicit confirmation, plus a written reason, plus the case&#39;s actual name typed back correctly. A stale case ID in a delete call destroys a real case that happens to hold that number now, along with its entire audit trail. Requiring the name means a wrong ID fails the comparison and stops.</p><p>That’s a lot of hoops to jump through to delete a case. But it’s the kind of protection that will come in handy when you need it, and it’ll save you from yourself or your eager AI tool.</p><p>I ran it read-only for a while before turning writes on. Watching which tools a model reaches for, before it can change anything, tells you a lot about whether you trust it.</p><h3>The afternoon</h3><p>That afternoon, I sat down to work the backlog and I cleared all of it in a few hours.</p><p>Most were false positives, some needed enrichment, and some needed real work. The relief was in not drowning in each one; same window, no identifiers copied between tabs.</p><p>That’s the part I expected; here’s the part I didn’t.</p><h3>Two things a queue hides</h3><p>Going through a hundred cases in one sitting is a different activity than going through a hundred cases over six weeks. The cases are the same; what changes is that you can hold them all in view at once. Sometimes that meant seeing the same type of alert firing over and over, which is its own kind of signal. It also showed me exactly where I needed to tweak our Tines workflows, adding dedup logic or rolling related alerts into a master case instead of spawning a new one every time.</p><p>The first thing I found was a broken SIEM parser. Worked one at a time, a misparsed alert was just a confusing case I squinted at and moved past. Worked in bulk, the same malformation showed up case after case until it stopped looking confusing and started looking like a defect.</p><p>The parser was keying off the word “critical” in firewall logs without understanding the context. The firewall denied the traffic and dropped it. It did its job, identified the traffic as malicious, and stopped the threat. But the parser was opening a critical case every time it saw that log line, treating a successful block like an incident. Anything after the block isn’t a security issue; it’s a network team problem if they want to reduce the noise.</p><p>The second was the attack. The random lockouts on that SaaS tool had a cause, and the cause was hostile. A misconfiguration in the connector was allowing attackers to password spray and enumerate account names, using it as an oracle to see which usernames were legitimate, and triggering the lockouts in the process. The IdP was correctly blocking the actual login attempts, so nothing was compromised. But the reconnaissance itself was the problem: traffic from several countries with active military conflicts and state-sponsored offensive cyber programs, all probing the same target.</p><p>Read one at a time across weeks, each lockout had a plausible mundane explanation. Read together, they had a shape. Seen all at once, they showed an active campaign, not random noise. Nobody had missed anything through carelessness. The information was all there, just distributed across enough separate moments that the pattern never assembled in anyone’s head.</p><p>When you can pull the same story from multiple sources and correlate it with an AI, the picture gets clearer faster. The behavior shows up in logs from multiple places, plus you can query policy and configuration directly to understand how the system is actually set up. That’s less like staring at alerts and more like having the threat hunter, the security engineer, and the IT team in the same room looking at the same thing at the same time.</p><p>I didn’t get smarter, I got a working session wide enough for a pattern to appear in.</p><h3>One more thing</h3><p>Watching response sizes mattered more than I expected and I discovered a Tines list response that embeds each case’s entire activity log. At twenty-five cases per page that measured around 84,000 tokens on my tenant, enough to swallow a model’s context window in a single call. Projecting list rows down to the fields you actually triage on cut that by roughly 11x. When tokens cost you both money and time, a change like that isn’t just a nice-to-have, it’s the difference between a tool you can run and one that chokes on its own data.</p><p>If you’re running Tines and want to try this, the repo has full setup instructions and the reasoning behind every safety gate: <a href="https://github.com/nwhistler/tines-cases-mcp">github.com/nwhistler/tines-cases-mcp</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ad5fb1e0edd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to open Antigravity IDE from Terminal]]></title>
            <link>https://medium.com/@nate_w/how-to-open-antigravity-ide-from-terminal-451fe58bd286?source=rss-d399dbe8581f------2</link>
            <guid isPermaLink="false">https://medium.com/p/451fe58bd286</guid>
            <category><![CDATA[google-antigravity-ide]]></category>
            <category><![CDATA[google-antigravity]]></category>
            <dc:creator><![CDATA[Nate Whistler]]></dc:creator>
            <pubDate>Thu, 18 Jun 2026 01:05:11 GMT</pubDate>
            <atom:updated>2026-06-18T01:05:11.603Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s be honest, Google roll out of Antigravity 2.0 was confusing. I even spoke to someone at Google a couple days after the keynote and they were confused and apologetic.</p><p>But one thing I couldn’t figure out until today, was how do I open a directory in Antigravity IDE from the terminal. Before, I would just type antigravity . and it would open. But it seems as if there is no longer a native command to use.</p><p>So after some trial and error, I created a wrapper in my usr/local/bin</p><p>Here is a quick command to run from terminal:</p><pre>sudo bash -c &#39;cat &gt; /usr/local/bin/antigravity &lt;&lt; &#39;&quot;&#39;&quot;&#39;EOF&#39;&quot;&#39;&quot;&#39;<br>#!/bin/bash<br>open -a &quot;Antigravity IDE&quot; &quot;${1:-.}&quot;<br>EOF<br>chmod +x /usr/local/bin/antigravity&#39;</pre><p>Now, it’s fixed.</p><p>Also, if you want to run gemini-cli, it’s now Antigravity-cli and you can run agy . Simply-er command, but still confusing from a product rollout.</p><p>At least I can still get to the IDE now from my terminal and I hope it helps others too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=451fe58bd286" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brewfile Analyzer]]></title>
            <link>https://medium.com/@nate_w/brewfile-analyzer-1c519777f079?source=rss-d399dbe8581f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c519777f079</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[homebrew]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Nate Whistler]]></dc:creator>
            <pubDate>Mon, 08 Sep 2025 02:06:28 GMT</pubDate>
            <atom:updated>2025-09-08T02:06:28.651Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oY8tPSyjjUPa-d5JHJIjAQ@2x.png" /><figcaption>Brewfile Analyzer, helping you remember what exactly you have installed and what it does.</figcaption></figure><p>I love Homebrew, but I constantly run into the same frustrating problem: I forget what tools I have installed and what they actually do. Sound familiar? So I built something to solve this once and for all.</p><p>Picture this: you see `ripgrep` in your terminal history but can’t remember if it’s better than `grep` or what flags to use. Or you know you installed some JSON tool, but was it `jq`, `fx`, or something else? This is exactly what Brewfile Analyzer solves.</p><p>If you are unfamiliar with Homebrew, or the way I like to organize my brewfiles, see <a href="https://medium.com/@med_44897/supercharge-homebrew-with-brewfile-c83daf07847a">https://medium.com/@med_44897/supercharge-homebrew-with-brewfile-c83daf07847a</a></p><p>What does Homebrew Analyzer do?</p><p>- 🔍 Smart parsing of Brewfile (single or split) with optional brew info enrichment<br>- ✏️ Live editing in the browser (description + example)<br>- 💾 Edits persist in DuckDB and survive regeneration<br>- 🔎 API-first search: name, description, example, and type filters (brew/cask/mas/tap)<br>- 🕘 “Recent edits” view and counts by type<br>- 🧱 Zero external services required; optional AI providers supported</p><p>Here’s what makes it special, and let me explain what it solves.</p><p>- The script searches for brewfiles on your Mac, creates a brewfile directory, and consolidates them into that folder to enable the web_app installation.</p><p>- The backend uses DuckDB — a fast, embedded database that’s perfect for this use case. No server setup, no configuration hassles, just blazing-fast queries and reliable data persistence. Your edits survive regeneration, and the API responses are snappy.</p><p>- It uses AI! Because nothing is cool anymore unless it has AI integration. But in all seriousness, it makes finding all the descriptions of the tools and examples easy. Instead of manually writing descriptions for hundreds of tools, it can generate helpful, contextual descriptions and usage examples. Plus, it supports Ollama for completely local, private AI processing.</p><p>- It has filters for the types of tools, and the search is great. Again, this caters to my forgetfulness and helps me find what I might use the tool for if I forget the name.</p><p>- It’s private. Look, nothing here is sensitive, and I purposely designed it that way. And there is nothing stopping you from making this a Cloudflare Workers site or public API. Not having any user data or personal information was an important design choice for me. But that doesn’t mean it’s not portable and flexible. If you want a read-only version of the site, there is a command to run for that.</p><p>- It is built on APIs. This will make it flexible in the long run, allowing me to turn it into an MCP or create a Raycast extension that queries the data. It opens a lot of doors, and making design choices now saves me a lot of headaches if I were to try to shoehorn it in later.</p><p>So how do you get your hands on it? Visit <a href="https://github.com/nwhistler/brewfile-analyzer"><strong>https://github.com/nwhistler/brewfile-analyzer</strong></a> for instructions. There is even a quick start one-liner installer that gets everything set up and asks you how you want to configure along the way.</p><p>Let me know what you think about it. I’d love to hear how it fits into your workflow or what features would make it even more helpful for your team. I went to great lengths to ensure this is secure, tested, and vulnerability-free.</p><p>What tools are in your Brewfile that YOU always forget about?</p><p>Happy brewing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c519777f079" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Supercharge Homebrew with Brewfile]]></title>
            <link>https://medium.com/@nate_w/supercharge-homebrew-with-brewfile-c83daf07847a?source=rss-d399dbe8581f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c83daf07847a</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[brewfile]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[brew]]></category>
            <dc:creator><![CDATA[Nate Whistler]]></dc:creator>
            <pubDate>Tue, 21 May 2024 06:18:23 GMT</pubDate>
            <atom:updated>2024-05-21T06:18:23.325Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pbfNPmNNuf27fVlo" /><figcaption>Photo by <a href="https://unsplash.com/@itsdenispavlovic?utm_source=medium&amp;utm_medium=referral">Denis Pavlovic</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you use brew, you are probably familiar with the basics of how it works. Essentially, it is a package manager for Mac OS that can be used to install packages such as <strong>Go</strong>, <strong>Terraform</strong>, <strong>Pvenc</strong>, and can even install mac apps. It also helps keep your installed software up-to-date.</p><p>A Brewfile is a powerful tool that allows you to install multiple packages at once and keep track of your installations. These files can be saved in a Git repository, shared between computers, or backed up in case of data loss. You can even run a command to remove every install with your brewfile, which I’ve used on my work computer before returning my device. But I will get to that <a href="#e8dd">later</a>.</p><h3>Getting Started with a Brewfile</h3><p>To start using Brewfiles, install the necessary tool by running:<br> brew install rcmdnk/file/brew-file from your favorite terminal application. Mine is <a href="https://www.warp.dev/">Warp</a>, which if you haven’t tried, I highly recommend.</p><p>Or, you can use an install script:</p><pre>$ curl -o install.sh -fsSL https://raw.github.com/rcmdnk/homebrew-file/install/install.sh<br>$ chmod 755 ./install.sh<br>$ ./install.sh<br>$ rm -f install.sh</pre><p>This script also installs Homebrew if it’s not already installed.</p><p>Next, add the following lines to your .bashrc or .zshrc to wrap the brew command:</p><pre>if [ -f $(brew --prefix)/etc/brew-wrap ];then<br>  source $(brew --prefix)/etc/brew-wrap<br>fi</pre><p>This <strong>brew-wrap</strong> setup ensures that your <strong>Brewfile</strong> is automatically updated whenever you execute brew install or brew uninstall.</p><h3>Creating and Managing Brewfiles</h3><p>Next, you need to create a brewfile and there are a couple of ways to do it.</p><ol><li>You can create a blank one by typing brew init<br>brew init is same as brew file init, if you setup brew-wrap as in <a href="https://homebrew-file.readthedocs.io/en/latest/installation.html">Installation</a>.</li><li>You can dump everything you have installed already to a brewfile using brew dump and it will Initialize/Update BREWFILE with installed packages</li><li>You can use a git repository using brew set_repo (<a href="https://homebrew-file.readthedocs.io/en/latest/getting_started.html#use-github-or-any-git-repository-for-brewfile-management">see here</a> for more details).</li><li>You can use dropbox by setting the place of Brewfile by using the environment variable like: export HOMEBREW_BREWFILE=~/Dropbox/Brewfile</li><li>Finally, you can run brew noinit to suppress the brewfile installation if you already have one.</li></ol><h3>Automating Package Management</h3><p>To ensure packages are added to your Brewfile automatically, use:<br> brew file brew install &lt;package&gt;</p><h3><strong>Keeping Your Brewfile Organize</strong></h3><p>I like to keep my brew files alphabetical, and I like to add comments when I turn something off. I also have to commit messages to the repo I check them into, but I find having in-line comments helps when I wonder why I don’t have a package installed.</p><p>So recently, I changed my brew file to look like this:</p><pre>instance_eval File.read(File.expand_path(&quot;~/brewfile/Brewfile.Tap&quot;))<br>instance_eval File.read(File.expand_path(&quot;~/brewfile/Brewfile.Brew&quot;))<br>instance_eval File.read(File.expand_path(&quot;~/brewfile/Brewfile.Cask&quot;))<br>instance_eval File.read(File.expand_path(&quot;~/brewfile/Brewfile.Mas&quot;))</pre><p>I broke out my Tap, Brew, Cask, and Mas into separate files so now they look like this:</p><pre>cat brewfile/brewfile.Tap<br>/-- Taps /<br>tap &quot;buo/cask-upgrade&quot;<br>tap &quot;homebrew/bundle&quot;<br>#tap &quot;homebrew/cask&quot;<br>#tap &quot;homebrew/cask-drivers&quot;<br>tap &quot;homebrew/cask-versions&quot;<br>#tap &quot;homebrew/core&quot;<br>tap &quot;homebrew/services&quot;<br>tap &quot;rcmdnk/file&quot;<br>#tap &quot;secrethub/tools&quot;</pre><pre>cat brewfile/brewfile.Brew<br>/-- Brew Files /<br># brew &quot;python@3.9&quot;<br># brew &quot;rajiv/fastmate/fastmate&quot; seems to be broken<br># brew &quot;secrethub/tools/secrethub-cli&quot; R.I.P. secrethub<br>brew &quot;ansible&quot;<br>brew &quot;ansible-lint&quot;<br>#brew &quot;asciidoc&quot;<br>brew &quot;bat&quot;<br>brew &quot;brew-file&quot;<br>...</pre><pre>cat brewfile/brewfile.Cask<br>/-- Cask Installs /<br>cask &quot;1password&quot; # back to none beta<br>#cask &quot;1password-beta&quot;<br>cask &quot;1password-cli&quot;<br>#cask &quot;Netiquette&quot;<br>cask &quot;adobe-acrobat-reader&quot;<br>cask &quot;aerial&quot;<br>#cask &quot;alfred&quot;<br>#cask &quot;alfred5&quot; Don&#39;t need that where we&#39;re going<br>...</pre><pre>cat brewfile/brewfile.Mas<br>/ -- Mas Installs /<br># mas &quot;Airmail&quot;, id: 918858936<br># mas &quot;Home Assistant&quot;, id: 1099568401<br># mas &quot;tweetbot&quot;, id: 1384080005 Bye forever<br># mas &quot;mastonaut&quot;, id: 1450757574<br>#mas &quot;Deliveries&quot;, id: 290986013<br>mas &quot;Fantastical&quot;, id: 975937182<br>...</pre><h3>Automating Brewfile Sorting</h3><p>Now, I can get really specific about where it goes and I don’t have a big cluttered up file of different things. To keep everything tidy, I wrote a bash script to sort my Brewfiles:</p><pre>cat brewfile/brewfile-brew-sort.sh<br>#!/bin/bash<br><br># Define the paths to the Brewfiles<br>brewfile_paths=(<br>  &quot;~/brewfile/Brewfile.Brew&quot;<br>  &quot;~/brewfile/Brewfile.Cask&quot;<br>  &quot;~/brewfile/Brewfile.Mas&quot;<br>  &quot;~/brewfile/Brewfile.Tap&quot;<br>)<br><br># Function to sort Brewfile contents<br>sort_brewfile() {<br>  local brewfile_path=$1<br><br>  # Extract non-relevant lines (top comments and other comments)<br>  non_relevant_lines=$(awk &#39;!/^#?(brew|cask|mas|tap) /&#39; &quot;$brewfile_path&quot;)<br><br>  # Extract and sort relevant lines (including commented-out lines), keeping the comment properly attached<br>  sorted_relevant_lines=$(awk &#39;/^#?(brew|cask|mas|tap) /&#39; &quot;$brewfile_path&quot; | sort -t &#39;&quot;&#39; -k2,2)<br><br>  # Write the non-relevant lines back to the file<br>  echo &quot;$non_relevant_lines&quot; &gt; &quot;$brewfile_path&quot;<br><br>  # Append the sorted relevant lines to the file<br>  echo &quot;$sorted_relevant_lines&quot; &gt;&gt; &quot;$brewfile_path&quot;<br>}<br><br># Iterate over each specified Brewfile and sort<br>for brewfile_path in &quot;${brewfile_paths[@]}&quot;; do<br>  # Expand the ~ to the full home directory path<br>  expanded_path=$(eval echo &quot;$brewfile_path&quot;)<br><br>  if [ -f &quot;$expanded_path&quot; ]; then<br>    sort_brewfile &quot;$expanded_path&quot;<br>    echo &quot;Sorted: $expanded_path&quot;<br>  else<br>    echo &quot;File not found: $expanded_path&quot;<br>  fi<br>done</pre><p>This tries to keep my commented lines in place and organized by installed package name.</p><p>Finally, I use brew bundle — file=~/brewfile/Brewfile — cleanup once I add to or take away from the files. But, I shortened it to a brewb command by setting an alias alias brewb=’brew bundle — file=~/brewfile/Brewfile — cleanup’ in my .zshrc file.</p><h3>Quick removal <strong>Script</strong></h3><p>As I said earlier, I’ve used this script to quickly remove everything I used from a computer. I’d recommend running this command in a native Mac OS terminal, especially if you have installed a 3rd party terminal.</p><pre>#!/bin/bash<br><br># Paths to your Brewfile components<br>TAP_FILE=~/brewfile/brewfile.Tap<br>BREW_FILE=~/brewfile/brewfile.Brew<br>CASK_FILE=~/brewfile/brewfile.Cask<br>MAS_FILE=~/brewfile/brewfile.Mas<br><br># Function to untap all taps<br>untap_taps() {<br>  if [ -f &quot;$TAP_FILE&quot; ]; then<br>    cat &quot;$TAP_FILE&quot; | while read -r tap; do<br>      echo &quot;Untapping: $tap&quot;<br>      brew untap &quot;$tap&quot;<br>    done<br>  fi<br>}<br><br># Function to remove all brew packages<br>remove_brews() {<br>  if [ -f &quot;$BREW_FILE&quot; ]; then<br>    cat &quot;$BREW_FILE&quot; | while read -r formula; do<br>      echo &quot;Removing brew formula: $formula&quot;<br>      brew remove --force &quot;$formula&quot;<br>    done<br>  fi<br>}<br><br># Function to remove all cask applications<br>remove_casks() {<br>  if [ -f &quot;$CASK_FILE&quot; ]; then<br>    cat &quot;$CASK_FILE&quot; | while read -r cask; do<br>      echo &quot;Removing cask application: $cask&quot;<br>      brew remove --force --cask &quot;$cask&quot;<br>    done<br>  fi<br>}<br><br># Function to remove all MAS apps<br>remove_mas_apps() {<br>  if [ -f &quot;$MAS_FILE&quot; ]; then<br>    cat &quot;$MAS_FILE&quot; | grep -o &#39;id: [0-9]*&#39; | sed &#39;s/id: //&#39; | while read -r app_id; do<br>      echo &quot;Removing MAS app with ID: $app_id&quot;<br>      mas uninstall &quot;$app_id&quot;<br>    done<br>  fi<br>}<br><br># Run the functions<br>untap_taps<br>remove_brews<br>remove_casks<br>remove_mas_apps<br><br># Uninstall Homebrew<br>echo &quot;Uninstalling Homebrew...&quot;<br>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)&quot;<br><br># Remove remaining directories<br>echo &quot;Removing remaining Homebrew directories...&quot;<br>sudo rm -rf /usr/local/Homebrew /usr/local/Cellar /usr/local/Caskroom /usr/local/.brew /opt/homebrew<br><br># Clean up environment variables<br>echo &quot;Don&#39;t forget to clean up any Homebrew paths in your shell profile files (~/.bash_profile, ~/.zshrc, etc.)&quot;<br><br># Restart shell<br>echo &quot;Restart your terminal for changes to take effect.&quot;</pre><p>Only use this script if you need to clean up, as it takes out everything.</p><h3>Final Thoughts, Goals, and Resources</h3><p>Organizing your brewfile like this helps keep things easy to read, easy to read and optimized for the future. I’ve been getting further into creating Raycast Extensions and my goal is to create one that searches for what you are looking for, adds it to the right file, and does a brewb command in the background to automatically add what you just installed.</p><p>Have a workflow that works for you? I’d love to hear it as I’m always keen to optimize!</p><p>For more info on Brew and Brewfiles see:</p><ul><li><a href="https://brew.sh/">Homebrew</a></li><li><a href="https://homebrew-file.readthedocs.io/en/latest/">Welcome to homebrew-file&#39;s documentation! - Homebrew-file 8.5.6 documentation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c83daf07847a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>