Skip to content

Instantly share code, notes, and snippets.

View plinionaves's full-sized avatar

Plínio Naves plinionaves

View GitHub Profile
@plinionaves
plinionaves / multi-git.md
Created May 10, 2016 23:29 — forked from rosswd/multi-git-win.md
Setting up a Github and Bitbucket account on the same computer.

Setting up github and bitbucket on the same computer

Github will be the main account and bitbucket the secondary.

Create SSH Keys

ssh-keygen -t rsa -C "github email"

Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.

@plinionaves
plinionaves / kindle-translator.js
Last active January 10, 2019 20:37
Kindle Translator
javascript: (function () {
/* based on ACRExtensions via https://github.com/binarycrafts/ACRExtensions */
var w = null;
var kDoc = null;
var kObj = null;
if (typeof window.KindleReaderContextMenu !== 'undefined') {
w = window;
@plinionaves
plinionaves / IonicAngularVSCode.md
Last active April 14, 2022 01:06
Ionic + Angular VSCode Settings
@plinionaves
plinionaves / examples.lisp
Last active May 20, 2019 16:22
Exemplos iniciais com Lisp Lang
; isso é um comentário de linha
; FUNCOES
; define uma função chamada soma
(defun soma (n1 n2) (+ n1 n2))
; executa a função soma
(print (soma 5 7)); 12
@plinionaves
plinionaves / bitbucket-to-github.md
Created June 11, 2019 14:04
How to Synchronize a Bitbucket repo with Github

1 - Go to Github and create a new "empty" repository, e.g: graphql-blog-api

2 - Clone the repository locally

git clone [email protected]:plinionaves/graphql-blog-api.git
cd graphql-blog-api

3 - Now add Bitbucket repo as a new remote in Github called "sync" (or "upstream")

@plinionaves
plinionaves / links-vscode-setup.md
Last active October 23, 2021 19:23
Default VSCode Setup (for all projects)
@plinionaves
plinionaves / eslint_prettier_airbnb.md
Created November 29, 2019 02:24 — forked from bradtraversy/eslint_prettier_airbnb.md
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
@plinionaves
plinionaves / vue-folder-structure.md
Last active November 5, 2024 18:02
Vue Project Folder Structure

Style Guide

This file describes de required Style Guide used by Basicamente to keep the Best Practices on develop new features or improve/change existents one.

Project folder structure

Always follow the folder structure below:

src/
@plinionaves
plinionaves / vscode-chrome-debug.md
Last active November 19, 2020 01:55
VSCode + Chrome Debug in attached mode

VSCode + Chrome Debug

launch mode

  1. VSCode launch.json
{
  "version": "0.2.0",
  "configurations": [

GraphQL Upload

operations

{
  "query": "mutation SingleUpload($data: UploadInput!) { singleUpload(data: $data) { _id filename url mimetype } }",
  "variables":{
    "data": { 
      "file": null
 }