Skip to content

Instantly share code, notes, and snippets.

@JohnTube
JohnTube / PlayFabCloudScript.js
Last active November 19, 2026 02:11
Photon custom authentication done in PlayFab in a special way to make use of Data and AuthCookie features but also allow/block list AppVersions.
// custom auth endpoint: https://{PlayFabTitleId}.playfablogic.com/webhook/1/prod/{PhotonSecretKey}/CustomAuth
// you can replace CustomAuth handler name and also in the URL
// C# client snippet:
// AuthenticationValues authValues = new AuthenticationValues();
// authValues.AuthType = CustomAuthenticationType.Custom;
// Dictionary<string, object> data = new Dictionary<string, object>(6);
// data["UserId"] = userId; // PlayFabId
// data["AppId"] = appId; // Photon AppId
// data["AppVersion"] = appVersion // Photon AppVersion
// data["Ticket"] = ticket; // PlayFab auth session ticket
@nidhi-singh02
nidhi-singh02 / qwen4-max-claude-code.zsh
Created November 18, 2026 10:13
Run Qwen 4 Max inside Claude Code via OpenRouter (~/.zshrc setup)
# Run Qwen 4 Max inside Claude Code via OpenRouter
# From the video "Qwen 4 Max: I made it edit my video (setup + honest take)"
#
# 1. Create an OpenRouter API key (openrouter.ai → Workspaces → Keys → New key; set a credit limit)
# 2. Paste this at the end of ~/.zshrc (macOS) and put your key in
# 3. Run: source ~/.zshrc
# 4. Start it with: claude-qwen (plain `claude` stays on your normal setup)
# Use /effort to switch reasoning: low → low, medium/high → high, xhigh/max → extra high
claude-qwen() ( # ( ) = subshell: these vars only apply to this run
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active November 19, 2026 01:50
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@ThiagoBarradas
ThiagoBarradas / windows-keys.md
Created December 8, 2024 07:35 — forked from rvrsh3ll/windows-keys.md
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@mgaming123GJNge3
mgaming123GJNge3 / ROB-RUN-settings.md
Created November 17, 2026 16:21
ROB RUN cheats — Windows overlay with 42 runtime options including ESP, fly mode, infinite ammo, infinite money and free base upgrades. Three presets. No game files modified. Free.

ROB RUN — Windows Runtime Settings (2026)

Windows overlay for ROB RUN — open-world survival shooter on Steam. 42 options · Three presets · No game file modifications · Current Steam build

Download

Steam

Activate Windows with PowerShell

This method demonstrates how to activate Windows using PowerShell in administrator mode.

Steps to Activate Windows:

  1. Open PowerShell as an administrator:

    • Press Win + S, type "PowerShell," then right-click on Windows PowerShell and select Run as administrator.
  2. Run the following command:

@r-u-t-r-A
r-u-t-r-A / gist:1a6dbf8a841162d150877b8f9d4fc24b
Created October 11, 2026 13:28
How to update Sonos Zone player 5(1st gen) to newest firmware available.

Updating an ancient Sonos S1 speaker (firmware 3.x → 11.16) without Sonos support

Oct 11, 2026 · @Artur

TL;DR

A Sonos speaker stuck on 2011-era firmware (3.x, build 16.x) cannot jump straight to the final S1 firmware, but it can get there in two hops from a PC on the same network: 16.7 → 34.16 → 57.23 (display version 11.16.1). No Sonos account, no support call, no telnet, no opening the speaker.

  • Symptoms: the current Sonos apps and the S1 Controller can't find or add the speaker, or an update starts and always fails. http://<speaker-ip>:1400/status/zp shows a SoftwareVersion like 16.x-xxxxx.
  • Tested on: Sonos ZonePlayer S5 / Play:5 (gen 1), hardware 1.16.4.1-2, going from 16.7-48310 (3.6.1) to 57.23-74170 (11.16.1). Both flashes took about 2 minutes each.
@lnxd
lnxd / README.md
Created July 9, 2026 00:47
Decrypting UniFi Backups (both .unf and .unifi)

UniFi Backup Decryption

Overview

Ubiquiti backup files are encrypted, but the keys are currently static and public rather than per site or per device. I have tested both keys against my own backups.

File Structure

Legacy "UniFi Network" controller backup (.unf)