1 mkdir project
2 cd project
3 nano app.yaml
4 nano store-ssl-cert.sh
5 nano create-secret.sh
6 nano server.key
7 nano server.crt
8 chmod 700 *.sh
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
<template> | |
<div> | |
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
version: '3' | |
services: | |
mariadb: | |
image: 'mariadb' | |
restart: unless-stopped | |
environment: | |
- MARIADB_USER=chavelo | |
- MARIADB_DATABASE=no_importa | |
- MARIADB_PASSWORD=secreto |
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
version: '3' | |
services: | |
db: | |
image: mariadb:10.3.9 | |
volumes: | |
- data:/var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=secret | |
- MYSQL_DATABASE=wordpress |
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
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: demo-microk8s-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: /$2 | |
spec: | |
tls: | |
- hosts: | |
- access.qbits.mx |
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
#----------------------------- | |
# alvinalexander.com (desktop) | |
#----------------------------- | |
server { | |
server_name alvinalexander.com; | |
listen 80; | |
#----- redirect to mobile check (starts) -----# | |
set $mobile_rewrite do_not_perform; |
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
upstream balanceador { | |
server srv02:9001; | |
server srv02:9002; | |
server srv02:9003; | |
} | |
server { | |
server_name balanceador.qbits.mx; | |
location / { |
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
version: '3.7' | |
services: | |
db: | |
image: mysql:8.0.19 | |
command: '--default-authentication-plugin=mysql_native_password' | |
volumes: | |
- /this/is/the/path/wordpress/data:/var/lib/mysql | |
restart: always | |
environment: | |
- MYSQL_ROOT_PASSWORD=somewordpress |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Prueba de un cliente de un websocket</title> | |
<script type="text/javascript"> | |
var webSocket = new WebSocket('wss://fstream.binance.com/ws/btcusdt@trade'); | |
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
package mx.com.ultrasist.ci.generator; | |
// Curly brace Enemy ... | |
// https://javarevisited.blogspot.com/2017/03/how-to-reverse-linked-list-in-java-using-iteration-and-recursion.html | |
public class SinglyLinkedList<T> { | |
private Node<T> head; | |
/** | |
* Imprime esta lista ligada con un formato | |
* específico delimitado por símbolos '--->' |
NewerOlder