Skip to content

Instantly share code, notes, and snippets.

@christo-zero-john
christo-zero-john / instructions.md
Created December 20, 2025 15:04
Instructions to get your free Gemini API Key

How to Get a Gemini API Key & Set Up Billing

This guide walks you through obtaining a Gemini API key from Google AI Studio, understanding the Free vs. Paid tiers, and setting up Google Cloud billing to unlock the $300 free credit.

1. Get Your Free Gemini API Key

  1. Go to Google AI Studio: Visit aistudio.google.com.
  2. Sign In: Log in with your Google account.
  3. Get API Key:
  • Click on the "Get API key" button in the top-left corner or sidebar.

GitHub Authentication via SSH using a YubiKey

1. Generate a resident authentication key

A separate key from the signing one — same process, different application name:

ssh-keygen -t ed25519-sk -O resident -O application=ssh:<your-username>-auth -O user=<your-username> -C "<your-email>" -f "$env:USERPROFILE\.ssh\id_ed25519_sk_<your-username>-auth"

YubiKey SSH Signing Key Setup

1. Generate the FIDO2 resident key on the YubiKey

ssh-keygen -t ed25519-sk -O resident -O application=ssh:<your-username>-signing -O user=<your-username> -C "<your-email>" -f "$env:USERPROFILE\.ssh\id_ed25519_sk_<your-username>-signing"

Key flags:

  • -t ed25519-sk — hardware-backed FIDO2 key
@muhiminulhasan
muhiminulhasan / README.md
Last active September 12, 2026 17:15
Fix for Windows 11 missing Taskbar Toolbands. Real-time Network Speed Meter (Up/Down) with Auto-Positioning and Light/Dark mode support.

Windows 11 Network Speed "Taskbar Band" Overlay

A lightweight, theme-aware Python utility that restores a real-time network speed monitor to the Windows 11 taskbar.

In Windows 11, Microsoft redesigned the taskbar and officially deprecated Taskbar Toolbands. This change broke popular utilities like DUmeter, leaving power users without a native way to view upload and download speeds at a glance. Existing third-party alternatives often require heavy installations, lack theme support, or fail to align with the new centered taskbar design.

This script does not modify system files or inject code into explorer.exe. Instead, it creates a high-performance PyQt6 overlay that mimics the behavior of the classic taskbar band:

@monperrus
monperrus / claude-weekly-reset.md
Last active September 25, 2026 20:27
Claude Code: the 'weekly' usage limit resets every 72 hours, not 7 days

Claude Max: The "Weekly" Limit Resets Every 72 Hours, Not 7 Days

Background

Claude Pro/Max plans expose a usage API at https://claude.ai/api/oauth/usage that returns two utilization counters:

  • five_hour.utilization — a rolling 5-hour window (well documented)
  • seven_day.utilization — described as a "weekly" cap

The seven_day object also contains a resets_at field. Monitoring this field over ~11 days (June 9–20, 2026) revealed that the "weekly" limit does not reset every 7 days — it resets every 72 hours.