Skip to content

Instantly share code, notes, and snippets.

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

Luis Palacios Derqui LuisPalacios

🏠
Working from home
View GitHub Profile
@LuisPalacios
LuisPalacios / .tmux.conf
Last active May 5, 2024 17:24
My .tmux.conf 2024
# .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
@LuisPalacios
LuisPalacios / .zshrc
Last active May 2, 2024 07:27
My .zshrc 2024
# 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:
@LuisPalacios
LuisPalacios / close-npm-letsencrypt.sh
Last active May 2, 2023 11:21
Script para cerrar el puerto 80 y port forwarding a mi Nginx
#!/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
@LuisPalacios
LuisPalacios / open-npm-letsencrypt.sh
Last active May 2, 2023 11:22
Script apra abrir temporalmente el puerto 80 y hacer port forwarding a mi Nginx Proxy manager
#!/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
@LuisPalacios
LuisPalacios / muro_access_server.conf
Created April 30, 2023 16:31
Fichero de configuración de Access Server OpenVPN
## 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
@LuisPalacios
LuisPalacios / ppp_nowait@.service
Created April 30, 2023 15:36
Unit systemd para gestión de sesión PPP que no espera a que se establezca
#
# 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
@LuisPalacios
LuisPalacios / ppp_wait@.service
Last active April 30, 2023 15:38
Unit systemd para gestión de sesión PPP esperando a que se establezca
#
# 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
@LuisPalacios
LuisPalacios / movistar
Created April 29, 2023 16:50
Fichero /etc/ppp/peers/movistar para arrancar el servicio ppp_wait@.service
# 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"
@LuisPalacios
LuisPalacios / options
Created April 29, 2023 16:47
Fichero /etc/ppp/options para autenticar sesiones PPPoE para Movistar
lock
-ipv6
@LuisPalacios
LuisPalacios / pap-secrets
Created April 29, 2023 16:46
Secreto para autenticar una sesión PAP con PPPoE con Movistar
# Secrets for authentication using PAP
# client server secret IP addresses
adslppp@telefonicanetpa pppd adslppp *