This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Nueva ruta a la que tengo acceso via `sur`, su LAN. | |
| iroute 192.168.107.0 255.255.255.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cliente_sur,192.168.224.107, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Este fichero está relacionado con este apunte: | |
| ## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html | |
| # | |
| # Configuración de "Access Server" de OpenVPN | |
| # | |
| # Server (Servidor de Acceso) exponiendo el siguiente | |
| # rango dentro del tunel. Escucho en un puerto cualquiera libre. | |
| server 192.168.224.0 255.255.255.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## | |
| ## Fichero /etc/dhcpcd.conf para Raspberry Pi OS 64 bits | |
| ## Servidor ‘norte’ | |
| ## | |
| ## Este fichero está relacionado con este apunte: | |
| ## https://www.luispa.com/linux/2014/10/19/bridge-ethernet.html | |
| ## | |
| ## Configuración IP: | |
| ## `eth0` con una dirección IP fija. | |
| ## `eth1` inicialmente sin servicio. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Script /usr/bin/s para cambiar al usuario root de forma rápida | |
| # escribiendo menos caracteres :-) | |
| # | |
| /usr/bin/sudo -i | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # By LuisPa 1998 | |
| # confcat: quita las lineas con comentarios, muy util como sustituto | |
| # a "cat" para ver contenido sin los comentarios. | |
| # | |
| grep -vh '^[[:space:]]*#' "$@" | grep -v '^//' | grep -v '^;' | grep -v '^$' | grep -v '^!' | grep -v '^--' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Script "/usr/bin/e" que simplemente llama al editor nano | |
| # escribiendo menos caracteres :-) | |
| # | |
| /usr/bin/nano "${*}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // LUISPA Versión con INTs | |
| package Clusters; | |
| public class Clusters { | |
| private static final int LINEAS = 10; | |
| private static final int COLUMNAS = 10; | |
| public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## | |
| ## Fichero /etc/nanorc o ~/.nanorc de LuisPa | |
| ## Crear los directorios /root/.nano y /home/<tu usuario>/.nano | |
| ## | |
| ## Referencias: | |
| ## https://www.nano-editor.org | |
| ## | |
| ## Salvar el fichero al salir, equivale a ^S (Salvar) + ^Q (salir) | |
| ## Al pulsar ^Q salvará y saldrá !! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # By Luispa (2022) | |
| # | |
| # Script para ser usado desde un cliente Telegraf en un HOST KVM para informar a influxdb | |
| # del tamaño de sus discos de sus GUESTS. El caso de uso es en un linux Host con QEMU/KVM | |
| # donde nos gustaría ver cuanto ocupa cada QCOW2 | |
| # | |
| # - capacity --> Tamaño máximo del disco del GUEST. Indica el tamaño máximo al que | |
| # puede crecer el disco. Se estableción durante la creación de la VM. |