Skip to content

Instantly share code, notes, and snippets.

// 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>

Slow wifi with arch in mac book pro 2011

  • To solve the slowness problem in arch on macbook pro 2011 with wirelwss bcm4331 install the following packages:
yay linux-haders
yay broadcom-wl-dkms
@rafavg77
rafavg77 / README.md
Created February 3, 2025 03:11 — forked from julianxhokaxhiu/README.md
Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Step 1

Install required dependencies

$ pacman -S avahi pulseaudio-zeroconf

Step 2

How to Stream Arch Audio to PulseAudio over Network

Setting up the server

  • The server is a raspberry pi with raspbian on which the following commands must be executed
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

1. Instalar pyenv y pyenv-virtualenv

sudo pacman -S pyenv pyenv-virtualenv

2. Configurar el entorno en ~/.bashrc o ~/.zshrc

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

@rafavg77
rafavg77 / arch_linux_installation_guide.md
Created December 1, 2024 14:17 — forked from mjkstra/arch_linux_installation_guide.md
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
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