<?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"><channel><title><![CDATA[OpsToolkit Dev Notes]]></title><description><![CDATA[OpsToolkit Dev Notes]]></description><link>https://opstoolkit.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 20:50:36 GMT</lastBuildDate><atom:link href="https://opstoolkit.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How to build a local business lead list for a city from open map data]]></title><description><![CDATA[Say you need every dentist in Austin, with a website and a phone number. The usual route is a Google Maps scraper. Those run into proxies, CAPTCHAs…]]></description><link>https://opstoolkit.hashnode.dev/how-to-build-a-local-business-lead-list-for-a-city-from-open-map-data</link><guid isPermaLink="true">https://opstoolkit.hashnode.dev/how-to-build-a-local-business-lead-list-for-a-city-from-open-map-data</guid><category><![CDATA[open data]]></category><category><![CDATA[lead generation]]></category><category><![CDATA[apify]]></category><dc:creator><![CDATA[elio saliba]]></dc:creator><pubDate>Sat, 05 Dec 2026 18:37:03 GMT</pubDate><content:encoded><![CDATA[<p>Say you need every dentist in Austin, with a website and a phone number. The usual route is a Google Maps scraper. Those run into proxies, CAPTCHAs, blocked runs and a cap of about 120 results per search. There is another source that has none of those problems: open map data.</p>
<p>I'm not a lawyer, so this is the practical version, not legal advice.</p>
<h3>1. Start from a dataset with a licence</h3>
<p>Overture Maps publishes a Places dataset of about 88 million places. Each row carries its own licence: CDLA-Permissive-2.0, Apache-2.0 or CC0. All three allow commercial use and storage, and you keep the attribution text with the data. Nothing has to be scraped.</p>
<h3>2. Size the market before you pull rows</h3>
<p>A count costs less than a list and tells you whether the list is worth having. From a real run over Texas, which took about a minute:</p>
<ul>
<li>Dental clinics: 22,742, with 75.5% having a website.</li>
<li>Cafes and coffee shops: 12,674, of which 1,405 are Starbucks.</li>
<li>Plumbing: 5,196, with 82.3% having a website.</li>
</ul>
<h3>3. Filter before you export</h3>
<p>Ask for one business type in plain words, give a city, and filter: only with a website, only with a phone, independents only, only addresses inside the named city. Dropping chains matters more than it sounds, because a list of 1,405 Starbucks is not a lead list.</p>
<h3>4. Enrich and clean, separately</h3>
<p>Open data has few email addresses. Run the websites through a contact finder for role mailboxes such as info@, then de-duplicate on domain or phone, then validate the emails before you send anything. Personal mailboxes and personal LinkedIn profiles should be dropped on the way, not kept.</p>
<h3>5. Know what is missing</h3>
<p>This data is thinner than Google's. There are no reviews, ratings, opening hours or photos. Coverage is best in North America and Europe: in Beirut about 45% of businesses have a website, against 82% in Austin. There is some junk and there are duplicates, so use a minimum confidence score (0.7 gives a shorter, cleaner list). And the search area is a rectangle around the place, so nearby suburbs can come along.</p>
<p>The data licence covers using the data. How you contact people is a separate question, and it depends on the anti-spam laws where you and they are.</p>
<h3>What I built</h3>
<p>I'm an engineering student, and I wrapped these steps into an Apify Actor called Local Business Leads. Give it a business type and a place and you get one row per business with address, phone, website, social links and coordinates, or a count to size the market first. "Coffee shop" in "Austin, TX" returned 50 rows in about 17 seconds in my run.</p>
<p>It costs $0.40 per 1,000 businesses, and you pay only for rows you receive. Count mode is $0.01 per business type per area. Every filter is free. It is not affiliated with Google.</p>
<p>Actor page: <a href="https://apify.com/opstoolkit/local-business-leads">https://apify.com/opstoolkit/local-business-leads</a></p>
<p>If you build lead lists, which field do you miss most when you move away from Google Maps data?</p>
<p><em>Disclosure: I made Local Business Leads, and AI helped me write this.</em></p>
]]></content:encoded></item><item><title><![CDATA[Reviewing an Excel change in a pull request when git says "binary files differ"]]></title><description><![CDATA[A pull request touches a spreadsheet. The diff tells you the file changed and nothing else, because an .xlsx is a zip of XML and git treats it as a binary…]]></description><link>https://opstoolkit.hashnode.dev/reviewing-an-excel-change-in-a-pull-request-when-git-says-binary-files-differ</link><guid isPermaLink="true">https://opstoolkit.hashnode.dev/reviewing-an-excel-change-in-a-pull-request-when-git-says-binary-files-differ</guid><category><![CDATA[Git]]></category><category><![CDATA[excel]]></category><category><![CDATA[Jetbrains]]></category><dc:creator><![CDATA[elio saliba]]></dc:creator><pubDate>Sat, 05 Dec 2026 09:13:52 GMT</pubDate><content:encoded><![CDATA[<p>A pull request touches a spreadsheet. The diff tells you the file changed and nothing else, because an <code>.xlsx</code> is a zip of XML and git treats it as a binary file. Somebody has to open both versions in Excel and compare them by eye. If you keep pricing tables, test data or config sheets in a repository, you know this problem.</p>
<p>Before building anything I wrote down what a useful spreadsheet diff would need:</p>
<ul>
<li>Cell level. Which cell, old value, new value. A changed formula is reported separately from a changed value.</li>
<li>Rows lined up by content. If one row is inserted near the top and the diff marks every row below it as changed, nobody reads the result.</li>
<li>No false alarms from formulas that only moved. <code>=B4*C4</code> becoming <code>=B5*C5</code> because its row shifted down is not an edit.</li>
<li>Sheet-level changes: added, removed and renamed sheets.</li>
<li>Something short you can paste into the PR description.</li>
</ul>
<h3>Rules I set for the viewer</h3>
<p>A diff needs a viewer underneath it, and I was strict about what it must not do. It never writes to the workbook and never keeps it locked, so Git, Excel and your build can replace the file at any time. It never opens <code>.csv</code> or <code>.tsv</code> files, so those keep opening the way they do today. And the free viewer never shows a license popup.</p>
<p>It also had to cope with size. Sheets load in the background and the grid draws only the visible cells, so a 200,000-row sheet (1.6 million cells) opens without freezing the IDE.</p>
<h3>What I built</h3>
<p>I'm an engineering student, and I built Cellwise, a plugin for IntelliJ IDEA, PyCharm, WebStorm and the other JetBrains IDEs (2024.2 or newer). The viewer is free. It shows all sheets as tabs, including hidden ones, with frozen panes, merged cells and values formatted the way Excel shows them, plus a formula bar, find across all sheets and copy as tab-separated text that pastes back into Excel.</p>
<p>The diff is Pro. It opens by itself for changed <code>.xlsx</code> files in the commit dialog, the Git log, file history and Compare Files (Ctrl+D), instead of "binary files differ". Added, removed, value-changed and formula-changed cells each get their own colour, there is a list of every changed cell, and "Copy Changes as Markdown" gives you text for the pull request. Without a license the diff still gives you the summary line, for example "2 sheets changed: 3 values, 2 formulas, 1 row added."</p>
<p>Limits, so you know before installing: old <code>.xls</code> files and password-protected workbooks are not read. Charts, images and conditional formatting are not drawn. Formulas are not recalculated, so you see the values Excel saved.</p>
<img src="https://api.apify.com/v2/key-value-stores/hPcrPsfTbBCI3lqBc/records/ss-xlsxviewer-02-excel-diff.png" alt="Cellwise showing an Excel diff cell by cell in a JetBrains IDE" style="display:block;margin:0 auto" />

