Skip to content

Instantly share code, notes, and snippets.

View humbertoplus's full-sized avatar

Humberto Astudillo Bolívar humbertoplus

  • United States, Peru, Chile, Colombia, Venezuela
View GitHub Profile
@humbertoplus
humbertoplus / shell.sh
Created May 17, 2024 03:43 — forked from alexwebgr/shell.sh
Install MySQL on ubuntu 20.04 and set the root password
# Completely remove any previous config
sudo apt remove --purge mysql*
sudo apt autoremove
sudo find / -iname mysql
# install the server
sudo apt update
sudo apt install mysql-server
# run the wizard
sudo mysql_secure_installation
@humbertoplus
humbertoplus / web-servers.md
Created April 28, 2024 21:38 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@humbertoplus
humbertoplus / terminal-commands-macos-linux.md
Last active May 25, 2023 05:00 — forked from ElenaMLopez/consola-linux.md
Comandos de la TERMINAL MAC OS o Linux

Información del sistema

  1. arch: mostrar la arquitectura de la máquina (1).
  2. uname -m: mostrar la arquitectura de la máquina (2).
  3. uname -r: mostrar la versión del kernel usado.
  4. dmidecode -q: mostrar los componentes (hardware) del sistema.
  5. hdparm -i /dev/hda: mostrar las características de un disco duro.
  6. hdparm -tT /dev/sda: realizar prueba de lectura en un disco duro.
  7. cat /proc/cpuinfo: mostrar información de la CPU.
  8. cat /proc/interrupts: mostrar las interrupciones.