Skip to content

Instantly share code, notes, and snippets.

@irazasyed
irazasyed / cf-origin-lock.service
Last active August 2, 2026 17:21
Restrict the origin's web ports to Cloudflare edge IPs.
[Unit]
Description=Restrict origin web ports (80/443) to Cloudflare edge IPs
Documentation=file:/usr/local/sbin/cf-origin-lock.sh
# The script fetches Cloudflare's published ranges, so it needs real
# connectivity rather than just a configured interface. It falls back to the
# cached list in /var/lib/cf-origin-lock if the fetch fails.
After=network-online.target
Wants=network-online.target
[Service]
@irazasyed
irazasyed / WordPress_Cron_WP-Cron.md
Created August 2, 2026 16:58
WordPress Cron (WP-Cron)

WordPress Cron (WP-Cron)

Disable Built-in WP-Cron

Disable the default WordPress pseudo-cron by adding the following to your wp-config.php (or the equivalent Bedrock configuration):

define('DISABLE_WP_CRON', true);
@irazasyed
irazasyed / laravel-new.zsh
Created May 15, 2026 06:59
new() — Scaffold a new Laravel application with sensible defaults.
#
# new() — Scaffold a new Laravel application with sensible defaults.
#
# Creates a fresh Laravel project in the current directory, initializes a Git
# repository, creates a matching GitHub repository under your personal account,
# and pushes the initial commit — all in a single command.
#
# Defaults baked in:
# • MySQL as the database driver
# • Pest as the testing framework
@irazasyed
irazasyed / claude-suspended-tty-input.md
Created May 12, 2026 19:47
Claude Code suspends on launch with `suspended (tty input)` in one specific directory

Claude Code suspends on launch with suspended (tty input) in one specific directory

Symptom

Running claude in one specific project directory immediately returns the shell prompt with:

[1]  + 53014 suspended (tty input)  claude
@irazasyed
irazasyed / reset-mysql-mariadb-root-macos.md
Created August 2, 2025 20:17
🔐 Reset MySQL or MariaDB Root Access Without Password on macOS (Homebrew)

🔐 Reset MySQL or MariaDB Root Access Without Password on macOS (Homebrew)

📌 Problem

After installing MySQL or MariaDB via Homebrew on macOS, you might face:

  • No root password set by default
  • Forgotten root password
  • Need for passwordless root@localhost access for development tools (Laravel, Sequel Ace, TablePlus, etc.)
@irazasyed
irazasyed / gold-price-extractor.js
Created March 23, 2025 03:34
Scrape Gold Prices from Popular Jewellers in India using FireCrawl AI
// Install with npm install @mendable/firecrawl-js
import FireCrawlApp from '@mendable/firecrawl-js';
const app = new FireCrawlApp({apiKey: "YOUR_API_KEY"});
const schema = z.object({
gold_prices: z.array(z.object({
karat: z.string(),
price: z.string(),
site: z.string(),
@irazasyed
irazasyed / Bulk-Email-Finder-Tool-README.md
Last active May 27, 2026 06:08
Bulk Email Finder - Guesses Email based on Permutator/owner name and other common patterns + validates them like Hunter and other tools.

Bulk Email Finder & Verifier

A Python script to generate and verify email addresses for websites at scale, with Hunter.io-style validation logic.

Features

  • Bulk CSV Processing: Handle thousands of websites in one run
  • Smart Pattern Generation: 35+ email patterns including international variants
  • Multi-Layer Verification:
  • Syntax validation (RFC compliant)
@irazasyed
irazasyed / README.md
Created November 17, 2024 20:21
Smart Email Unsubscribe Link Parser with Multilingual support

Email Unsubscribe Parser with Multilingual support

By @irazasyed

A smart email unsubscribe link parser with multilingual. It can detect language or you can provide one. Let's you find the unsubscribe link which you can later trigger or utlize to process for any purposes.

Eg. To unsubscribe from newsletters for mailbox cleanup automatically).

@irazasyed
irazasyed / nextjs-static-export.md
Created October 10, 2023 18:10
NextJS Static Export Config

NextJS Static Export Config

next.config.js

{
	output: "export",
	distDir: "dist",
	crossOrigin: "anonymous",
	assetPrefix: ".",
@irazasyed
irazasyed / update.zsh
Created September 27, 2023 05:35
CLI: macOS all in one update command for oh-my-zsh. Let's you run system updates for various tools and their packages including composer, npm, bun, python, ohmyzsh, brew, and more
# ~/.oh-my-zsh/custom/update.zsh
ARROW=""
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m'
# Run macOS Software Updates, and update Homebrew packages, brew cask updates, composer, bun, npm, and their installed packages
# Update Ruby Gems