Skip to content

Instantly share code, notes, and snippets.

View dalthonmh's full-sized avatar
🏝️

Dalthon dalthonmh

🏝️
View GitHub Profile
# Display indentation guides in Vim
:match Search /\%(\_^\s*\)\@<=\%(\%1v\|\%5v\|\%9v\)\s/
@dalthonmh
dalthonmh / azure-pipelines.yml
Created October 1, 2025 16:06
Pipeline para buildeo automático de imagen Java en Azure Pipelines en Azure DevOps
# Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
# by: dalthonmh@gmail.com
trigger:
- main
variables:
@dalthonmh
dalthonmh / php.ini
Created September 15, 2025 23:16
php.ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@dalthonmh
dalthonmh / httpd-vhosts.conf
Created September 15, 2025 23:15
httpd-vhosts.conf
# Virtual Hosts
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
@dalthonmh
dalthonmh / httpd.conf
Created September 15, 2025 23:15
httpd.conf para apche lounge
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
@dalthonmh
dalthonmh / nginx.conf
Created September 15, 2025 22:21
nginx.conf para windows server aplicacion Angular 20
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
@dalthonmh
dalthonmh / genera.sslsubdominio.sh
Created August 10, 2025 15:56
Genera SSL para un subdominio con certbot
#!/bin/bash
# genera.sslsubdominio.sh
# Genera SSL para un subdominio con certbot
# Requiere que Nginx esté instalado y configurado
# Creado por: dalthonmh@gmail.com
# Fecha: 10/08/2025
# Variables
SUBDOMINIO="$1"
@dalthonmh
dalthonmh / jenkins_docker_compose.yaml
Created July 31, 2025 13:56
Install Jenkins with docker compose file
services:
jenkins:
container_name: jenkins_docker_compose
image: jenkins/jenkins:alpine
ports:
- "8099:8080"
- "50000:50000"
privileged: true
user: root
volumes:
@dalthonmh
dalthonmh / test-network-with-pods.yaml
Created June 12, 2025 22:54
Test networking in Kubernetes with two Nginx pods on two different nodes
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod-node1
labels:
app: nginx-test
node: node1
spec:
nodeSelector:
kubernetes.io/hostname: spacex
@dalthonmh
dalthonmh / install.https.sh
Last active August 3, 2025 16:27
Script de instalación de https con certbot en servidor Ubuntu
#!/bin/bash
# Name: install_https.sh
# Purpose: Instalar https con certbot en servidor ubuntu
# Author: dalthonmh - 21 abril 2025
#PARAMETROS
DOMINIO=${1:-'dominio'}
CORREO=${2:-'correo'}
#DOMINIO