Skip to content

Instantly share code, notes, and snippets.

View madkoding's full-sized avatar
馃З
Back to your reality

madKoding madkoding

馃З
Back to your reality
View GitHub Profile
@madkoding
madkoding / install-synaptic-figerprint.md
Created October 7, 2024 05:26
Installation and Configuration of python-validity with PAM for SDDM Fingerprint Authentication (Archlinux)

Installation and Configuration of python-validity with PAM for SDDM Fingerprint Authentication

Step 1: Installing python-validity from AUR

First, install the required dependencies:

sudo pacman -S base-devel git cmake libusb glib2-dev
@madkoding
madkoding / install_turing.sh
Created September 20, 2024 14:16
Turing Smart Screen installer archlinux
#!/bin/bash
# Check for superuser permissions
if [ "$EUID" -ne 0 ]; then
echo "Please run this script as root or with sudo"
exit
fi
# Update repositories and ensure the system is up to date
echo "Updating the system..."
@madkoding
madkoding / removeroms.md
Created May 21, 2024 23:04
Python Script for Removing Duplicate Files (roms) Based on Levenshtein Distance

Python Script for Removing Duplicate Files (roms) Based on Levenshtein Distance

This Python script identifies and removes duplicate files in a specified directory based on the Levenshtein distance between their names. Only the first file in each group of similar files is kept, and the rest are deleted. The script excludes directories and only processes files.

Requirements

  • Python 3.x
  • colorama library for colored console output

Installation

@madkoding
madkoding / instalar-proxmox-gpu-passthrough.md
Created December 28, 2023 17:17
Instalaci贸n de Proxmox y Configuraci贸n de Passthrough de GPU para una M谩quina Virtual de Windows

Instalaci贸n de Proxmox y Configuraci贸n de Passthrough de GPU para una M谩quina Virtual de Windows

Paso 1: Instalaci贸n de Proxmox

  1. Descargar Proxmox: Ve a la p谩gina oficial de Proxmox y descarga la 煤ltima ISO de Proxmox VE.

  2. Crear un medio de instalaci贸n: Usa un programa como Rufus para quemar la ISO en un USB.

  3. Instalaci贸n: Arranca tu servidor desde el USB y sigue las instrucciones en pantalla para instalar Proxmox.

@madkoding
madkoding / lastfm-spotify.md
Last active December 15, 2023 23:27
Como crear una pagina que muestre lo que estas escuchando en spotify

Como crear una pagina que muestre lo que estas escuchando en spotify

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
@madkoding
madkoding / jwt-rs256-nest.md
Last active December 15, 2023 14:23
Autenticaci贸n de JWT con firma RS256 en Nest

Configuraci贸n Correcta de JWT en NestJS con firma RS256

Este resumen proporciona una gu铆a sobre c贸mo configurar correctamente JWT en NestJS, especialmente para el uso de algoritmos RSA como RS256.

Problema Com煤n

El problema suele estar en la configuraci贸n incorrecta del JwtModule y la instancia de JwtStrategy. Es crucial especificar los algoritmos utilizados para firmar y verificar los tokens, junto con las claves correspondientes.

Verificaci贸n del Algoritmo del Token

@madkoding
madkoding / get-playstore-in-chormeos-flex.md
Last active February 19, 2025 15:33
Get PlayStore in ChromeOS Flex

Get Play Store in ChromeOS Flex (Unofficial)

Important:

  • Official ChromeOS Flex does not support the Play Store or Android apps.
  • This guide uses unofficial methods (e.g., Brunch + a full ChromeOS recovery image) to achieve Play Store functionality.
  • Success is not guaranteed for all devices; proceed at your own risk.

1. Basic Requirements

@madkoding
madkoding / playstore-in-chromeos-flex-ESP.md
Last active November 1, 2024 18:08
Obtener PlayStore en ChromeOS Flex

Obtener PlayStore en ChromeOS Flex

Requisitos B谩sicos

  • Computadora basada en x86_64 con soporte de arranque UEFI.
  • Privilegios administrativos en el dispositivo.
  • Un entendimiento b谩sico del terminal de Linux.

Compatibilidad de CPU

  • CPUs Intel desde Haswell (4ta Gen) / CPUs Celeron desde Braswell.
  • AMD Ryzen.
@madkoding
madkoding / fix-hyperv-udp-packet-loss.md
Last active December 10, 2023 20:56
Fix Hyper-V UDP packet loss in linux (Minecraft Bedrock server issues)

Persistent Disabling of TCP/UDP Checksum Offloading in a Virtual Machine

This guide provides a method to persistently disable TCP/UDP checksum offloading on eth0 in a virtual machine, ensuring the changes remain effective even after a reboot. (Usually to fix issues for Minecraft Bedrock Server)

Steps

1. Install ethtool

First, ensure that ethtool is installed. If it's not installed, you can install it using the following command:

@madkoding
madkoding / semantic-emoji-commit-messages.md
Last active July 21, 2021 21:50
Semantic Emoji Commit Messages for Git

Semantic Emoji Commit Messages

Helps to keep a better order and keep easy to understand every change in the git log history Emojis looks nice, and i chose the most easy to remember ones

Syntax

type [scope] subject
emoji section (optional) Summary (present tense)