Skip to content

Instantly share code, notes, and snippets.

View Canx's full-sized avatar

Ruben Cancho Canx

View GitHub Profile
#!/bin/bash
sudo apt-get install autoconf automake libtool
git clone https://github.com/TA-Lib/ta-lib.git
cd ta-lib
chmod +x autogen.sh
./autogen.sh
./configure
make
sudo make install
@Canx
Canx / header_checks
Created December 1, 2023 12:46
configuracion postfix para envio desde centros
/^From:/ REPLACE From: <correo>
/^Sender:/ REPLACE Sender: <correo>
/^Reply-To:/ REPLACE Reply-To: <correo>
/^Subject:/ REPLACE Subject: Escaner
#!/bin/bash
# Verifica si el script se ejecuta como superusuario
if [ "$EUID" -ne 0 ]; then
echo "Por favor, ejecuta este script como superusuario."
exit 1
fi
# Recorre todos los directorios de inicio de sesión en /home
for user_home in /home/*; do

DIGITALIZACIÓN

1. Presentación

La sociedad digital y de la información plantea la necesidad de conocer de una forma más profunda los elementos que permiten desarrollar en ella nuestras vidas de una forma crítica y segura. En este sentido, los sistemas informáticos ofrecen todo su potencial para conseguir una sociedad más justa, plural e igualitaria, en la que tenga cabida toda la ciudadanía sin condicionantes ni barreras, favoreciendo a su vez el aprendizaje permanente y el desarrollo personal. La materia Digitalización da respuesta a la necesidad de adaptación al entorno tan

@Canx
Canx / InRelease_centro
Last active March 6, 2023 12:59
InRelease con cabeceras desde el centro y desde fuera. Comando: wget --save-headers http://lliurex.net/bionic/dists/bionic-updates/InRelease
HTTP/1.1 200 OK
Date: Mon, 06 Mar 2023 12:55:03 GMT
Server: Apache
Last-Modified: Mon, 06 Mar 2023 06:22:12 GMT
ETag: "23e6-5f63550c86908"
Accept-Ranges: bytes
Che: 665366
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Canx
Canx / journalctl.txt
Last active November 11, 2022 12:23
journalctl -b en un lliurex21
-- Logs begin at Wed 2022-11-02 11:16:30 CET, end at Fri 2022-11-11 13:14:02 CET. --
de nov. 11 13:09:20 lliurex21 kernel: microcode: microcode updated early to revision 0xea, date = 2021-01-25
de nov. 11 13:09:20 lliurex21 kernel: Linux version 5.13.0-44-generic (buildd@lcy02-amd64-107) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #49~20.04.1-Ubuntu SMP Wed May 18 18:44:28 UTC 2022 (Ubuntu 5.13.0-44.49~20.04.1-generic 5.13.19)
de nov. 11 13:09:20 lliurex21 kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.13.0-44-generic root=UUID=0eb0e40b-63ae-44fd-a537-37a0590c11f3 ro net.ifnames=0 quiet rw
de nov. 11 13:09:20 lliurex21 kernel: KERNEL supported cpus:
de nov. 11 13:09:20 lliurex21 kernel: Intel GenuineIntel
de nov. 11 13:09:20 lliurex21 kernel: AMD AuthenticAMD
de nov. 11 13:09:20 lliurex21 kernel: Hygon HygonGenuine
de nov. 11 13:09:20 lliurex21 kernel: Centaur CentaurHauls
de nov. 11 13:09:20 lliurex21 kernel: zhaoxin Shanghai
@Canx
Canx / optimize_lliurex21_v4.sh
Last active March 30, 2023 09:52
Optimización de arranque para Lliurex21 (probado en ORG2)
#!/bin/bash
# Script para acelerar el tiempo de arranque de Lliurex21.
# V4: Arreglamos fallo de sssd y desactivamos dnsmasq
# V3: Desactivamos networkd-dispatcher
# Tiempo original en un ORG2 con hdd: https://gist.githubusercontent.com/Canx/01b854da791b996f81177b52c49bab07/raw/4b8965186ec68bb52931aed376636e532fc91d75/lliurex21_original.svg
# Tiempo optimizado con V2: https://gist.githubusercontent.com/Canx/01b854da791b996f81177b52c49bab07/raw/4b8965186ec68bb52931aed376636e532fc91d75/lliurex21_optimized_v2.svg
# Arreglamos fallo de sssd
@Canx
Canx / analisis-rebost.md
Last active October 26, 2022 16:35
Comparativa Lliurex21 con rebost y sin rebost.