Skip to content

Instantly share code, notes, and snippets.

View silveimar's full-sized avatar

silveimar silveimar

  • CDMX
  • 10:30 (UTC -06:00)
View GitHub Profile

2020 - September

Why a Tech Lead Readme?

I wrote this document following my deeply believe that clarity and honesty can help build and strengthen relationships. So I aim to provide a clear understanding of how I can help you and how we can interact better.

TL;DR: I’m here to serve you, not the other way around.

My role

  • Help you to succeed and be happy as part of the team.
  • Enforce best practices in the team, technical, communications, development workflow.
  • Help the team to deliver quality technical solutions in alignment with product and business necessities.
  • Help to solve any internal or external technical blocking that may affect the team roadmap.
@silveimar
silveimar / docker-compose-mysql
Created May 29, 2020 22:40
Mysql Docker componse with healthcheck
version: '3.8'
services:
docker_db:
container_name: ${CONTAINER_NAME}
image: ${IMAGE_NAME}
environment:
- MYSQL_ROOT_PASSWORD=pwd
- MYSQL_USER=dockerdb
- MYSQL_PASSWORD=pwd
- MYSQL_ROOT_HOST=%
@silveimar
silveimar / wait-for-healthy-container.sh
Created May 29, 2020 22:33
Wait for healthy container - for docker-compose started containers
#!/bin/bash
. "scripts/common.sh"
container=$1
timeout=${2:-30}
wait=${3:-500}
interval=$(echo "scale=2; $wait/1000"|bc -l);
//NodeJS
function printNumbers(){
for (number = 1; number <= 100; number++) {
const result = getStringToPrint(number)
console.log(result);
};
}
function getStringToPrint(number){
let stringResult = number;