Skip to content

Instantly share code, notes, and snippets.

View lukebakken's full-sized avatar

Luke Bakken lukebakken

View GitHub Profile

Run PerfTest with the following arguments:

--rate 1 --producers 1 --consumers 1 --exchange gh-976 --routing-key gh-976
// This example declares a durable Exchange, an ephemeral (auto-delete) Queue,
// binds the Queue to the Exchange with a binding key, and consumes every
// message published to that Exchange with that routing key.
//
package main
import (
"flag"
"fmt"
"github.com/streadway/amqp"
import logging
from pika import SelectConnection, URLParameters
from threading import Thread
from time import sleep
from argparse import ArgumentParser
class AsyncConnection():
def __init__(self, host):
self.connection_params = URLParameters('amqp://guest:guest@{}:5672/%2F'.format(host))
self.log = logging.getLogger(self.__class__.__name__)
@lukebakken
lukebakken / .gitignore
Created February 14, 2018 01:09 — forked from sjlongland/test.sh
pika test case: channel close bug
venv/
@lukebakken
lukebakken / README.md
Created February 9, 2018 15:29
Great Burn Proposed Wilderness Comment Period - Feb 12th

Great Burn Friends:

It's time to speak out for the Great Burn (deadline Monday, Feb 12). The Nez Perce-Clearwater National Forest is accepting comments for its Forest Plan revision process which will govern how the Great Burn Proposed Wilderness is managed for the next 20 to 30 years.

Will the Great Burn continue to be managed for its fish and wildlife habitat and wilderness values, or will it be opened to motorized and mechanized recreation, mining, or other extractive uses?

Don't delay - the Nez Perce-Clearwater National Forest will only be accepting comments until Monday, February 12th.

Please email your comments to both of these addresses:

Environment:

// This example declares a durable Exchange, an ephemeral (auto-delete) Queue,
// binds the Queue to the Exchange with a binding key, and consumes every
// message published to that Exchange with that routing key.
//
package main
import (
"flag"
"fmt"
"github.com/streadway/amqp"
@lukebakken
lukebakken / README.md
Last active January 3, 2018 20:59
ERL-539

ERL-539

Certificate setup

  • Clone https://github.com/michaelklishin/tls-gen.git
  • Do the following:
    cd tls-gen/basic
    make