Skip to content

Instantly share code, notes, and snippets.

View alex's full-sized avatar

Alex Gaynor alex

View GitHub Profile

Keybase proof

I hereby claim:

  • I am alex on github.
  • I am alex_gaynor (https://keybase.io/alex_gaynor) on keybase.
  • I have a public key ASBH6wNjBRwawkPJQf6vfXEiVB1dQ8S0YtGUoY0nFwSpQgo

To claim this, I am signing this object:

Most downloaded projects

SELECT
  file.project,
  COUNT(*) as total_downloads,
FROM
  TABLE_DATE_RANGE(
    [the-psf:pypi.downloads],
    TIMESTAMP("20160114"),
diff --git a/docs/x509.rst b/docs/x509.rst
index 5f36a92..4730319 100644
--- a/docs/x509.rst
+++ b/docs/x509.rst
@@ -646,7 +646,7 @@ X.509 Extensions
certificate. This attribute only has meaning if ``ca`` is true.
If ``ca`` is true then a path length of None means there's no
restriction on the number of subordinate CAs in the certificate chain.
- If it is zero or greater then that number defines the maximum length.
+ If it is zero or greater, then that number defines the maximum length.
diff --git a/src/cryptography/hazmat/backends/openssl/x509.py b/src/cryptography/hazmat/backends/openssl/x509.py
index dd2aba6..4f53f73 100644
--- a/src/cryptography/hazmat/backends/openssl/x509.py
+++ b/src/cryptography/hazmat/backends/openssl/x509.py
@@ -259,7 +259,9 @@ class _Certificate(object):
raise x509.DuplicateExtension(
"Duplicate {0} extension found".format(oid), oid
)
- elif oid == x509.OID_BASIC_CONSTRAINTS:
+
src/cryptography/hazmat/backends/openssl/x509.py | 26 +++++++++---------------
1 file changed, 10 insertions(+), 16 deletions(-)

Tips for Scaling Web Apps

  • Magic numbers

    • 100ms ideal 50th percentile latency, 1 second 98th percentile solid
    • A medium sized physical box (8 cores, 24GB of RAM) should be able to do thousands of requests per second
  • Monitoring and metrics
  • Deployment strategies

Tips for Scaling Web Apps

  • Magic numbers
    • 100ms ideal 50th percentile latency, 1 second 98th percentile solid
    • A medium sized physical box (8 cores, 24GB of RAM) should be able to do thousands of requests per second
  • Monitoring and metrics
  • Deployment strategies
    • Roll web nodes a few at a time, drain connections
@alex
alex / -
Created April 15, 2015 00:57
'0\x80\x02\x14\x02\x92\x00\x05\x02 \x00\x10G\xfe\xf9V\x08~\x9de\x8d6<@\x02\x00\x04\x800\x80\x00\x00\x02\x00\x15\x15 \x00\x10G\xfe\xf9V\x08~\x9de\x8d6<@\x02\x00\x04\x800\x80\x14\x03\x7f\x15\x15\x15\x15\xf6\x14\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x150x0\x00\x00&\x15\x15\x15\x15\x15\x15\x15\x15\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x80\x02\x14\x02\x92\x00\x05\x02 \x00\x10G\xfe\xf9V\x08~\x9de\x8d6<@\x02\x00\x04\x800\x80\x00\x00\x02\x00\x15\x15 \x00\x10G\xfe\xf9V\x08~\x9de\x8d6<@\x02\x00\x04\x800\x80\x14\x03\x7f\x15\x15\x15\x15\xf6\x14\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x15\x150x0\x00\x00&\x15\x15\x15\x15\x15\x15\x15\x15\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x15U\x15\x15\x15\x15\
@alex
alex / 0.sig
Last active August 29, 2015 14:19
0,’Ò_!>[Fþù7~e…A£ë-ع¿³MÆ)rUÃ+¦¼Œ€Vå
diff --git a/content/drafts/red-hat-open-source-community.rst b/content/drafts/red-hat-open-source-community.rst
index 4bff01f..cf6565f 100644
--- a/content/drafts/red-hat-open-source-community.rst
+++ b/content/drafts/red-hat-open-source-community.rst
@@ -6,8 +6,9 @@ software that is a decade old, and which its maintainers want nothing to do
with. This post isn't about whether maintaining old software is a good or a bad
idea. It's about the effect it has on the community.
-The Python core developers have ceased providing *any* support for Python 2.6 as
-of October 2013, but Red Hat will continue to support it in RHEL 5, until 2020.