Skip to content

Instantly share code, notes, and snippets.

View LuisCusihuaman's full-sized avatar
馃浉
refactorin' code

edu LuisCusihuaman

馃浉
refactorin' code
View GitHub Profile
@LuisCusihuaman
LuisCusihuaman / socket.rb
Created July 19, 2024 05:04
Server TCP ruby
require 'socket'
require 'fileutils'
require 'json'
require 'logger'
require 'time'
PORT = 80
UPLOADS_DIR = '/mnt/nfs/uploads'
PUBLIC_DIR = '/public'
MAX_BODY_SIZE = 10 * 1024 * 1024 # 10 MB
@LuisCusihuaman
LuisCusihuaman / cloudformation-template-with-existing-vpc.yaml
Last active August 19, 2024 14:15
cloudformation-template-with-existing-vpc.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: AWS ECS Infrastructure setup using an existing VPC
Parameters:
VpcId:
Description: "The ID of the existing VPC"
Type: AWS::EC2::VPC::Id
PublicSubnet1Id:
Description: "The ID of the existing public subnet 1"
@LuisCusihuaman
LuisCusihuaman / movieapp.yaml
Created September 22, 2024 04:15
movieapp-openapi-spec
openapi: 3.0.0
info:
title: MovieApp API
description: API para una aplicaci贸n de pel铆culas con autenticaci贸n basada en JWT y autorizaci贸n mediante scopes, siguiendo principios de DDD.
version: 1.0.0
servers:
- url: https://api.movieapp.com/v1
description: Servidor de Producci贸n
- url: http://localhost:8080/v1
description: Servidor de Desarrollo Local