Skip to content

Instantly share code, notes, and snippets.

View rimatla's full-sized avatar

Altamir Coelho rimatla

View GitHub Profile
@rimatla
rimatla / ssh-setup-mac-github.md
Last active August 11, 2020 17:44
SSH Setup for Mac + Github

On Terminal

  • To generate an ssh key:

cd ~/

ssh-keygen -t rsa

  • Press enter to accept the default filename (/Users/you/.ssh/id_rsa)
  • Prompt asks you to create a passphrase. This is optional, either create a passphrase or press enter for no passphrase
  • After pressing enter, two files will be created ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub
@rimatla
rimatla / git-cheatsheet.md
Last active August 1, 2019 16:10
GIT commands + workflow cheatsheet

• Add Origin

- Sync your local repo to a RE-NAMED repo on github

git remote set-url origin https://github.com/rimatla/repo_name.git

- Add a new dir project to an existing (previously created) repo

git remote add origin https://github.com/username/repo_name.git

- Find what remote url owns a given repo

git remote show origin

@rimatla
rimatla / CreateReactApp-Airbnb-ESLint-Prettier-Config.md
Last active October 19, 2020 01:22
CreateReactApp-Airbnb-ESLint-Prettier-Config

How to config a CRA project (without ejecting it) to use Airbnb Linting rules along side ESLint and Prettier:

Date of this working config: April 2019

  1. npx create-react-app foobar
  2. Create a .eslintignore and add:
src/serviceWorker.js
  1. Create a .prettierrc and add:
@rimatla
rimatla / TSLInt-Prettier-CreateReactApp-TypeScript-setup.md
Last active May 17, 2024 09:44
Create React App + TypeScript Linting with TSLint and Prettier setup on VSCode

Ps: The current setup was done on 01-04-19

Project Dependency Versions at the time 👇

  "react": "^16.7.0",
  "react-dom": "^16.7.0",
  "react-scripts": "2.1.3",
  "typescript": "^3.2.2"
  "tslint": "^5.12.0",
  "tslint-config-prettier": "^1.17.0",