This file contains 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
#!/usr/bin/env zsh | |
# By LuisPa 2024 | |
# Ejecuto tmux si es que debo/puedo | |
# | |
# Ejecución de `tmux` si está disponible (usando `~/.tmux.conf`) | |
# | |
# [ -t 1 ]: Comprueba si el file descriptor 1 (stdout) está asociado a un terminal. | |
# (( $+commands[tmux] )): Comprueba si el ejecutable tmux está en el PATH | |
# [[ -f ~/.tmux.conf ]]: Compruebo si tengo el fichero de configuración | |
# $PPID != 1: Me aseguro que mi proceso padre no es 1, que significaría que esta |
This file contains 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
# .tmux.conf LuisPa 2024 | |
# | |
# LuisPa: -------------------------------------------------------------- START | |
# | |
# Pongo Ctrl+A como PREFIX_KEY y dejo Ctrl+B como backup. | |
unbind C-b | |
set-option -g prefix C-a | |
set-option -g prefix2 C-b | |
bind-key C-a send-prefix |
This file contains 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 .zshrc de LuisPa 2024 | |
# | |
# Este es mi .zshrc utilizado en MacOS (con brew) y Linux (Ubuntu) | |
# | |
# DEPENDIENCIAS | |
# 1) Soporte de ejecución asíncrona - ver https://github.com/mafredri/zsh-async | |
# Creo automáticamente ~/.zshrc.async desde | |
# https://raw.githubusercontent.com/mafredri/zsh-async/a66d76f8404bd9e7a26037640e6c892cf5871ff4/async.zsh | |
# | |
# Creditos: |
This file contains 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 | |
# | |
# Para crear/renovar certificados SSL necesito que Let's Encrypt pueda hablar con | |
# el Web Server temporal que "Nginx Proxy Manager". Este script cierra el puerto 80 | |
# y su redirección a mi máquina virtual donde ejecuto NPM. | |
# | |
# Este script está refereciado en el apunte: | |
# https://www.luispa.com/administración/2023/04/08/networking-avanzado.html | |
# | |
IP=192.168.100.243 |
This file contains 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 | |
# | |
# Para crear/renovar certificados SSL necesito que Let's Encrypt pueda hablar con | |
# el Web Server temporal que "Nginx Proxy Manager". Abro y redirijo el puerto 80 | |
# a mi máquina virtual donde ejecuto NPM. | |
# | |
# Este script está refereciado en el apunte: | |
# https://www.luispa.com/administración/2023/04/08/networking-avanzado.html | |
# | |
IP=192.168.100.243 |
This file contains 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 de configuración de Access Server OpenVPN. | |
## /etc/openvpn/server/muro_access_server.conf | |
## | |
## Este fichero está relacionado con este apunte: | |
## http://www.luispa.com/administración/2023/04/08/networking-avanzado.html | |
## | |
# Server (Servidor de Acceso) exponiendo el siguiente | |
# rango dentro del tunel. Escucho en un puerto cualquiera libre. | |
server 192.168.222.0 255.255.255.0 |
This file contains 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
# | |
# Unit systemd para gestión de PPP | |
# /etc/systemd/system/ppp_nowait@.service | |
# by LuisPa 2015 | |
# | |
# Documento un caso de uso en este apunte: | |
# https://www.luispa.com/administración/2023/04/08/networking-avanzado.html | |
# | |
# Activar este servicio creando la configuración, p.ej: | |
# en /etc/ppp/peers/movistar |
This file contains 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
# | |
# Unit systemd para gestión de PPP | |
# /etc/systemd/system/ppp_wait@.service | |
# by LuisPa 2015 | |
# | |
# Documento un caso de uso en este apunte: | |
# https://www.luispa.com/administración/2023/04/08/networking-avanzado.html | |
# | |
# Activar este servicio creando la configuración, p.ej: | |
# en /etc/ppp/peers/movistar |
This file contains 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
# Configuracion Movistar para systemd | |
# | |
# Se usará cuando se ejecute systemctl enable ppp_wait@movistar.service | |
# | |
plugin rp-pppoe.so | |
plugin passwordfd.so | |
# login name | |
name "adslppp@telefonicanetpa" |
This file contains 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
lock | |
-ipv6 |
NewerOlder