Skip to content

Instantly share code, notes, and snippets.

View christianjjc's full-sized avatar

Christian Jiménez christianjjc

View GitHub Profile
@christianjjc
christianjjc / .prettierignore
Last active February 15, 2024 06:32
Archivos para el Prettier Config
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
@christianjjc
christianjjc / 2024-02-23.txt
Last active February 27, 2024 17:54
Mesa de Ayuda
Typescript:
nodo html --> button
evento --> onClick
codigo:
<button onClick={decreaseBy(1)}>+1</button>
error:
docker run --name world-db `
--env MARIADB_USER=example-user `
--env MARIADB_PASSWORD=user-password `
--env MARIADB_ROOT_PASSWORD=root-secret-password `
--env MARIADB_DATABASE=world-db -dp 3306:3306 `
--volume world-db:/var/lib/mysql `
--network world-app `
mariadb:jammy
@christianjjc
christianjjc / HomeController.java
Last active March 26, 2024 14:48
Spring-MVC-Thymeleaf Basic
package pe.cjjc.projects.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class HomeController
{
@RequestMapping ("/")
public String home ()
@christianjjc
christianjjc / docker-comandos.yml
Created April 9, 2024 23:58
COMANDOS DOCKER BD MYSQL CON PHPMYADMIN CON RED CON VOLUMENES
#creamos el volumen para persistir la data
docker volume create vol-cibertec-1
#Descargamos la imagen
#Creamos el contenedor a correr
#Colocamos los parámtetros iniciales
#Exponemos el contenedor en el puerto 3306
docker container run `
@christianjjc
christianjjc / docker-create-postgresql-pgadmin-local.yml
Last active May 28, 2024 16:00
Script to create a containers wiht PostgreSQL database and client with PgAdmin - All inside Docker
version: '4'
services:
dberp:
container_name: ra_postgres_db
image: postgres:15-alpine3.19
volumes:
#- postgres-db:/var/lib/postgresql/data #example
- ./postgres:/var/lib/postgresql/data
ports: