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
@apermuy
apermuy / my.cnf
Created December 19, 2024 18:08 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated September 2024 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@apermuy
apermuy / my.cnf
Created December 19, 2024 18:08 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated September 2024 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@apermuy
apermuy / mount_qcow2.md
Created September 23, 2024 16:50 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@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

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

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: