Skip to content

Instantly share code, notes, and snippets.

@majd
majd / codex-resets
Created June 27, 2026 10:44
Codex Resets Summary
#!/usr/bin/env python3
import json
import urllib.request
from datetime import datetime, timezone
from pathlib import Path
AUTH = Path("~/.codex/auth.json").expanduser()
URL = "https://chatgpt.com/backend-api/wham/rate-limit-reset-credits"
### Keybase proof
I hereby claim:
* I am majd on github.
* I am majd (https://keybase.io/majd) on keybase.
* I have a public key whose fingerprint is 5C63 6C75 B368 C247 8276 AF97 4479 AF43 1FE0 BEEF
To claim this, I am signing this object:
@majd
majd / airpods_stock.php
Last active December 28, 2016 18:34
Check AirPods' stock in specified Apple Stores
<?php
/* HOW TO:
*
* 1. Get store name & identifier from http://www.istocknow.com/live
* 2. Update the stores array below
* 3. Run this and wait to get spammed with emails every minute
*
* Thanks to istocknow.com. Please don't spam it with tons of requests.
*/