Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ay on github.
  • I am ay (https://keybase.io/ay) on keybase.
  • I have a public key whose fingerprint is BE22 5F98 6634 D587 106F 618E 5D78 E766 B54E B569

To claim this, I am signing this object:

class Gnupg21 < Formula
desc "GNU Privacy Guard: a free PGP replacement"
homepage "https://www.gnupg.org/"
url "https://gnupg.org/ftp/gcrypt/gnupg/gnupg-2.1.11.tar.bz2"
mirror "https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/gnupg/gnupg-2.1.11.tar.bz2"
sha256 "b7b0fb2c8c5d47d7ec916d4a1097c0ddcb94a12bb1c0ac424ad86b1ee316b61a"
bottle do
sha256 "725cb9cebd07ca0ab9ea56a5742c765b77f0eed17f7c4428b575c40eea35ac8b" => :el_capitan
sha256 "a699c10bc5324df5b88cd1612b7aa9c4b841986d7438eed542a4b59816cf41e2" => :yosemite
@ay
ay / keybase-2016.md
Last active December 30, 2016 14:26

Keybase proof

I hereby claim:

  • I am ay on github.
  • I am ay (https://keybase.io/ay) on keybase.
  • I have a public key whose fingerprint is BE22 5F98 6634 D587 106F 618E 5D78 E766 B54E B569

To claim this, I am signing this object:

@ay
ay / ycombinator.scm
Last active August 29, 2015 14:16
Factorial with Y combinator
(define (f partial)
(lambda (n)
(cond ((= n 0) 1)
(else (* n (partial (- n 1)))))))
(define (y f)
((lambda (g)
(g g)) (lambda (g) (lambda (n) ((f (g g)) n)))))
(define fact (y f))
@ay
ay / sslKeyExchange.c
Last active August 29, 2015 13:56
First revision is http://opensource.apple.com/source/Security/Security-55179.13/libsecurity_ssl/lib/sslKeyExchange.c?txt and second is http://opensource.apple.com/source/Security/Security-55471/libsecurity_ssl/lib/sslKeyExchange.c?txt. Line 631 in the second revision is what became known as the gotofail bug (CVE-2014-1266), which essentially bro…
/*
* Copyright (c) 1999-2001,2005-2012 Apple Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* compliance with the License. Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this