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 / macbook-used-verification-checklist.md
Created October 20, 2026 12:45
Used MacBook Verification Checklist for India — Activation Lock, MDM, spec/battery/hardware checks, scam red flags, and 2026 price benchmarks

Used MacBook Verification Checklist

A complete, printable checklist for buying a second-hand Mac (MacBook Air / MacBook Pro) in India. Covers OLX / Quikr / Facebook / local dealers. Run every listing against it.

The one rule: pay nothing until every item in Section A passes. If the seller refuses any check, the deal is already over.


@syntaxhacker
syntaxhacker / cpi-apis-next-session.md
Created October 14, 2026 12:57
US CPI APIs for next CPI session: BLS at 6pm, FRED for history (verified Oct 14 2026)

US CPI APIs — Quick Reference for Next CPI Session

Release: BLS 8:30 ET = 6pm IST. Next: Nov 10, 2026. Sept print was MoM +0.6%, YoY 3.7%, core +0.3% / 2.6% (BLS index Sept 336.940, Aug 334.980).

Rule

  • At 6pm: BLS API (only source live at print; FRED still ends prior month).
  • History/backtest: FRED CSV (fastest, no key).
  • Skip AlphaVantage demo (slowest + rate-limited).
@syntaxhacker
syntaxhacker / PRIVACY.md
Created August 11, 2026 20:16
Job Radar for LinkedIn - Privacy Policy

Privacy Policy — Job Radar for LinkedIn

Last updated: August 2026

Job Radar for LinkedIn is a Chrome extension that runs entirely locally in your browser. It does not transmit, store, or sell any of your data.

What the extension does

  • Scans the LinkedIn pages you open (search results and your home feed) to
@syntaxhacker
syntaxhacker / chrome-devtools-mcp-bunx-bug.md
Created August 3, 2026 11:31
chrome-devtools-mcp --autoConnect fails when launched via bunx: Puppeteer doesn't support Bun (#1234). Fix: use Node npx with absolute path.

chrome-devtools-mcp fails with --autoConnect when launched via bunx (Bun)

Symptom

The chrome-devtools MCP server is configured with:

bunx chrome-devtools-mcp@latest --autoConnect --user-data-dir <chrome-profile-dir>
@syntaxhacker
syntaxhacker / gmail-python-integration.md
Created July 30, 2026 08:20
Gmail SMTP/IMAP integration with Python using App Password — send with attachments, read unread emails, no OAuth setup required

Gmail Integration with Python (SMTP + IMAP)

A working setup to send and read Gmail programmatically using Python, without browser automation or OAuth setup — just an App Password.

Prerequisites

@syntaxhacker
syntaxhacker / ubuntu-performance-fixes.md
Created July 28, 2026 20:25
Ubuntu Performance Debugging - Fixing Lag, Chrome FPS, NVIDIA GPU & Memory Tuning

Ubuntu Performance Debugging Log

Full debugging session fixing system lag on Ubuntu 24.04 with GTX 1650 Ti

Symptoms

  • System lag, stuttering UI
  • Chrome stuck at 25fps on regular pages (WebGL hit 60fps)
  • High swap usage, memory pressure

Root Causes Found

@syntaxhacker
syntaxhacker / llamacpp-learning-setup-summary.md
Created July 28, 2026 20:25
llama.cpp + CUDA 13.2 on Ubuntu 24.04 with GTX 1650 Ti - setup notes and learnings for 4GB VRAM

llama.cpp + CUDA Setup — What I Learned

System: Ubuntu 24.04, GTX 1650 Ti (4GB VRAM)

Hardware Limits

  • 4GB VRAM fits Llama 3.2 3B (Q4_K_M) fully on GPU with 4K context
  • 8K context = partial CPU offload (slower), 16K+ = mostly CPU
  • TinyLlama 1.1B runs easily with full offload
  • No tensor cores on GTX 1650 Ti -- warning is cosmetic
  • 7B models don't fit at Q4 (4.5 GB), Q2 is degraded quality
@syntaxhacker
syntaxhacker / setup.md
Created July 28, 2026 20:19
Ubuntu 24.04 setup: macOS dock, timeouts, dev tools

Ubuntu 24.04 Setup Guide

macOS-Style Dock & Window Controls

# Move dock to bottom (macOS style)
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position 'BOTTOM'
gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
gsettings set org.gnome.shell.extensions.dash-to-dock always-center-icons true
gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true
@syntaxhacker
syntaxhacker / speed-of-sound-setup.md
Created June 28, 2026 18:41
Speed of Sound - Ubuntu Voice Dictation Setup

Speed of Sound - Ubuntu Voice Dictation Setup

Local Whisper-based voice typing for Linux, similar to macOS dictation.

Installation

# Install Flatpak & Speed of Sound
sudo apt update && sudo apt install -y flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
@syntaxhacker
syntaxhacker / how-domains-work.md
Created June 24, 2026 18:49
How domains, DNS, and hosting work - simple explanation with ASCII

How Domains, DNS & Hosting Work

The Problem

Computers talk using IP addresses like 76.76.21.21.
Humans remember names like google.com better.

DNS (Domain Name System) is the phonebook of the internet — it translates names → IPs.