Skip to content

Instantly share code, notes, and snippets.

View cmllamosas's full-sized avatar
🏠
Working from home

cmllamosas

🏠
Working from home
View GitHub Profile
@fevangelou
fevangelou / my.cnf
Last active June 25, 2024 08:17
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 December 2021 ~
#
#
# 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.
#
@mandreko
mandreko / secure.sh
Last active November 10, 2020 19:18
Ubuntu 13.10 Secure Script (In Progress)
## Set Configuration values for postfix
#debconf-set-selections <<< "postfix postfix/root_address string hostess"
#debconf-set-selections <<< "postfix postfix/rfc1035_violation boolean false"
#debconf-set-selections <<< "postfix postfix/relay_restrictions_warning boolean"
#debconf-set-selections <<< "postfix postfix/mydomain_warning boolean"
#debconf-set-selections <<< "postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128"
#debconf-set-selections <<< "postfix postfix/mailname string www.mattandreko.com"
#debconf-set-selections <<< "postfix postfix/tlsmgr_upgrade_warning boolean"
#debconf-set-selections <<< "postfix postfix/recipient_delim string +""
#debconf-set-selections <<< "postfix postfix/main_mailer_type select Satellite system"
@angelmartz
angelmartz / diashabiles.php
Last active April 11, 2022 17:11
Obtener días hábiles en PHP
<?php
/**
* Metodo getDiasHabiles
*
* Permite devolver un arreglo con los dias habiles
* entre el rango de fechas dado excluyendo los
* dias feriados dados (Si existen)
*
* @param string $fechainicio Fecha de inicio en formato Y-m-d
* @param string $fechafin Fecha de fin en formato Y-m-d