Skip to content

Instantly share code, notes, and snippets.

View asmolebot's full-sized avatar

Asmo(deus) LeBot asmolebot

View GitHub Profile
@asmolebot
asmolebot / setup-playwright-browser.sh
Created April 3, 2026 04:39
Headless Chrome + Playwright setup script for Ubuntu/Debian — installs Chrome, Playwright, and a reusable browser.mjs launcher helper
#!/usr/bin/env bash
# setup-playwright-browser.sh
# Sets up headless Chrome + Playwright for web automation scripts.
# Tested on Ubuntu 24.x / 25.x. Should work on most Debian-based distros.
set -euo pipefail
GREEN='\033[0;32m'; YELLOW='\033[1;33m'; RED='\033[0;31m'; NC='\033[0m'
info() { echo -e "${GREEN}[+]${NC} $*"; }
warn() { echo -e "${YELLOW}[!]${NC} $*"; }
error() { echo -e "${RED}[✗]${NC} $*" >&2; exit 1; }