Skip to content

Instantly share code, notes, and snippets.

@cburmeister
cburmeister / liquidsoap.liq
Created October 4, 2018 16:59
An example `liquidsoap` configuration file with two input streams and two output streams to `icecast`.
#!/usr/bin/liquidsoap
# Activate the live stream input
set('harbor.bind_addr', '0.0.0.0')
# Configure input A
input_a = input.harbor(
'input_a',
port=8001,
password='bigproblem'
@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',
),
)
@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 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!'
def as_dict(self):
return {c.name: getattr(self, c.name) for c in self.__table__.columns}
@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

@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]...

Syncing catalog with Transifex

Install the latest client:

$ pip install transifex-client==0.11b3

Initialize Transifex configuration directory: