Habilitar git
git config --global credential.helper store
git config --global credential.github.com.useHttpPath trueGenerar llave
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_usuario1 -C "[email protected]"| #!/usr/bin/env bash | |
| set -e | |
| IMAGES=( | |
| "docker.io/library/php:latest" | |
| "docker.io/library/node:latest" | |
| "docker.io/valkey/valkey:latest" | |
| "docker.io/library/rust:latest" | |
| "docker.io/library/mongo:latest" | |
| "docker.io/library/python:3.13" |
Habilitar git
git config --global credential.helper store
git config --global credential.github.com.useHttpPath trueGenerar llave
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_usuario1 -C "[email protected]"| #!/bin/bash | |
| # Verificar si el entorno virtual ya está activo | |
| if [[ -z "$VIRTUAL_ENV" ]]; then | |
| echo "Activando entorno virtual..." | |
| source .venv/bin/activate | |
| python wsgi.py | |
| else | |
| echo "El entorno virtual ya está activo: $VIRTUAL_ENV" | |
| python wsgi.py |
| sudo nano /etc/sddm.conf | |
| [X11] | |
| DisplayCommand=/etc/sddm/Xsetup | |
| ServerArguments=-nolisten tcp -background none -dpi 96 -depth 24 | |
| sudo systemctl restart sddm |
| #!/bin/bash | |
| # Variables | |
| DISK="/dev/sdX" # Reemplaza con tu disco (ej. /dev/sda) | |
| EFI_PART="${DISK}1" | |
| SWAP_PART="${DISK}2" | |
| ROOT_PART="${DISK}3" | |
| HOSTNAME="archlinux" | |
| LOCALE="es_MX.UTF-8" | |
| TIMEZONE="America/Mexico_City" |
| ACTION=="change", SUBSYSTEM=="sound", KERNEL=="card0", RUN+="/usr/bin/amixer -c 0 set Headphone unmute" |
| #!/bin/bash | |
| sudo apt update | |
| sudo apt install -y clang llvm make cmake g++ virtualenv python3-devel python3-tkinter git curl mysql-server openjdk-23* mpv gimp inkscape scribus *yaru* build-essential checkinstall automake autoconf neofetch htop ntfs-3g gdebi gdebi-core synaptic p7zip-full p7zip-rar rar unrar ffmpeg libavcodec-extra gstreamer1.0-libav gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-pulseaudio vorbis-tools fonts-freefont-ttf fonts-freefont-otf fonts-inconsolata fonts-droid-fallback xfonts-terminus fonts-droid-fallback ttf-bitstream-vera fonts-cantarell fonts-liberation fonts-oflb-asana-math fonts-mathjax ttf-mscorefonts-installer fonts-ubuntu | |
| sudo apt -y install linux-headers-$(uname -r) | |
| sudo apt -y upgrade | |
| # Add Docker's official GPG key: | |
| sudo apt update | |
| sudo apt install -y ca-certificates curl | |
| sudo install -m 0755 -d /etc/apt/keyrings |
| xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync | |
| xrandr --addmode DisplayPort-0 1600x900_60.00 | |
| xrandr --output DisplayPort-0 --mode "1600x900_60.00" |
| def calcular_rating_jugador(stats, posicion): | |
| """ | |
| Calcula el rating de un jugador basado en sus estadísticas y posición | |
| Parámetros: | |
| stats (dict): Diccionario con estadísticas del jugador | |
| posicion (str): 'DEL', 'MED', 'DEF' o 'POR' | |
| Returns: | |
| float: Rating del jugador (0-10) |