Skip to content

Instantly share code, notes, and snippets.

@metrofx
metrofx / hosts
Created November 4, 2018 02:58
Unblock Reddit in Indonesia: use these DNS records if you don't want to use VPN
151.101.193.140 reddit.com
151.101.65.140 reddit.com
151.101.1.140 reddit.com
151.101.129.140 reddit.com
151.101.193.140 www.reddit.com
151.101.65.140 www.reddit.com
151.101.1.140 www.reddit.com
151.101.129.140 www.reddit.com
151.101.193.140 www.redditstatic.com
151.101.65.140 www.redditstatic.com
@metrofx
metrofx / wezterm.lua
Created August 7, 2024 06:08
WezTerm Config
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
-- This is where you actually apply your config choices
-- config.default_prog = { 'pwsh.exe' }
config.default_prog = { 'ubuntu.exe' }
config.keys = {
{ key = 'q', mods = 'CTRL', action = wezterm.action.QuitApplication },
@metrofx
metrofx / openrouter-apikey-status-checker.py
Created April 8, 2026 09:37
OpenRouter API Key Status Checker
#!/usr/bin/env python3
"""
OpenRouter API Key Status Checker
Usage:
python check_openrouter_key.py <API_KEY>
python check_openrouter_key.py -k <API_KEY>
python check_openrouter_key.py --test [--scenario ok|low|exhausted|unlimited]
"""
import argparse