Skip to content

Instantly share code, notes, and snippets.

View planecore's full-sized avatar

Matan Mashraki planecore

View GitHub Profile
@planecore
planecore / README.md
Last active February 28, 2026 20:00 — forked from vildanbina/README.md
Show 5h/7d API usage in your terminal statusline (macOS)

CC Usage Statusline (macOS)

Shows your remaining 5-hour and 7-day Claude API capacity with visual bars and reset times.

Usage: 5h ━━━━━━━━━━ 98% (02:00) │ 7d ━━━━━━━━━╌ 90% (Fri 08:00)

Reads credentials from the macOS Keychain (Claude Code-credentials).

@planecore
planecore / enable_sentry.py
Created February 11, 2022 14:05
Enable Sentry Mode
from decouple import config
import teslapy
with teslapy.Tesla(config('EMAIL')) as tesla:
if not tesla.authorized:
tesla.refresh_token(refresh_token=config('TOKEN'))
tessie = tesla.vehicle_list()[0]
tessie.sync_wake_up()
@planecore
planecore / Coronavirus.js
Last active October 20, 2024 20:45
Coronavirus Scriptable Widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: user-md;
// change "country" to a value from https://coronavirus-19-api.herokuapp.com/countries/
const country = "Israel"
const url = `https://coronavirus-19-api.herokuapp.com/countries/${country}`
const req = new Request(url)
const res = await req.loadJSON()
if (config.runsInWidget) {