Skip to content

Instantly share code, notes, and snippets.

View syntaxhacker's full-sized avatar
🧠
compacting ...

Rohit Jogi syntaxhacker

🧠
compacting ...
View GitHub Profile
@syntaxhacker
syntaxhacker / namecheap-to-vercel-domain-setup.md
Created June 24, 2026 18:48
How to point a Namecheap domain to a Vercel deployment - ASCII walkthrough

Namecheap → Vercel Domain Setup

How to connect a domain bought on Namecheap to a Vercel-hosted project.

                          ┌─────────────────────┐
                          │  1. Buy domain on   │
                          │     Namecheap       │
                          │  e.g. yourdomain.io │
                          └─────────┬───────────┘
@syntaxhacker
syntaxhacker / 99-usb-lenovo.rules
Last active July 13, 2026 19:41
Lenovo USB auto-mount with systemd-mount (udev)
ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="61F4-EB04", RUN+="/usr/bin/systemd-mount --no-block --automount=yes --options=defaults,uid=1000,gid=1000 $devnode /mnt/usb"
ACTION=="remove", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="61F4-EB04", RUN+="/usr/bin/systemd-mount --umount $devnode"
@syntaxhacker
syntaxhacker / README.md
Created June 12, 2026 07:30
Generic bash service runner — start/stop/restart/status for frontend + backend projects with PID tracking, port killing, and health polling

Generic Bash Service Runner

A reusable bash script template for managing multi-service projects (frontend + backend) with a single CLI.

Features

  • Start / stop / restart / status for both backend and frontend
  • PID file tracking via /tmp/ — survive terminal close
  • Intelligent port killing — tries lsof, fuser, then ss
  • Health-check polling — waits for actual readiness before returning
@syntaxhacker
syntaxhacker / preciz-teaching-prompts.md
Last active June 11, 2026 19:15
Preciz teaching style prompts — progressive, direct, and reference styles for LLM-based tutorial generation

Preciz Teaching Styles

1. Progressive — Beginner

## TEACHING STRUCTURE

### Layer 1: Foundation (First 40%)
- Assume ZERO prior knowledge
- Start with everyday analogies (cooking, driving, organizing, etc.)
@syntaxhacker
syntaxhacker / scrapling-news-scraper-guide.md
Last active June 4, 2026 13:12
Build a multi-source news scraper with scrapling — base class, site-specific scrapers, concurrent aggregator, article extraction with ld+json fallbacks.

Building a Multi-Source News Scraper with scrapling

A practical guide to building a concurrent, multi-source news scraper using scrapling — a modern HTML parsing + HTTP library with browser impersonation (no BeautifulSoup/requests needed).


Installation

@syntaxhacker
syntaxhacker / setup-searxng.md
Created June 4, 2026 08:32
SearXNG local setup with JSON API — config, docker, Python client

SearXNG Setup for JSON API Access

Run SearXNG locally with JSON format enabled for programmatic access (e.g., AI/LLM pipelines, news aggregation).

Quick Start

# 1. Create config directory
mkdir -p ~/searxng
@syntaxhacker
syntaxhacker / pikachu-notification-sound-ubuntu.md
Last active May 23, 2026 11:11
Pikachu notification sound on Ubuntu: custom GNOME sound theme + noti-sound zsh function

Pikachu Notification Sound on Ubuntu 24.04 / GNOME 46

Play Pikachu's "pika!" for desktop notifications on Ubuntu 24.04 (GNOME Shell 46), working over Bluetooth headphones.

Background

GNOME Shell 46 (Ubuntu 24.04) silences notification sounds by default unless the app explicitly provides a sound-name hint. The traditional freedesktop sound theme approach (complete.oga) no longer works.

The fix: a dbus-monitor listener catches org.freedesktop.Notifications.Notify signals and plays your sound via pw-play.

@syntaxhacker
syntaxhacker / immich-usb-guide.md
Created May 18, 2026 20:17
Immich + External USB Drive: Setup & Troubleshooting Guide

Immich + External USB Drive: Setup & Troubleshooting Guide

Problem

  • Immich external library pointed to /usb/DCIM via Docker bind mount
  • Automounter (udisks2) creates unstable mount paths: LENOVO_USB_, LENOVO_USB_1, etc.
  • Stale leftover directories (owned by root) block automount → suffix _1 is created → Docker bind mount breaks
  • udev mount commands fail with permission denied due to udev's restricted mount namespace

Solution Overview

@syntaxhacker
syntaxhacker / llamacpp-cuda-setup-tutorial.md
Created May 13, 2026 05:49
llama.cpp with CUDA on Ubuntu 24.04 Setup Guide

llama.cpp with CUDA on Ubuntu 24.04 — Complete Setup Guide

A step-by-step guide to install CUDA toolkit and build llama.cpp with GPU acceleration on Ubuntu 24.04 LTS.

System Requirements

  • OS: Ubuntu 24.04 LTS (Noble Numbat)
  • GPU: NVIDIA GPU (e.g., GeForce GTX 1650 Ti — 4 GB VRAM)
  • Disk: ~10 GB free space (CUDA toolkit ~6.8 GB + build artifacts)
  • RAM: 8+ GB recommended
magnet:?xt=urn:btih:4e876798049eefe815b64eaae9de95528ad37d83&dn=24.Hour.Party.People.2002.WEB-DL.x264-RARBG
magnet:?xt=urn:btih:1351f39a4436e427002547ae89bda30b44826046&dn=3000.Miles.to.Graceland.2001.WEB-DL.x264-RARBG
magnet:?xt=urn:btih:a3e92a6933e21f995a1c8e53d6612500bb16d189&dn=633.Squadron.1964.WEBRip.x264-RARBG
magnet:?xt=urn:btih:1d77140880b937b2b6a1f518c7b79cd904063486&dn=8MM.1999.WEBRip.x264-RARBG
magnet:?xt=urn:btih:e936b3e440c70e2b751c03c25f95d890babe1a5b&dn=A.Far.Off.Place.1993.WEB-DL.x264-RARBG
magnet:?xt=urn:btih:7545a60a9bd11b4b25c3706a31f8dfcfc358c0bc&dn=A.Little.Trip.to.Heaven.2005.WEB-DL.x264-RARBG
magnet:?xt=urn:btih:be5a77c370eec5ee26dcd438e482494565847fc4&dn=A.Plumm.Summer.2007.WEB-DL.x264-RARBG
magnet:?xt=urn:btih:42f2ab610d6a834c31dc078e8ba635da9a0e542b&dn=A.Resurrection.2013.480p.BRRip.x264.AC3-RARBG
magnet:?xt=urn:btih:624bfe86ee36bda25e52d9e9f222a86a9ec606ea&dn=Addams.Family.Values.1993.WEBRip.x264-RARBG
magnet:?xt=urn:btih:e2704c4656ce949d26f604bd0b89b0ce3eb45f76&dn=Agatha.1979.WEB-