<p>Plugin page: <a href="https://plugins.jetbrains.com/plugin/36371-cellwise-xlsx-viewer--diff">https://plugins.jetbrains.com/plugin/36371-cellwise-xlsx-viewer--diff</a></p>
<p>How does your team review a changed spreadsheet today? I'd like to know which of the limits above would stop you.</p>
<p><em>Disclosure: I made Cellwise, and AI helped me write this.</em></p>
]]></content:encoded></item><item><title><![CDATA[Giving Claude or Cursor real tools (leads, OCR, SEO audits) through an MCP server]]></title><description><![CDATA[Ask an AI assistant how many coffee shops there are in Texas and it can only answer from memory. Ask it to read a scanned receipt behind a link, or to…]]></description><link>https://opstoolkit.hashnode.dev/giving-claude-or-cursor-real-tools-leads-ocr-seo-audits-through-an-mcp-server</link><guid isPermaLink="true">https://opstoolkit.hashnode.dev/giving-claude-or-cursor-real-tools-leads-ocr-seo-audits-through-an-mcp-server</guid><category><![CDATA[mcp]]></category><category><![CDATA[AI]]></category><category><![CDATA[apify]]></category><dc:creator><![CDATA[elio saliba]]></dc:creator><pubDate>Fri, 04 Dec 2026 11:04:54 GMT</pubDate><content:encoded><![CDATA[<p>Ask an AI assistant how many coffee shops there are in Texas and it can only answer from memory. Ask it to read a scanned receipt behind a link, or to audit a site for broken links, and it either guesses or says it cannot. The model is fine at language. What it lacks is hands.</p>
<p>MCP, the Model Context Protocol, is the standard way to give it some. A client such as Claude Desktop or Cursor starts a small server program, asks which tools it offers, and calls them when your question needs one. A tool is a name, a description and an input schema, so the assistant fills in the arguments from your sentence.</p>
<h3>The three things I worried about</h3>
<ul>
<li>Cost. An assistant that can call paid tools can run up a bill from one loop. So every tool description states its price, and a spending cap per call (default $1) is sent to Apify as the maximum charge.</li>
<li>Keys. I did not want to hold anyone's credentials. You bring your own Apify token, runs are billed to your Apify account, and the server adds no markup. The token goes in an Authorization header and is removed from error messages. The server makes no calls except to the Apify API.</li>
<li>Output size. A dataset with thousands of rows will flood the model's context. Output is cut to about 40,000 characters by default, and a note says how many items were left out. Those items were still produced and billed, which is why the defaults are small: 25 leads or 10 pages unless you ask for more.</li>
</ul>
<h3>What I built</h3>
<p>I'm an engineering student, and I wrote opstoolkit-mcp, a Node.js server (version 20 or newer, stdio transport, one runtime dependency) with 12 tools. Each one calls an Apify Actor and returns the dataset items. They include business leads by type and place, company contacts from websites, email validation, website to markdown, OCR for images and scanned PDFs, SEO and broken-link audits, a tech stack detector, domain rank, SEC EDGAR company data and product price monitoring. Every tool description states its Apify price before you run anything.</p>
<p>Setup is a token plus a config entry. In Claude Desktop's <code>claude_desktop_config.json</code> or Cursor's <code>.cursor/mcp.json</code>, add a server named <code>opstoolkit</code> with <code>npx</code> as the command, <code>-y opstoolkit-mcp</code> as the arguments, and <code>APIFY_TOKEN</code> in its environment. One honest caveat: until the package is published on npm, you have to clone the repo, run <code>npm install &amp;&amp; npm run build</code> and point the config at <code>dist/index.js</code>. The README has the exact steps and a Docker option.</p>
<p>The controls are environment variables: <code>OPSTOOLKIT_MAX_COST_USD</code>, <code>OPSTOOLKIT_MAX_ITEMS</code>, <code>OPSTOOLKIT_MAX_CHARS</code> and <code>OPSTOOLKIT_TIMEOUT_SECS</code>. Apify's synchronous endpoint stops at 5 minutes, so big jobs need smaller batches. The tests run against a local mock of the Apify API, so they cost nothing.</p>
<p>Repository: <a href="https://github.com/eliosaliba166-bit/opstoolkit-mcp">https://github.com/eliosaliba166-bit/opstoolkit-mcp</a></p>
<p>If you give an assistant paid tools, what limit would you want on it that I have not thought of?</p>
<p><em>Disclosure: I made opstoolkit-mcp, and AI helped me write this.</em></p>
]]></content:encoded></item><item><title><![CDATA[Opening a 1 GB log file in the IDE without freezing it]]></title><description><![CDATA[Open a log file of a few hundred megabytes in an editor that loads the whole file into memory, and you get a frozen window or a refusal. So most of us fall…]]></description><link>https://opstoolkit.hashnode.dev/opening-a-1-gb-log-file-in-the-ide-without-freezing-it</link><guid isPermaLink="true">https://opstoolkit.hashnode.dev/opening-a-1-gb-log-file-in-the-ide-without-freezing-it</guid><category><![CDATA[Jetbrains]]></category><category><![CDATA[logging]]></category><category><![CDATA[Developer Tools]]></category><dc:creator><![CDATA[elio saliba]]></dc:creator><pubDate>Fri, 04 Dec 2026 11:04:01 GMT</pubDate><content:encoded><![CDATA[<p>Open a log file of a few hundred megabytes in an editor that loads the whole file into memory, and you get a frozen window or a refusal. So most of us fall back to <code>less</code>, <code>grep</code> and <code>tail</code> in a terminal, then paste a few lines back into the IDE to find the code they point at.</p>
<p>I wanted to stay in the IDE. When I wrote down what I actually do with a big log, the list was short:</p>
<ul>
<li>Open it without waiting and without freezing anything.</li>
<li>Tell errors from noise at a glance.</li>
<li>Click a stack trace frame and land on that line of code.</li>
<li>Show only the warnings and errors, or only the lines that match something.</li>
</ul>
<h3>Do not load the file</h3>
<p>The size problem has one real fix: never read the whole file. A viewer can scan it once, remember where every 64th line starts, and read only the lines that are on screen. Scrolling then costs a seek instead of a few hundred megabytes of memory, and scrolling, find and go-to-line can keep working while the index is still being built.</p>
<h3>Detect the format, skip the setup</h3>
<p>Colouring a log usually starts with writing a regex. A viewer can read the first lines and guess instead: Log4j, Logback, Spring Boot, Python logging, Go loggers, nginx, syslog, JSON lines, Android logcat and more. Colour escape codes from Docker and CI output should turn into colours, not into <code>[31m</code> noise in the text. And when your own format is unusual, one regular expression with named groups is enough, as long as the settings page shows a live preview of how each sample line is read.</p>
<h3>A stack trace is one event</h3>
<p>An error and its stack trace belong together. They should share a colour, fold down to the first couple of frames, and every frame should be a link to the source. That is something the IDE is already good at, so a log viewer inside the IDE should use it: Java, Kotlin, Scala, Python, JavaScript, TypeScript, C#, Go, Rust and PHP frames all need to open at the right line.</p>
<h3>Filter the whole file, not the screen</h3>
<p>Showing only warnings and errors with their stack traces covers most days. For the rest you want text and regex filters with a few lines of context around each match, over the entire file, with matches appearing while the scan is still running. On a 1 GB file that scan takes about 10 to 15 seconds in my version.</p>
<h3>What I built</h3>
<p>I'm an engineering student, and I got tired of the terminal detour, so I built Logwright, a plugin for IntelliJ IDEA, PyCharm, WebStorm and the other JetBrains IDEs (2024.2 or newer). In my own test, a 1 GB log with 9.6 million lines showed its first screen in under 1.5 seconds and was fully indexed in about 10 seconds, using less than 10 MB of extra memory. That is one test, so treat it as a ballpark and not a benchmark.</p>
<p>It does not replace the normal editor. Logs under 20 MB still open in the regular editable editor, with the Log View as a second tab, and nothing is made read-only. Everything runs locally, with no network calls and no telemetry.</p>
<p>The viewer is free and never asks for a license. Pro adds the text and regex filters, a follow mode (<code>tail -f</code>) that keeps working when the log is rotated, jump to a time like <code>13:45</code>, and a structured view for JSON lines. Pro has a free trial.</p>
<p>This is the filter on a large file:</p>
<img src="https://api.apify.com/v2/key-value-stores/hPcrPsfTbBCI3lqBc/records/ss-logviewer-02-filter.png" alt="Logwright filtering a large log file inside a JetBrains IDE" style="display:block;margin:0 auto" />

<p>Plugin page: <a href="https://plugins.jetbrains.com/plugin/36374-logwright-log-viewer">https://plugins.jetbrains.com/plugin/36374-logwright-log-viewer</a></p>
<p>What do you do today when a log is too big for the editor: less and grep, a separate app, or something else?</p>
<p><em>Disclosure: I made Logwright, and AI helped me write this.</em></p>
]]></content:encoded></item><item><title><![CDATA[I got tired of opening a separate app to look at a SQLite file, so I built it into the IDE]]></title><description><![CDATA[If you build apps on SQLite, you probably keep a DB browser open just to peek at a .db file. It's a small switch, but it happens all day. When I looked at…]]></description><link>https://opstoolkit.hashnode.dev/i-got-tired-of-opening-a-separate-app-to-look-at-a-sqlite-file-so-i-built-it-into-the-ide</link><guid isPermaLink="true">https://opstoolkit.hashnode.dev/i-got-tired-of-opening-a-separate-app-to-look-at-a-sqlite-file-so-i-built-it-into-the-ide</guid><category><![CDATA[SQLite]]></category><category><![CDATA[database]]></category><category><![CDATA[Jetbrains]]></category><dc:creator><![CDATA[elio saliba]]></dc:creator><pubDate>Fri, 04 Dec 2026 07:52:15 GMT</pubDate><content:encoded><![CDATA[<p>If you build apps on SQLite, you probably keep a DB browser open just to peek at a <code>.db</code> file. It's a small switch, but it happens all day.</p>
<p>When I looked at what I actually do with those files, it was four things:</p>
<ul>
<li>Open a <code>.db</code> or <code>.sqlite</code> file and see the tables right away</li>
<li>Page through big tables without loading millions of rows</li>
<li>Run a quick query and see the results right below it</li>
<li>Occasionally fix a value, without risking the file</li>
</ul>
<p>None of that needs a separate app. So I built Tablewright, a plugin for IntelliJ, PyCharm, WebStorm and other JetBrains IDEs. Open a SQLite file and you get a data grid, a SQL console and filters.</p>
<p>The part I cared about most is safety. Files open read-only by default, and edits go through explicit transactions, so you can't damage a database by accident.</p>
<p>The viewer is free. Editing and a few extras are paid, with a 30-day trial: <a href="https://plugins.jetbrains.com/plugin/36685-tablewright-sqlite-browser">Tablewright on JetBrains Marketplace</a></p>
<img src="https://api.apify.com/v2/key-value-stores/hPcrPsfTbBCI3lqBc/records/ss-sqlite-01-data-grid.png" alt="Tablewright data grid showing a SQLite table" style="display:block;margin:0 auto" />

<p>Do you keep a separate DB tool open while you code? I'd like to know what it does that an IDE tab wouldn't.</p>
<p><em>Disclosure: I made Tablewright, and AI helped me write this.</em></p>
]]></content:encoded></item><item><title><![CDATA[Most Ansible bugs are typos. Catch them before the run, not ten minutes into it]]></title><description><![CDATA[Most Ansible bugs I hit aren't clever. A misspelled module option. A variable that was never defined. A Jinja expression that only breaks when the play…]]></description><link>https://opstoolkit.hashnode.dev/most-ansible-bugs-are-typos-catch-them-before-the-run-not-ten-minutes-into-it</link><guid isPermaLink="true">https://opstoolkit.hashnode.dev/most-ansible-bugs-are-typos-catch-them-before-the-run-not-ten-minutes-into-it</guid><category><![CDATA[ansible]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Jetbrains]]></category><dc:creator><![CDATA[elio saliba]]></dc:creator><pubDate>Fri, 04 Dec 2026 07:03:08 GMT</pubDate><content:encoded><![CDATA[<p>Most Ansible bugs I hit aren't clever. A misspelled module option. A variable that was never defined. A Jinja expression that only breaks when the play reaches that task. You find out ten minutes into a run, on the server.</p>
<p>The fix is boring: move the check into the editor, where a mistake costs five seconds.</p>
<h3>1. The editor should know your modules</h3>
<p>Ansible already ships docs for every module (<code>ansible-doc</code>). An editor that reads them can complete module names and options, and complain when an option doesn't exist. That alone kills the most common typo.</p>
<h3>2. Check variables before you run</h3>
<p>Undefined variables come second. You want the editor to follow <code>vars</code>, <code>defaults</code>, <code>group_vars</code> and <code>host_vars</code> across roles and underline whatever it can't resolve. You'll still run <code>ansible-lint</code> in CI, but the obvious ones stop shipping.</p>
<h3>3. Check Jinja where you write it</h3>
<p>Wrong filter arguments and unclosed expressions are easy to miss in YAML. Highlighting and checking <code>{{ }}</code> blocks inline catches them early.</p>
<h3>What I did about it</h3>
<p>I'm an engineering student, and I got tired of finding these on the server, so I built Taskwright, a JetBrains plugin (IntelliJ, PyCharm and others) that does the three things above. It reads module docs from the Ansible already installed on your machine, so nothing leaves your computer. There's a 30-day free trial: <a href="https://plugins.jetbrains.com/plugin/36680-taskwright-for-ansible">Taskwright on JetBrains Marketplace</a></p>
<img src="https://api.apify.com/v2/key-value-stores/hPcrPsfTbBCI3lqBc/records/ss-ansible-01-completion.png" alt="Taskwright completing Ansible module options" style="display:block;margin:0 auto" />

<p>Which Ansible mistake bites you most often? I'm collecting them for the next update.</p>
<p><em>Disclosure: I made Taskwright, and AI helped me write this.</em></p>
]]></content:encoded></item></channel></rss>