Skip to content

Instantly share code, notes, and snippets.

View cburmeister's full-sized avatar

Corey Burmeister cburmeister

View GitHub Profile
>>> from suds.client import Client
>>> url = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'
>>> client = Client(url)
>>> print client
Suds ( https://fedorahosted.org/suds/ ) version: 0.4 GA build: R699-20100913
Service ( checkVatService ) tns="urn:ec.europa.eu:taxud:vies:services:checkVat"
Prefixes (1)
ns0 = "urn:ec.europa.eu:taxud:vies:services:checkVat:types"

Syncing catalog with Transifex

Install the latest client:

$ pip install transifex-client==0.11b3

Initialize Transifex configuration directory:

@cburmeister
cburmeister / juno
Last active January 17, 2016 20:35
A surfraw elvi to search juno.co.uk
#!/bin/sh
# elvis: juno -- Search juno.co.uk (www.juno.co.uk)
# Corey Burmeister, last name dot first name at gmail.com
. surfraw || exit 1
w3_usage_hook()
{
cat << EOF
Usage: $w3_argv0 [options] [search words]...
@cburmeister
cburmeister / sog.md
Created January 20, 2016 18:02
Sea of green method for harvesting spices

SOG

Requires two rooms on independent light cycles. One room contains a small cloning area and two vegetation sites, the other contains two blooming sites. The vegetation room should be on an 18/6 or 24 hour light cycle and the blooming room should be on a 12/12 light cycle.

On the first of each month take 4 cuts; each a potential candidate for one of your two vegetation sites. Then harvest a plant from the bloom room and replace it with one from the veg room. On the 15th of each month transport your rooted

def as_dict(self):
return {c.name: getattr(self, c.name) for c in self.__table__.columns}
@cburmeister
cburmeister / app.py
Created August 22, 2017 21:26
An example of how to dogfood a Flask API.
from flask import Flask, url_for
from werkzeug.test import Client
from werkzeug.wrappers import Response
app = Flask(__name__)
@app.route('/bar')
def bar():
return 'Hello World!'
@cburmeister
cburmeister / script.sh
Created November 27, 2017 08:15
Update docker on Ubuntu
service docker stop
apt-get remove docker.io
wget -qO- https://get.docker.com/ | sh
service docker start
@cburmeister
cburmeister / app.py
Created November 29, 2017 01:57
Sanitize SSNs from outgoing Sentry payloads
import raven
sentry_client = raven.Client(
...,
processors=(
...,
'processors.SanitizeSSNProcessor',
),
)