Scraping Facebook Is Hard. But Not Impossible.

I wanted to scrape the Facebook Ad Library for my SaaS, SpreshApp . On paper, the plan was simple: launch Puppeteer, open the Ad Library, scroll until nothing new loads, collect the data. Done. Reality had other plans. Facebook’s Ad Library behaves less like a webpage and more like a suspicious nightclub bouncer. The moment it senses automation, it quietly changes behavior. No dramatic CAPTCHA, no big red error screen. Just silence....

May 7, 2026 · 5 min

sqlc: Write SQL, Skip the Boilerplate

AI coding assistants are great at generating boilerplate. But for database code in Go, there is a better option: one that generates it from your SQL itself, with zero hallucination risk. It is called sqlc . What sqlc does You give it your SQL query files and your schema. It generates type-safe Go functions. Setup is a single config file: # sqlc.yaml sql: - engine: "postgresql" queries: "db/queries" schema: "db/models" gen: go: package: "repo" sql_package: "pgx/v5" out: "db/repo" Point it at your queries, point it at your schema, run sqlc generate....

April 8, 2026 · 3 min

Svelte Components in Hugo

To integrate Svelte components into your Hugo website, you’ll need to set up a separate npm project within your Hugo project’s root directory. This approach allows you to manage and build your Svelte components independently, making it easier to maintain and update them over time. Here’s the file structure you’ll be working with: ├── content ├── hugo.toml ├── package.json ├── package-lock.json ├── rollup.config.mjs ├── svelte │ └── components │ └── my-component │ └── my-component....

November 13, 2024 · 3 min

Optimizing Linux Storage: Using SSD for OS and HDD for /home

TL;DR By utilizing both your SSD and HDD effectively, you can create a Linux system that boots quickly, runs smoothly, and provides ample storage for your files. This setup offers a balance of performance and capacity, making it an excellent choice for many Linux users. Why Split Your System This Way? In today’s world of mixed storage solutions, many computers come with both a fast SSD (Solid State Drive) and a larger capacity HDD (Hard Disk Drive)....

September 1, 2024 · 2 min

Svg based Stored Xss

Hi, hope you guys doing great! Here is a story about me finding a stored XSS using SVG files. Approach Found a target that has many features which included Discussion, Discovery, Mixtapes, Shorts, Activity and what not. I went ahead with looking at user dashboard. Why would I look for xss at a user dashboard where only I am the visitor? Nice Question! If I found XSS there then it would be considered a self XSS....

August 25, 2024 · 2 min