Skip to content

Instantly share code, notes, and snippets.

View apermuy's full-sized avatar
💭
I may be slow to respond.

Alberto Permuy Leal apermuy

💭
I may be slow to respond.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am apermuy on github.
  • I am apermuy (https://keybase.io/apermuy) on keybase.
  • I have a public key ASBewldzp8v9zDy3w2LHxPbhdt9FjJyHwr8Cd4TVkx0gZQo

To claim this, I am signing this object:

@apermuy
apermuy / convert-image.sh
Last active December 7, 2019 13:23
Script imagemagick para redimensionar imágenes
#!/bin/bash
for f in *.JPG; do
NOME=`echo $f |cut -d. -f1`
echo "Convertindo imaxe orixinal -> $f"
convert $f -resize 33% $NOME-redimensionada-33.JPG
done
@apermuy
apermuy / updateDnsARecorDinahosting.py
Created September 17, 2023 14:13
Homemade recipe to update an A DNS record using the Dinahosting API
import requests
import dns.resolver
import syslog
dinahostingUser = "DINAHOSTING_USERNAME"
dinahostingPass = "DINAHOSTING_PASSWORD"
urlCheckWan = "https://eth0.me"
hostname = "HOSTNAME"
domain = "DOMAIN"
@apermuy
apermuy / windows-server-uefi-to-kvm-mbr.md
Last active November 3, 2023 07:35
Crear VM desde Windows Server con UEFI para ejecutar en KVM/VirtualBox con MBR

Crear VM desde Windows Server con UEFI para ejecutar en KVM/VirtualBox con MBR

Prerequisitos

  1. Máquina virtual(vm) o PC físico corriendo Windows 10/11.
  2. Imagen ISO con Windows PE. Lista completa aquí: https://www.ventoy.net/en/distro_iso/winpe.html

Pasos