Skip to content

Instantly share code, notes, and snippets.

View Khahory's full-sized avatar
💜
Take your heart

Khahory

💜
Take your heart
View GitHub Profile
@Khahory
Khahory / SSL GRATIS en DOCKER - Nginx Proxy
Created March 13, 2024 12:55
Tenemos un proxi inverso mas SSL para nuestra web en docker OMG. El sabe a que pagin debe ir por el proxy inverso, si ponen qloq.com entonces el proxy resolvera eso para mi servicio que tenga qloq.com en ENV
#https://www.youtube.com/watch?v=S2YFqf4L7l8&t=464s
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
restart: always
environment:
- DEFAULT_HOST=qlqokha.xyz
from fastapi.routing import APIRoute
from fastapi import Request
from functions_jwt import validate_token
class VerifyTokenRoute(APIRoute):
def get_route_handler(self):
original_route_handler = super().get_route_handler()
async def verify_token_middleware(request: Request):
@Khahory
Khahory / readme.md
Created September 27, 2023 23:21
PRUEBA-AGILISA-ANGEL

Prueba Dev Agilisa

Como usuario quiero un programa que me permita registrar mis clientes en base de datos, consultarlos una vez registrado, editar sus datos una vez registrado y que si el cliente esta inactivo no me permita realizarles ningún cambio solo volverlo activar. Se desea también poder registrarle una lista de todas las tarjetas de crédito, que este tenga clasificadas en Tipos, los tipos serian (Crédito, Debito)

Herramientas

Client: Vue, Bootstrap

Server: C#, ASP.NET MVC, SQL Server, Docker

@Khahory
Khahory / download_calendario.sh
Created August 1, 2023 16:16
Buee, no funciona
#!/bin/bash
num_inicio=$1
num_fin=$2
# for
for i in $(seq $num_inicio $num_fin); do
# validar si una ulr nos devuelve un 200
url="https://idiomas.unapec.edu.do/media/$i/calendario-academico-2023-1.pdf"
response=$(curl -s -o /dev/null -w "%{http_code}" $url)
## 🚀 [CURSO AWS] - Usuarios, grupos, roles y policies 👥
RECOMENDS:
* Never use root account
* Create a role for comunication between services
## 🚀 [CURSO AWS] - VPC, Subnets, Internet y NAT Gateways
https://www.youtube.com/watch?v=35zd1FAMrjA&list=PLGANiJnCt6o1M7qDzQaLe3p6mNpr6EuNz&index=5
@Khahory
Khahory / lluvia.svg
Created September 12, 2022 12:22
lluvia SVG muy chula
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Khahory
Khahory / devolverCorrespondencia.php
Created February 4, 2022 13:54
View PHP codeigniter send to outlook
<html lang="es">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]>
<style>
v\: * {
behavior: url(#default#VML);
}
@Khahory
Khahory / inicio.php
Created September 15, 2020 21:16
Div con imagen de fondo - Bulma
<div id="app">
<section class="hero is-success is-fullheight has-bg-img">
<div class="hero-body">
<div class="container has-text-centered">
<h1 class="title">
Title
</h1>
<h2 class="subtitle">
Subtitle