Skip to content

Instantly share code, notes, and snippets.

View joao-fontenele's full-sized avatar

João Paulo Fontenele Brito joao-fontenele

View GitHub Profile
@joao-fontenele
joao-fontenele / github_bitbucket_multiple_ssh_keys.md
Created March 6, 2024 06:23 — forked from yinzara/github_bitbucket_multiple_ssh_keys.md
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

@joao-fontenele
joao-fontenele / grokking_to_leetcode.md
Created February 25, 2022 02:20 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

#!/bin/bash
# USAGE: ./copy-docker.sh nginx:stable-alpine /etc/nginx/nginx.conf nginx.conf
image=$1
src=$2
dest=$3
container_name="copy-docker-temp"
docker create -it --name ${container_name} ${image} bash
@joao-fontenele
joao-fontenele / javascript.js
Last active March 18, 2020 17:23
vs code snippets for js
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
04bf888165110be09066c27eab54e74fa15f9174c4c67f5e02d7acbf2961a034abf6205b21b17b63979e32136894055d5ad4eaa63fc52ca2a60565b4ec1b3ead8e;bogdano