Skip to content

Instantly share code, notes, and snippets.

@nijave
nijave / claude-reddit-search.md
Created July 21, 2026 22:52
Claude skill to search Reddit using Arctic Shift archive API
Error in user YAML: (<unknown>): could not find expected ':' while scanning a simple key at line 3 column 1
---
name: reddit-research
description: Use when fetching Reddit content — threads, comments, post bodies, reactions, sentiment — without browser or OAuth. Covers the Arctic Shift API (only working unauthenticated meth
od as of mid-2026), correct fetch tools, and the workflow for Reddit research tasks.
---

Reddit Research

Fetch Reddit posts and comments programmatically using the Arctic Shift API. All other unauthenticated approaches (reddit.com JSON, old.reddit.com, libreddit,

@nijave
nijave / keychron-q6-ultra-8k-firmware-changelog.md
Created July 13, 2026 01:45
Keychron Q6 Ultra 8K (ANSI) firmware changelog & download archive (unofficial) — USB VID 0x3434 / PID 0x1260, ZMK, Realtek RTL8762G

Keychron Q6 Ultra 8K (ANSI) — Firmware Changelog & Download Archive (unofficial)

Keychron does not publish release notes for the Keychron Q6 Ultra 8K, so this is a community-maintained changelog and download index for its firmware. Updates are normally delivered silently through the web configurator at launcher.keychron.com (ZMK-based board — no QMK Toolbox flashing).

⚠️ Unofficial. The per-version "changes" below are inferred from analysis of the firmware images (Keychron ships no notes); treat them as best-effort. Keychron's own advice: if your keyboard works fine, you don't need to update — updates can

@nijave
nijave / sear-mcp.py
Last active July 13, 2026 12:50
Vibe coded web search/fetch MCP backed by SearXNG
#!/usr/bin/env python3
"""SearXNG MCP server — exposes search and fetch tools to Claude Code."""
import re
from concurrent.futures import ThreadPoolExecutor
import keyring
import html2text
import niquests
import trafilatura

The "Latitude 41" Sushi Eval — Cross-Model Summary

Prompt (identical across all runs):

What was the sushi place near latitude 41 in Columbus? Did it go out of business I don't see it on Google maps anymore

Ground truth: The place is Rishi Sushi Kitchen & Bar, 114 N. 3rd St., downtown Columbus — a few blocks from the Latitude 41 restaurant (50 N. 3rd St.). Rishi closed in January 2026 (decision Jan 10, announced Jan 13). The owners later announced a successor concept, SAGE, at the same address for summer 2026.

Runs: 15 total across 5 vendors — Meta (Llama 3.1 8B, Llama 3.3 70B), Anthropic (Haiku 4.5, Sonnet 4.6, Sonnet 5, Opus 4.6/4.7/4.8), OpenAI (GPT-5.5), and Zhipu (GLM-5.2, run agentically in Claude Code) — at varying effort levels.

Caveats on the numbers. Character counts are approximate magnitudes read off the transcripts — not tokenizer output, not byte-exact. The GLM row is the exception: those token figures are real, taken from the OpenTelemetry trace. "Turns

@nijave
nijave / fast-s3-lister.py
Last active June 5, 2026 17:32
The pinnacle in listing technology. Goes fast
import asyncio
import datetime
import queue
import threading
from typing import Iterator
import aioboto3
from aiobotocore.config import AioConfig
@nijave
nijave / kssh.sh
Created May 18, 2026 12:38
"ssh" into a Kubernetes node with a privileged pod and chroot
kssh () {
pod_name=nick-ssh
kubectl delete pod $pod_name
k8s_node=$1
cat <<EOF | kubectl create -f -
apiVersion: v1
kind: Pod
metadata:
name: "${pod_name}"
spec:
@nijave
nijave / chinese_switches.md
Created April 25, 2026 17:19
Table of Chinese switch OEMs and brands

Complete brand catalog with evidence tiers

The following table organizes every identified brand by the strength of evidence linking it to the shared OEM ecosystem. All these brands sell switches built around Realtek chipsets (primarily RTL8373-CG + RTL8224-CG for 2.5GbE models and RTL9303 + RTL8261BE for 10GbE models) in near-identical or identical hardware configurations.

Tier 1 — Confirmed via manufacturer's own documentation or PCB markings:

Brand Key evidence Likely OEM source
Hasivo Original manufacturer Sichuan Hasivo Electronics
MokerLink Hasivo-branded PCBs inside units; Hasivo website OEM pages; "HS_" firmware prefix Sichuan Hasivo Electronics
@nijave
nijave / sas3-table.py
Created January 17, 2026 17:59
Print out disk information for zpool disks attached to a SAS3 controller
#!/usr/bin/env python3
"""
Usage: sas3-table.py <controller #>
Takes <controller #> like you'd pass to sas3ircu
Requires
- sas3ircu (assumes passwordless sudo)
- lsblk
@nijave
nijave / serverpartdeals.py
Last active February 14, 2025 01:15
serverpartdeals.com $/TiB
import re
import niquests
import sys
from bs4 import BeautifulSoup
def parse_page(soup):
drives = soup.find_all(class_="boost-pfs-filter-product-bottom")
for drive in drives:
@nijave
nijave / openssl-hash.sh
Created June 16, 2024 21:08
OpenSSL PBKDF2
#!/usr/bin/env sh
set -e
pw=$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c 20)
iterations=100000
eval $(echo -n "$pw" | openssl enc -pbkdf2 -pass pass:/dev/stdin -aes-256-cbc -P -md sha256 -iter $iterations | grep -E '^(salt|key)')
pwHash={PBKDF2}${iterations}\$${salt}\$${key}
echo "$pwHash"