Skip to content

Instantly share code, notes, and snippets.

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

Diego Gallardo dmgallardo

🏠
Working from home
View GitHub Profile
@vasanthk
vasanthk / System Design.md
Last active July 17, 2025 22:43
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@pantharshit00
pantharshit00 / app.js
Last active June 4, 2025 06:30
Simple express app using JWT authentication
/**
* To get started install
* express bodyparser jsonwebtoken express-jwt
* via npm
* command :-
* npm install express body-parser jsonwebtoken express-jwt --save
*/
// Bringing all the dependencies in
const express = require('express');
@ElRodrigote
ElRodrigote / Educación Financiera -101.md
Last active May 14, 2022 16:46
Este archivo contiene una recopilación de información que considero útil para gente que se está metiendo sin conocimiento previos en el mundo de educación financiera e inversiones.

Pasos iniciales que considero necesarios:

  1. Generá una masa crítica (mínimo necesario para que algo sea viable) de plata para invertir. Por definición, la inversión es poner un capital bajo un riesgo de pérdida para intentar obtener un retorno (ganancia), entonces tenés que estar dispuesto a perder esa plata que inviertas, porque puede pasar y es MUY REAL esa posibilidad. Idealmente NO debería pasar porque la idea de invertir es ganar guita, pero puede pasar. O sea no inviertas guita que NECESITES.

  2. Informate. Aprendé qué tipo de inversor sos (conservador, moderado o agresivo; en lineas generales), sé honesto con esto porque tu salud mental está en juego también si no te cuidás, no es joda. La ansiedad y el estrés te pueden coger de parado.

  3. Estudiá para lo que sea que quieras invertir. Si decidís volcarte al trading, estudiá trading. No seas paja. Yo me metí a los cabezazos como un cabrón y la pasé re mal. Estudiá como te sea comodo, pero estudiá. Invertir va de tomar decisiones informadas y e

@UVLabs
UVLabs / 01_github-action-create-release-on-merge.md
Last active March 30, 2024 14:48
Github Action: Create Tag and Release when a pull request is merged into master/main branch with release notes parsed from merge comment

This Github Action workflow along with the rest of these files/scripts will allow you to create a Tag as well as a Release with the release notes set to the text added in the body of the merge comment when a pull request is merged.

Create release on merge github action

Note:

Merge comment title needs to contain the text "release" or else the workflow will not run (see line 11 of create-release.yml).