Skip to content

Instantly share code, notes, and snippets.

Avatar
🇧🇷
Brazil

Thiago Marinho tgmarinho

🇧🇷
Brazil
View GitHub Profile
@tgmarinho
tgmarinho / populate.js
Created Jan 8, 2021
script to generate INSERT SQL with data faker using date fns to format date and fakerjs to give data
View populate.js
/**
* - run: node _populate.js
* - Go to file SQL_insert_members.sql, copy inserts and paste it on hasura SQL for create members
*/
const {formatISO} = require('date-fns');
const {ptBr} = require('date-fns/locale');
const faker = require('faker');
faker.locale = 'pt_BR';
const fs = require('fs');
View Effective_Engineer.md

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

View Effective_Engineer.md

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@tgmarinho
tgmarinho / rename.bash
Created Oct 30, 2020
renaming multiples files in subdirectory using rename and find
View rename.bash
brew install rename
tgmarinho.com/src on  main [✘!?] took 25s
❯ find . -type f -name "*.js" -exec rename 's/\.js$/.tsx/' '{}' \;
tgmarinho.com/src on  main [✘!?] took 3s
❯ find . -type f -name "styled.tsx" -exec rename 's/\.tsx$/.ts/' '{}' \;
tgmarinho.com/src on  main [✘!?]
View multer.js
const multer = require("multer");
const path = require("path");
const crypto = require("crypto");
const aws = require("aws-sdk");
const multerS3 = require("multer-s3");
const MAX_SIZE_TWO_MEGABYTES = 2 * 1024 * 1024;
const storageTypes = {
local: multer.diskStorage({
View index.js
require("dotenv").config();
const express = require("express");
const morgan = require("morgan");
const mongoose = require("mongoose");
const path = require("path");
const cors = require("cors");
const app = express();
View rocketseat_profile.md

Seu nome aqui

Olá pessoal 👋

Sou apaixonado por resolver problemas utilizando a programação. Sou um FullStack Developer 💻

  • 🚀 Estou trabalhando/estudando na Rocketseat
  • 💜 Buscando colaborar com projetos em Front-end usando React
  • 😊 Posso te ajudar com CSS Grid Layout e Flexbox
  • 💻 Minha stack: ReactJS, Node.js, React Native & Typescript
@tgmarinho
tgmarinho / profile.md
Created Aug 4, 2020
My github profile
View profile.md

Thiago Marinho

♥️ Hi there 👋 Thiago coding here 💻

@tgmarinho
tgmarinho / wsl-setup.md
Created Jul 27, 2020 — forked from mtobeiyf/wsl-setup.md
WSL + ZSH + Hyper Setup
View wsl-setup.md

My WSL Setup

A guide to setup your WSL with Hyper and zsh

Download & Install the WSL

  • Follow the very thorough instructions here

Get a prettier terminal

  • Download Hyper.js here - I went with the 'hyperblue' theme.
@tgmarinho
tgmarinho / README.md
Created Jul 17, 2020 — forked from navarrothiago/README.md
Transform your smartphone camera in a WebCam to make video conference
View README.md