Unir dos contenedores definidos dentro de dos docker-compose.yml distintos usando external_links en Docker Compose

Unir dos contenedores definidos dentro de dos docker-compose.yml distintos usando external_links en Docker Compose

Tiempo de lectura: 2 minutos Reading time: < 1 minute Today I’m going to show you how you can connect two containers defined in separate docker-compose.yml files. We have the following: File docker-compose-db.yml: version: "3.1" services: miservicio_mariadb: image: mariadb container_name: mariadb_container env_file: - ./Dockerfile/mysql.env environment: MYSQL_DATABASE: "db" MYSQL_USER: "user" MYSQL_PASSWORD: "pass" MYSQL_ROOT_PASSWORD: "pass_root" volumes: - ./config/mariadb:/var/lib/mysql expose: - 3306 ports: ... Read more

Bash Script Example of a Console Menu

Bash Script Example of a Console Menu

Tiempo de lectura: < 1 minuto EnlighterJSRAW”>#!/bin/bash Function to print “Hello” function hello() { echo “Hello” } Function to print “Goodbye” function goodbye() { echo “Goodbye” } Menu echo “Select an option:” echo “1. Print Hello” echo “2. Print Goodbye” echo “3. Print Hello and Goodbye” read option case $option in 1) hello ;; 2) goodbye ;; 3) hello goodbye ;; … Read more

Generate RSA Key for Commits and PULL in Gitlab Without Authentication

Generate RSA Key for Commits and PULL in Gitlab Without Authentication

Tiempo de lectura: 2 minutos Reading time: 3 minutes Today, I’m going to show you how to create an RSA key to use in your GITLAB projects https://gitlab.com/ First, let’s go to the Ubuntu console (you can use WSL if you’re on Windows) ssh-keygen -t rsa -b 4096 -C “email@example.com” Replace “email@example.com” with the email of your Gitlab account. It … Read more

Connecting Two Separate Docker Compose Setups Using a Network: Nginx Proxy Manager + PHP + MariaDB + PHPMyAdmin

Connecting Two Separate Docker Compose Setups Using a Network: Nginx Proxy Manager + PHP + MariaDB + PHPMyAdmin

Tiempo de lectura: 2 minutos Reading time: 2 minutes To connect two separate Docker Compose setups using the same network, you need to create a custom network in Docker and then add all the services from both Docker Compose setups to that custom network. Here is the updated Docker Compose file for Nginx Proxy Manager with the name of the … Read more

Error when performing a push on a git project: error: insufficient permission…

Error when performing a push on a git project: error: insufficient permission…

Tiempo de lectura: < 1 minuto Reading time: < 1 minute When trying to perform a push on a project that is configured with git, I get the following error: error: insufficient permission for adding an object to repository database .git/objects error: Error building trees To solve this error, I first navigated to the .git directory. Inside this directory, we executed ... Read more

Error PowerShell WSL [end process code 4294967295 (0xffffffff)]

Error PowerShell  WSL [end process code 4294967295 (0xffffffff)]

Tiempo de lectura: < 1 minuto Reading Time: < 1 minute To fix this error that appeared when I started the WSL console, I followed the following steps: First, in the PowerShell console, I executed the following command: wsl –update Since the error persisted, I restarted the computer and it worked. I hope this helps! DevCodeLightdevcodelight.com

Create a Neural Network to Classify Movie Reviews as Positive or Negative

Create a Neural Network to Classify Movie Reviews as Positive or Negative

Tiempo de lectura: 3 minutos Reading Time: 3 minutes Today, I’m going to show you how to create a Neural Network applied to Artificial Intelligence (AI) that can classify movie reviews as positive or negative. Step 1: Prepare the Data First, we need to obtain the data to train our neural network. In this case, we will use the IMDB … Read more

History of MariaDB: How Was This Database Management System Created?

History of MariaDB: How Was This Database Management System Created?

Tiempo de lectura: 2 minutos Reading time: 2 minutes MariaDB is an open-source relational database management system that was released in 2009. It was created as a fork of MySQL by its original creator, Michael Widenius, after MySQL was acquired by Oracle Corporation in 2008. Michael Widenius decided to create MariaDB due to his concerns about the future of MySQL … Read more

Create a Horizontal Navigation Menu Using CSS

Create a Horizontal Navigation Menu Using CSS

Tiempo de lectura: 3 minutos Reading Time: 2 minutes Hello, today I’m going to show you how to create a horizontal navigation menu using CSS: HTML: First, create the basic HTML structure of the navigation menu: <nav> <ul> <li><a href=”#”>Home</a></li> <li><a href=”#”>Services</a></li> <li><a href=”#”>About</a></li> <li><a href=”#”>Contact</a></li> </ul> </nav> CSS: Now let’s apply CSS styles to make the menu horizontal: nav … Read more

Create a Password Reminder Using PHP

Create a Password Reminder Using PHP

Tiempo de lectura: 7 minutos } // Token is valid, update the user’s password $user_id = mysqli_fetch_assoc($result)[‘id’]; if ($password != $confirm_password) { // Passwords don’t match, display error message } $hashed_password = password_hash($password, PASSWORD_DEFAULT); $sql = “UPDATE users SET password = ‘$hashed_password’, token = NULL WHERE id = $user_id”; mysqli_query($connection, $sql); echo “Your password has been successfully updated!”; This tutorial … Read more