Skip to content

Instantly share code, notes, and snippets.

@joeskeen
joeskeen / Get-CopilotUsage.ps1
Last active April 2, 2026 17:03 — forked from m0wer/copilot-quota.sh
Github Copilot subscription quota tracker
<#
.SYNOPSIS
Retrieves GitHub Copilot premium usage and pace details via OpenCode-authenticated APIs.
.DESCRIPTION
This file contains only the function definition. To use it as a command, save it to its
own `.ps1` file and dot-source that file from your `$PROFILE`.
This command depends on OpenCode authentication state. Install OpenCode, then run
`opencode auth` and complete GitHub Copilot authentication before using this command.
@joeskeen
joeskeen / check-npm-cache.sh
Last active September 24, 2025 06:10 — forked from phxgg/check-npm-cache.sh
This script will check your npm cache and find if any of the affected packages was pulled in your machine. `chmod +x check-npm-cache.sh` before usage. No dependencies - should work on any system with Bash. (Only tested by me on Linux)
#!/usr/bin/env bash
echo "🔍 Scanning for compromised NPM packages..."
# Define compromised packages and versions
declare -A compromised=(
[ansi-regex]="6.2.1"
[ansi-styles]="6.2.2"
[backslash]="0.2.1"
[chalk]="5.6.1"