Skip to content

Instantly share code, notes, and snippets.

Cory Benfield Lukasa

Block or report user

Report or block Lukasa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Lukasa
Lukasa / requirements.txt
Created Apr 14, 2015
Twisted HTTP/2 spike
View requirements.txt
Twisted==15.1.0
hpack==1.0.0
hyperframe==1.0.0
@Lukasa
Lukasa / old_certs.pem
Created Apr 23, 2015
expired certificates
View old_certs.pem
# Issuer: CN=Entrust.net Secure Server Certification Authority O=Entrust.net OU=www.entrust.net/CPS incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited
# Subject: CN=Entrust.net Secure Server Certification Authority O=Entrust.net OU=www.entrust.net/CPS incorp. by ref. (limits liab.)/(c) 1999 Entrust.net Limited
# Label: "Entrust.net Secure Server CA"
# Serial: 927650371
# MD5 Fingerprint: df:f2:80:73:cc:f1:e6:61:73:fc:f5:42:e9:c5:7c:ee
# SHA1 Fingerprint: 99:a6:9b:e6:1a:fe:88:6b:4d:2b:82:00:7c:b8:54:fc:31:7e:15:39
# SHA256 Fingerprint: 62:f2:40:27:8c:56:4c:4d:d8:bf:7d:9d:4f:6f:36:6e:a8:94:d2:2f:5f:34:d9:89:a9:83:ac:ec:2f:ff:ed:50
# Issuer: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 2 Policy Validation Authority
# Subject: CN=http://www.valicert.com/ O=ValiCert, Inc. OU=ValiCert Class 2 Policy Validation Authority
@Lukasa
Lukasa / run.py
Created Jun 3, 2015
Generate images of GPG signatures
View run.py
import getpass
import gnupg
from PIL import Image, ImageFont, ImageDraw
g = gnupg.GPG()
data = raw_input('Tweet: ')
passphrase = getpass.getpass('Passphrase: ')
@Lukasa
Lukasa / send_email.py
Created Aug 6, 2012
An example script for sending a text file to yourself via email
View send_email.py
#!/usr/bin/env python
'''A script that sends the contents of a file in a plain-text email.'''
# Imports
import smtplib
import sys
# Important constants.
FROM_ADDR = 'name@example.com'
FROM_PASS = 'thisisntarealpassword'
@Lukasa
Lukasa / zfs_report.sh
Created Aug 6, 2012
A script to test the health of ZFS pools.
View zfs_report.sh
#!/bin/bash
# This script checks the state of all zpools. If an error is found, it
# emails the contents of zpool status to the administrator.
mkdir -p ~/.zpool_status
cd ~/.zpool_status
result=`zpool status -x`
@Lukasa
Lukasa / gist:3379184
Created Aug 17, 2012
Post-commit hook for use with Django's collectstatic.
View gist:3379184
#!/bin/bash
# This script should be placed in the .git/hooks directory and marked
# executable. It has the effect of minifying all of the files in the
# _static/css directory and placing them in the static/css directory, before
# pushing them to S3.
set -e
# Set some constants
INDIR="_static/css"
@Lukasa
Lukasa / onename.txt
Created Oct 24, 2015
OneName verification
View onename.txt
Verifying that +lukasa is my blockchain ID. https://onename.com/lukasa
@Lukasa
Lukasa / cookie_test.py
Created Sep 28, 2013
An example of how to persist cookies in Requests.
View cookie_test.py
@Lukasa
Lukasa / error.txt
Created Sep 9, 2015
Hypothesis weird error
View error.txt
cory@corymbp:hyper-h2/ % tox -e py27 5d25507|twisted✓ [0m]
GLOB sdist-make: /Users/cory/Documents/Python/hyper-h2/setup.py
py27 inst-nodeps: /Users/cory/Documents/Python/hyper-h2/.tox/dist/h2-0.1.0.zip
py27 runtests: PYTHONHASHSEED='3864724170'
py27 runtests: commands[0] | py.test -n 4 --cov h2 /Users/cory/Documents/Python/hyper-h2/test/
============================= test session starts ==============================
platform darwin -- Python 2.7.10 -- py-1.4.30 -- pytest-2.7.2
rootdir: /Users/cory/Documents/Python/hyper-h2, inifile:
plugins: hypothesis-pytest, cov, xdist, xdist, xdist
gw0 [33] / gw1 [31] / gw2 [31] / gw3 [33]
@Lukasa
Lukasa / certdata-in.txt
Created Oct 24, 2013
Go: extract-nss-root-certs
View certdata-in.txt
This file has been truncated, but you can view the full file.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
CVS_ID "@(#) $RCSfile: certdata.txt,v $ $Revision: 1.87 $ $Date: 2012/12/29 16:32:45 $"
#
# certdata.txt
#
You can’t perform that action at this time.