Skip to content

Instantly share code, notes, and snippets.

View lukebakken's full-sized avatar

Luke Bakken lukebakken

View GitHub Profile
@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
    
@lukebakken
lukebakken / README.md
Last active December 27, 2017 22:54
queue-index-disk-space-VuICv0AMzKo

PerfTest

--uri amqp://localhost:5672 --producers 1 --consumers 0 \
    --size 2048 --predeclared --exchange exchange-VuICv0AMzKo \
    --routing-key VuICv0AMzKo --flag persistent --rate 1024
lbakken@MESSIAEN ~/vagrant/CENTOS-7
$ vagrant ssh
[vagrant@localhost ~]$ sudo -i
[root@localhost ~]# curl -LO https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1.7-1~centos~7_amd64.rpm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 40.9M 100 40.9M 0 0 3464k 0 0:00:12 0:00:12 --:--:-- 4768k
[root@localhost ~]# yum install ./esl-erlang_20.1.7-1~centos~7_amd64.rpm
Loaded plugins: fastestmirror
Examining ./esl-erlang_20.1.7-1~centos~7_amd64.rpm: esl-erlang-20.1.7-1.x86_64
@lukebakken
lukebakken / README.md
Last active December 27, 2017 13:48
Restart RabbitMQ TLS acceptors with new settings

Restarting RabbitMQ TLS Listeners with new TLS options

Connect via remsh

Be sure to use the correct path to the cookie - probably /var/lib/rabbitmq/.erlang.cookie:

erl -sname node@MESSIAEN -setcookie "$(< $HOME/.erlang.cookie)" -remsh 'rabbit@MESSIAEN'
@lukebakken
lukebakken / FOOTER.md
Last active February 26, 2023 23:21
StackOverflow Answer footer