Skip to content

Instantly share code, notes, and snippets.

Kevin McIntyre kmcintyre

Block or report user

Report or block kmcintyre

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
@kmcintyre
kmcintyre / browser-pref question
Last active Aug 29, 2015
Ask for document or window access post response.
View browser-pref question
var canada_bcs = [
"CAE-B1N", "CAE-B2N", "CAE-B3N", "CAE-B4N", "CAE-B5N", "CAE-B6N", "CAE-B7N", "CAE-B8N", "CAE-B9N", "CAE-BAN", "CAE-BBN", "CAE-BCN", "CAE-BDN", "CAE-BEN", "CAE-BFN", "CAE-BGN", "CAE-BHN", "CAE-BIN", "CAE-BJN", "CAE-T1N", "CAE-T2N", "CAE-T3N", "CAE-T4N", "CAE-T5N", "CAE-T6N", "CAE-T7N", "CAE-T8N", "CAE-T9N", "CAE-TAN", "CAE-TBN", "CAE-TCN", "CAE-TDN", "CAE-TDN", "CAE-TEN", "CAL-T1N", "CAP-B1N", "CAP-B3N", "CAP-B4N", "CAP-B5N", "CAP-B6N", "CAP-B7N", "CAP-B8N", "CAP-B9N", "CAP-BAN", "CAP-BBN", "CAP-BCN", "CAP-BDN", "CAP-BEN", "CAP-BFN", "CAP-BGN", "CAP-BHN", "CAP-BHN", "CAP-T1N", "CAP-T2N", "CAP-T3N", "CAP-T4N", "CAP-T5N", "CAP-T6N", "CAP-T7N", "CAP-T8N", "CAP-T9N", "CAP-TAN", "CAP-TBN", "CAP-TCN", "CAP-TDN", "CAP-TEN", "CAP-TFN", "CAP-TGN", "CAP-THN", "CAP-TIN", "CAP-TJN", "CAS-B3N", "CAS-B4N", "CAS-B5N", "CAS-B6N", "CAS-B7N", "CAS-B8N", "CAS-B9N", "CAS-BAN", "CAS-BBN", "CAS-BCN", "CAS-FRE", "CAS-T1N", "CAS-T2N"
@kmcintyre
kmcintyre / s3copy.py
Last active Jul 10, 2016
Everybody has a s3 boto copy. Here is mine
View s3copy.py
#!/usr/bin/python
#
# I'm pretty sure there's better scripts
#
import sys, getopt, boto, gzip, StringIO
from boto.s3.connection import S3Connection
from boto.s3.key import Key
from socket import gethostname
@kmcintyre
kmcintyre / route53_mx_record.py
Last active Dec 24, 2015
python script for setting the route53 mx record.
View route53_mx_record.py
"""
Requeriments:
$ sudo pip install boto
Edit ~/.boto to use your AWS credentials
This is a script that updates the mx record for a domain to the ec2 instance public dns
"""
You can’t perform that action at this time.