Skip to content

Instantly share code, notes, and snippets.

View yamanidev's full-sized avatar

Mohamed Yamani yamanidev

View GitHub Profile
@yamanidev
yamanidev / watchlist_formatter.py
Last active October 9, 2026 20:49
TV Shows/Movies Watchlist Formatter
#!/usr/bin/env python3
"""
watchlist.py — normalize a watchlist into a Markdown list of "- [Type] Title (Year)" items.
Type is one of: Movie, TV Show, Unknown. It always comes from IMDb.
Data source: IMDb's non-commercial datasets (personal use), downloaded once and
cached as a local SQLite file. No API key, no scraping. Standard library only.
Input lines look like "Title (Year)", with any bullet prefix ("*", "•", "⁃", "-").
A year range such as "(2008–2013)" uses its start year.
@yamanidev
yamanidev / nginx-configuration-nextjs.md
Created February 27, 2024 18:06
NGINX configuration for deploying Next.js applications (Pages Router)

NGINX

  1. Configuration for serving static content of a Next.js static export.
  2. Configuration of a reverse proxy for a Next.js server application (SSR/SSG/ISR).

You can follow the guide I wrote on deploying Next.js applications to a VPS using NGINX and PM2: article