--uri amqp://localhost:5672 --producers 1 --consumers 0 \
--size 2048 --predeclared --exchange exchange-VuICv0AMzKo \
--routing-key VuICv0AMzKo --flag persistent --rate 1024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| "os" | |
| "time" | |
| ) | |
| func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import pika | |
| import sys | |
| def callback(ch, method, properties, body): | |
| pass | |
| # print(" [x] Received %r" % body) | |
| queue_name = sys.argv[1] | |
| cp = pika.ConnectionParameters('shostakovich') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| require 'bunny' | |
| require 'glutton_ratelimit' | |
| require 'pp' | |
| conn = Bunny.new | |
| conn.start | |
| ch = conn.create_channel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| declare -r node='rabbit@shostakovich' | |
| declare -r user='guest' | |
| declare -r pass='guest' | |
| declare -ir queue_count=9 |