Skip to content

Instantly share code, notes, and snippets.

[
{
"fields": [
{
"mode": "NULLABLE",
"name": "user_agent_browser",
"type": "STRING"
},
{
"mode": "NULLABLE",
[
{
"name": "submission_timestamp",
"type": "TIMESTAMP"
},
{
"name":"document_type",
"type": "STRING"
}
]
λ kenshin misc → λ git master → python manage_elb_certs.py check --cert_id arn:aws:iam::142069644989:server-certificate/cloudfront/wildcard.stage.mozaws.net-20170412
tokenserver-stage
docker-registry-stage
mkt-receipt-si-ELB-1E93NB2M22UB3
bouncer-stage-ELB-XOSBQXBTBF8B
edwong-webpush-elb
bouncer-stage-ELB-1RGEQ1BZYS5IH
delivery-stage-ELB-136UKGPZDO8VN
bouncer-dev-de-ELB-GJ2FDYGH5W8R
test-stage-1-E-ELB-1EAW81OG6GREQ
@jasonthomas
jasonthomas / bulkaddcerts.py
Created January 3, 2017 18:32 — forked from eviljeff/bulkaddcerts.py
snippet to be run in django-admin shell `./manage.py shell` to bulk add certs from 'certs.txt' file in format [issuer: xx serial: yy].
from olympia.blocklist.models import BlocklistDetail, BlocklistIssuerCert
def addCert(issuer, serial, name, bug):
detail = BlocklistDetail(name=name, why='.', who='.', bug=bug)
detail.save()
cert = BlocklistIssuerCert(issuer=issuer, serial=serial, details=detail)
cert.save()
u'os' is a required property Failed validating u'required' in schema: {u'additionalProperties': False, u'default': {u'devices': [], u'driverVersion': u'', u'driverVersionComparator': u'', u'driverVersionMax': u'', u'feature': u'', u'featureStatus': u'', u'hardware': u'', u'os': u'', u'vendor': u''}, u'definitions': {u'maxVersion': {u'description': u'The maximum version.', u'title': u'Max version', u'type': u'string'}, u'minVersion': {u'description': u'The mininum version.', u'title': u'Min version', u'type': u'string'}}, u'description': u'A graphic driver blocklist entry.', u'properties': {u'blockID': {u'description': u'Original block id, eg. g28', u'pattern': u'^g[0-9]+$', u'title': u'Internal blocklist id', u'type': u'string'}, u'details': {u'properties': {u'bug': {u'type': u'string'}, u'created': {u'format': u'date-time', u'type': u'string'}, u'name': {u'type': u'string'}, u'who': {u'type': u'string'}, u'why': {u'type': u'string'}}, u'title': u'Details', u'type': u'object'}, u'devices': {u'description': u'
[jthomas@mktadm1 current]$ ./venv/bin/python ./venv/bin/pip freeze
Babel==0.9.6
Cython==0.21.1
Django==1.7.1
Jinja2==2.7.2
M2Crypto==0.22.3
MarkupSafe==0.18
MySQL-python==1.2.5
Pillow==2.7.0
Pygments==1.5
@jasonthomas
jasonthomas / -
Last active August 29, 2015 14:25 — forked from anonymous/-
#!/bin/bash
#
# Poor mans Consul bootstrap helper. Originally we created a configuration snippit in
# /etc/consul.d with a retry_join host of an ELB endpoint. Murphy's law means that
# on occasion the ELB will have Consul connecting to itself.
#
# The AWS API is queried for a list of ELBs that we're behind, and then we get the
# IPs of all other ELB backends and attempt to join them.
# Print messages
DROP TABLE IF EXISTS auth_user_groups;
DROP TABLE IF EXISTS auth_user_user_permissions;
DROP TABLE IF EXISTS django_admin_log;
DROP TABLE IF EXISTS auth_user;
DROP TABLE IF EXISTS addons_categories;
DROP TABLE IF EXISTS categories;
ALTER TABLE files DROP COLUMN is_packaged;
ALTER TABLE addon_payment_account DROP COLUMN set_price;
CERTIFICATE_RE = re.compile(r"-----BEGIN CERTIFICATE-----.+?"
"-----END CERTIFICATE-----", re.S)
paragraph = \
'''
<p>
This is a paragraph.
It has multiple lines.
</p>
<p>
Host *.mozilla.com
User jthomas
ForwardAgent yes
ServerAliveInterval 10