Skip to content

Instantly share code, notes, and snippets.

View alvarosego01's full-sized avatar
🏠
Working from home

Álvaro Segovia alvarosego01

🏠
Working from home
View GitHub Profile
@Klerith
Klerith / K8s.README.md
Last active June 7, 2025 15:07
Comandos que utilizaremos para configurar Kubernetes.

Helm commands

  • Crear configuración helm create <nombre>
  • Aplicar configuración inicial: helm install <nombre> .
  • Aplicar actualizaciones: helm upgrade <nombre> .

K8s commands

  • Obtener pods, deployments y services: kubectl get <pods | deployments | services>
  • Revisar todos pods: kubectl describe pods
@Klerith
Klerith / download-image-base-64.ts
Last active April 10, 2025 19:22
Descargar imagen base 64
export const downloadBase64ImageAsPng = async (base64Image: string) => {
// Remover encabezado
base64Image = base64Image.split(';base64,').pop();
const imageBuffer = Buffer.from(base64Image, 'base64');
const folderPath = path.resolve('./', './generated/images/');
fs.mkdirSync(folderPath, { recursive: true });
const imageNamePng = `${ new Date().getTime() }-64.png`;