Cisco Router Configuration: Password, IPv4, IPv6, VLAN & SSH
Cisco Router Configuration
Remove Router Password
- Power off the router physically.
- Hold CTRL + Pause keys.
Rommon1>confreg 0x2142
Rommon2>reset
Router>enable
Router#copy startup-config running-config
Change Passwords
(config)#config-register 0x2102
(config)#exit
Router#copy running-config startup-config
Router#reload
Set Router Password
(config)#enable secret (password)
(config)#line console 0
(config-line)#password (password)
(config-line)#login
(config-line)#exit
(config)#line vty 0 4
(config-line)#password
PHP & MySQL: User Data Management
Connecting to the Database
$conexion = new mysqli("localhost", "root", "", "datos");
Form Handling (formulario.php)
<title>Save User</title>
Saving User Data (operacionguardar.php)
include("conexion.php");
$nombre = $_POST['nombre'];
$Dni = $_POST['Dni'];
$correo = $_POST['correo'];
$query = "INSERT INTO usuarios (nombre, Dni, correo) VALUES ('$nombre', '$Dni', '$correo')";
$resultado = $conexion->query($query);
if ($resultado) {
header("location:tabla.php");
} else {
echo "Insertion
Read More
Flask MySQL CRUD Application Example
Flask Application Setup
This document outlines a basic CRUD (Create, Read, Update, Delete) application built using Python’s Flask framework and a MySQL database.
Dependencies and Initialization
First, import the necessary libraries and initialize the Flask application and MySQL connection.
from flask import Flask, request, render_template, redirect, url_for, flash
from flask_mysqldb import MySQL
# Initialize Flask app (always use __name__ parameter)
app = Flask(__name__)
# Connect to the Database
Read More
Memory Management: Paging, Segmentation, Virtual Memory
Memory Management in Operating Systems
When the operating system (OS) loads a program into memory, it needs to locate code and data, allocate a stack, and initiate its execution. The processor, working with the operating system, translates logical addresses into physical ones.
Requirements for Memory Management
- Relocation: A process might be swapped out to secondary memory (disk) and later reloaded into a different location. The programmer doesn’t know where the program will reside, and this location