Create a Docker container that allows us to run Docker commands inside it.

Create a Docker container that allows us to run Docker commands inside it.

Tiempo de lectura: < 1 minuto Today, I bring you this tutorial born out of the need to execute Docker commands using the task scheduler Ofelia (https://devcodelight.com/automatizar-tareas-con-cron-desde-docker-con-ofelia) To execute Docker commands within a container that is running with Docker on a local machine, the first thing we need to do is add a Docker client to our container. To create the … Read more

Encrypt a file and get it decrypted using FAST-API

Encrypt a file and get it decrypted using FAST-API

Tiempo de lectura: 2 minutos Today we are going to learn how to store an encrypted file and how to decrypt it to return it in a response. We will use the Fernet library. pip install cryptography First, let’s create an encryption key with Fernet. def generate_key(): key = Fernet.generate_key() return key.decode(‘utf-8’) With this function, we can obtain a random … Read more

Create a terms of use acceptance widget with Flutter

Create a terms of use acceptance widget with Flutter

Tiempo de lectura: 2 minutos Today we are going to learn how to create a Widget that allows us to accept the terms of use of the system before registering on the platform. The first thing we are going to do is create this widget, which we will call condiciones_uso.dart import ‘package:flutter/material.dart’; class CondicionesUso extends StatefulWidget { CondicionesUso ({Key? key}) … Read more