Skip to content

Instantly share code, notes, and snippets.

@Klerith
Klerith / cloudbuild.yml
Last active May 4, 2024 05:38
cloudbuild.yml con secretos
steps:
- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
args:
- -c
- |
docker build -t XXXXXX-docker.pkg.dev/project/image-registry/image-name -f dockerfile.prod --platform=linux/amd64 --build-arg ORDERS_DATABASE_URL=$$DATABASE_URL .
secretEnv: ['DATABASE_URL']
- name: 'gcr.io/cloud-builders/docker'
@Klerith
Klerith / cloudbuild.yml
Last active May 4, 2024 05:36
Google Cloud - Build steps
steps:
- name: "gcr.io/cloud-builders/docker"
args:
[
"build",
"-t",
"XXXXX-docker.pkg.dev/project-name/registry/image-name",
"-f",
"dockerfile.prod",
"--platform=linux/amd64",
@Klerith
Klerith / README.md
Created March 6, 2024 16:41
Pasos para configurar y crear sub-módulos en Git y Github

Pasos para crear los Git Submodules

  1. Crear un nuevo repositorio en GitHub
  2. Clonar el repositorio en la máquina local
  3. Añadir el submodule, donde repository_url es la url del repositorio y directory_name es el nombre de la carpeta donde quieres que se guarde el sub-módulo (no debe de existir en el proyecto)
git submodule add <repository_url> <directory_name>
  1. Añadir los cambios al repositorio (git add, git commit, git push)
@Klerith
Klerith / instalaciones-nest-microservicios.md
Last active May 6, 2024 16:29
Instalaciones recomendadas para el curso de Microservicios con Nest
@Klerith
Klerith / PokemonScreen.tsx
Last active January 31, 2024 14:00
Diseño de la pantalla de pokémon
export const PokemonScreen = () => {
return (
<ScrollView
style={ { flex: 1, backgroundColor: pokemon.color } }
bounces={ false }
showsVerticalScrollIndicator={ false }>
{/* Header Container */ }
<View style={ styles.headerContainer }>
{/* Nombre del Pokemon */ }
@Klerith
Klerith / FadeInImage.tsx
Created January 31, 2024 12:57
FadeIn Image y useAnimation
import {useState} from 'react';
import {
ActivityIndicator,
Animated,
ImageStyle,
StyleProp,
Text,
View,
} from 'react-native';
import {useAnimation} from '../../hooks/useAnimation';
@Klerith
Klerith / data.ts
Created January 25, 2024 14:10
Slideshow Data
interface Slide {
title: string;
desc: string;
img: ImageSourcePropType;
}
const items: Slide[] = [
{
title: 'Titulo 1',
desc: 'Ea et eu enim fugiat sunt reprehenderit sunt aute quis tempor ipsum cupidatat et.',
@Klerith
Klerith / characters.ts
Created January 24, 2024 19:44
Listado de personajes de DC, Marvel y Anime
interface Houses {
title: string;
data: string[];
}
const houses: Houses[] = [
{
title: 'DC Comics',
data: [
@Klerith
Klerith / index.html
Created January 8, 2024 17:21
Estilo de un indicador de escritura
<div class="typing">
<span class="circle scaling"></span>
<span class="circle scaling"></span>
<span class="circle scaling"></span>
</div>
@Klerith
Klerith / instalaciones-angular-openai.md
Created January 8, 2024 13:15
Instalaciones recomendadas para el curso de OpenAI con Angular y Nest

OpenAI Logo

Instalaciones recomendadas

Curso de OpenAI con Angular y NestJS

Necesarias