Skip to content

Instantly share code, notes, and snippets.

View AugustoCiuffoletti's full-sized avatar

AugustoCiuffoletti

View GitHub Profile
@AugustoCiuffoletti
AugustoCiuffoletti / MatildaBenchmark.md
Last active May 18, 2021 16:45
Benchmark for the matilda annotation service

Matilda benchmark

Nello script si possono configurare il dominio e la porta del target.

Si può passare come parametro (opzionale) il numero di sessioni di test concorrenti. Default: 10.

Ogni sessioni di test una operazione di login e una query.

Produce in output il tempo medio di servizio per ogni sessione

@AugustoCiuffoletti
AugustoCiuffoletti / HOWTO_MongoDB_OpenStack.md
Last active January 27, 2023 09:04
A MongoDB server in a OpenStack infrastructure

How to create a MongoDB server in a OpenStack infrastructure

This tutorial guides thorough the steps needed to implement an Ubuntu 20.04 OpenStack instance running a MongoDB server. The resulting server is opened only to hosts inside the infrastructure, and is optionally accessible from the outside using ssh. The data of the database are hosted in a single OpenStack volume, data replication is not covered here.

The steps are the following:

  • creation of the compute instance
  • creation of the volume
  • linking the volume to the instance
  • install mongodb
@AugustoCiuffoletti
AugustoCiuffoletti / UbuntuMini.md
Last active July 31, 2024 12:47
A script to produce a minimal Ubuntu image for VirtualBox (without the mini.iso)

Living without the Ubuntu mini.iso (in VirtualBox)

The mini.iso for the Ubuntu distribution is legacy since version 20.04LTS (Focal Fossa). This is a bad news for those (like me) that formerly used this distribution to produce lightweight virtual machines for development, teaching, testing, etc. A distribution of the mini.iso for Ubuntu 20.04 is indeed still available here, but there is no guarantee that its availability will continue after Focal Fossa. An askubuntu post on the topic (there are several) is here.

So I decided to find a way to do without the mini.iso, and I wrote this script that takes to the ''tasksel'' step starting from a cloud image in the ubuntu repository. You have many options here about the image format to use: I refer to the .ova file that you find in fo

@AugustoCiuffoletti
AugustoCiuffoletti / HOWTO.md
Last active September 11, 2023 04:30
How to configure a Raspberry Pi as a mobile hotspot using a UMTS dongle

Configuring a Raspberry as a UMTS concentrator for IoT

Browsing around I found the pieces of this solution, and I put them together in a guide.

I did not use the guide in the Raspberry site since I found it complicate to make it compatible with the mobile dongle, and I used instead the NetworkManager daemon, following many advices in that sense I found in technical blogs. The problem with this solution is that, as of now, it is incompatible with the native solution in the Raspian distribution, and so I removed some native network tools. This is relevant if you plan to alter the network configuraton of the Raspberry, but it is otherwise transparent.

The reason why I developed this solution is to have an autonomous IoT concentrator device; as succh, it does not provide Internet access to devices connected to the RPi through WiFi or wired Ethernet. In t