Skip to content

Instantly share code, notes, and snippets.

View alexwlchan's full-sized avatar

Alex Chan alexwlchan

View GitHub Profile
@alexwlchan
alexwlchan / keybase.md
Created October 12, 2017 13:42
keybase.md

Keybase proof

I hereby claim:

  • I am alexwlchan on github.
  • I am alexwlchan (https://keybase.io/alexwlchan) on keybase.
  • I have a public key whose fingerprint is 82FE A59D 07EE 6274 20D7 E85D F859 A49F A148 6C23

To claim this, I am signing this object:

@alexwlchan
alexwlchan / Screenshot 2019-09-22 at 18.04.32.png
Last active September 22, 2019 17:06
Script for an Alfred shortcut to open PyPI docs
Screenshot 2019-09-22 at 18.04.32.png
@alexwlchan
alexwlchan / example.tfstate.step1
Last active October 27, 2021 06:59
Terraform bug repro information
{
"version": 4,
"terraform_version": "1.0.9",
"serial": 1,
"lineage": "693cb572-091c-756e-8b64-65f51416d352",
"outputs": {},
"resources": [
{
"mode": "managed",
"type": "aws_s3_bucket",
@alexwlchan
alexwlchan / flickypedia_bot_minimal_example.py
Last active April 10, 2024 11:45
Flickypedia bot help question
import json
import httpx
import keyring
# 1. Retrieve the Wikimedia API token from the system keychain
api_token = keyring.get_password("flickypedia_backfillr_bot", "api_token")
# 2. Create an HTTP client
client = httpx.Client(