Install oh-my-zsh
sudo pacman -S zsh zsh-completions zsh-autosuggestions
chsh -s /bin/zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
~/.zshrc
ZSH_THEME=»agnoster»
powerlevel10K
| // Use the MD_MAX72XX library to scroll text on the display | |
| // received through the ESP32 WiFi interface. | |
| // | |
| // Demonstrates the use of the callback function to control what | |
| // is scrolled on the display text. User can enter text through | |
| // a web browser and this will display as a scrolling message on | |
| // the display. | |
| // | |
| // IP address for the ESP32 is displayed on the scrolling display | |
| // after startup initialization and connected to the WiFi network. |
Install oh-my-zsh
sudo pacman -S zsh zsh-completions zsh-autosuggestions
chsh -s /bin/zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
~/.zshrc
ZSH_THEME=»agnoster»
powerlevel10K
| <domain type="kvm"> | |
| <name>win11</name> | |
| <uuid>57102943-4056-40dc-b03f-2d9c2fb6213d</uuid> | |
| <metadata> | |
| <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0"> | |
| <libosinfo:os id="http://microsoft.com/win/11"/> | |
| </libosinfo:libosinfo> | |
| </metadata> | |
| <memory unit="KiB">8388608</memory> | |
| <currentMemory unit="KiB">8388608</currentMemory> |
sudo apt-get install pulseaudio pulseaudio-module-zeroconf avahi-daemon
systemctl --user enable pulseaudio
systemctl --user start pulseaudio
sudo systemctl enable --now avahi-daemon
sudo systemctl start avahi-daemon
sudo pacman -S pyenv pyenv-virtualenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc echo 'eval "$(pyenv init --path)"' >> ~/.bashrc echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc source ~/.bashrc # Recargar configuración del shell
| import random | |
| import time | |
| import board | |
| import adafruit_dht | |
| from paho.mqtt import client as mqtt_client | |
| import json | |
| # Configuración del sensor DHT11 | |
| sensor = adafruit_dht.DHT11(board.D4) |
| # Instalar pip3 | |
| sudo apt-get install python3-pip | |
| # Instalar virtualenv | |
| sudo apt install python3-virtualenv python3-venv | |
| # Crear virtualenv | |
| virtualenv venv | |
| # Acceder al virtual env |