Skip to content

Instantly share code, notes, and snippets.

View sethmlarson's full-sized avatar
🛡️
Keeping the Python ecosystem safe!

Seth Michael Larson sethmlarson

🛡️
Keeping the Python ecosystem safe!
View GitHub Profile
@sethmlarson
sethmlarson / brotlipy-0.7.0-abi3.diff
Created September 2, 2021 17:51
Diff between brotlipy 0.7.0 tag and the source for building the abi3 compatible wheels
diff --git a/setup.py b/setup.py
index f804932..12ae724 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,43 @@
#!/usr/bin/env python
+import platform
+import sys
from setuptools import find_packages, setup
+from setuptools.command.build_ext import build_ext
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

PyPI TUF Key Generation and Signing Ceremony

Attesting that I was watching and listening to the live stream of the ceremony on Youtube for the entire duration of the broadcast without interruption. Notes were taken as I went with a stopwatch keeping track of relative timestamps from the start of the ceremony.

All times are of my viewing of the ceremony, not necessarily as the ceremony actually occurred due to delay between real events and the stream.

@sethmlarson
sethmlarson / urllib3-2.7.x-downloads.md
Created March 14, 2020 17:20
urllib3 2.7.x Downloads
Python Version # of Downloads % of 2.7.x Downloads % of All Downloads
<2.7.9 133029 11.84% 4.06%
>=2.7.9 990229 88.16% 30.21%
2.7.x 1123258 100% 34.27%
All 3277817 N/A 100%
  • This data was gathered from the PyPI dataset for March 11, 2020.
@sethmlarson
sethmlarson / yahoo-http2-issue.py
Last active January 28, 2020 20:28
Code that reproduces Yahoo's HTTP/2 issue.
"""
Code that reproduces Yahoo's HTTP/2 issue.
Requires you to run `python -m pip install h2` before executing.
Example output:
```
Testing 'google.com' with 'send_unknown_setting=False'...
Result: <ResponseReceived stream_id:1, headers:[(b':status', b'301'), (b'location', b...

Keybase proof

I hereby claim:

  • I am sethmlarson on github.
  • I am sethmlarson (https://keybase.io/sethmlarson) on keybase.
  • I have a public key whose fingerprint is EDD5 6765 A9D8 4653 CBC8 A134 51B0 6736 1740 F5FC

To claim this, I am signing this object: