Stream queues are divided into two sections:
This file contains 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
TODO: | |
- Move it to github | |
- Create unit tests | |
- Create a CI to execute the tests with github action |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<SCRIPT | |
echo "Installing Docker..." | |
sudo apt-get update | |
sudo apt-get remove docker docker-engine docker.io | |
echo '* libraries/restart-without-asking boolean true' | sudo debconf-set-selections | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
This file contains 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" | |
"github.com/rabbitmq/rabbitmq-stream-go-client/pkg/amqp" | |
"github.com/rabbitmq/rabbitmq-stream-go-client/pkg/stream" | |
"os" | |
"time" | |
) |
This file contains 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
#!/bin/sh | |
sudo apt-get install curl gnupg debian-keyring debian-archive-keyring apt-transport-https -y | |
## Team RabbitMQ's main signing key | |
sudo apt-key adv --keyserver "hkps://keys.openpgp.org" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA" | |
## Launchpad PPA that provides modern Erlang releases | |
sudo apt-key adv --keyserver "keyserver.ubuntu.com" --recv-keys "F77F1EDA57EBB1CC" | |
## PackageCloud RabbitMQ repository | |
curl -1sLf 'https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey' | sudo apt-key add - |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
BOX_IMAGE = "ubuntu/xenial64" |
This file contains 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
import pika | |
import time | |
import sys | |
## Execute the script and then send a message (using the ui) to the queue called myqueue | |
class PyPikaTest: | |
def callback(self, ch, method, properties, body): | |
print("[Message Received] %s" % (body)) | |
time.sleep(2.5 * 60) |
This file contains 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
Last Name | First Name | Email Address | Password | Org Unit Path | Change Password at Next Sign-In | |
---|---|---|---|---|---|---|
Bianchi | Mario | [email protected] | password1 | /Studenti/Studenti Elementari/Prima A | TRUE | |
Rossi | Rossella | [email protected] | password1 | /Studenti/Studenti Elementari/Prima A | TRUE | |
Verdi | Silvia | [email protected] | password1 | /Studenti/Studenti Elementari/Prima B | TRUE | |
Gialli | Ali | [email protected] | password1 | /Studenti/Studenti Elementari/Prima B | TRUE | |
Neri | Marco | [email protected] | password1 | /Studenti/Studenti Elementari/Prima C | TRUE | |
Marroni | Anna | [email protected] | password1 | /Studenti/Studenti Elementari/Prima C | TRUE |
This file contains 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
#!/bin/zsh | |
printf "%dGi/32Gi" $(cat /proc/meminfo | awk '{print $2}' | head -n 2 | tail -n 1)/1024/1024 |