Skip to content

Instantly share code, notes, and snippets.

View fnoquiq's full-sized avatar
🚀
Brazil

Gabriel Mesquita fnoquiq

🚀
Brazil
  • Divinópolis - MG
View GitHub Profile
@fnoquiq
fnoquiq / brew-install-script.sh
Last active October 26, 2019 11:20
Brew script for installing packages and applications on OSX
#!/bin/sh
# Homebrew Script for OSX
# To execute: save and `chmod +x ./brew-install-script.sh` then `./brew-install-script.sh`
echo "Installing brew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Installing brew cask..."
brew update
@fnoquiq
fnoquiq / .zshrc
Created September 18, 2019 02:13
.zshrc
SPACESHIP_PROMPT_ORDER=(
user # Username section
dir # Current directory section
host # Hostname section
git # Git section (git_branch + git_status)
hg # Mercurial section (hg_branch + hg_status)
exec_time # Execution time
line_sep # Line break
vi_mode # Vi-mode indicator
jobs # Background jobs indicator
@fnoquiq
fnoquiq / JEST-GUIDE.md
Last active February 11, 2020 23:01
JEST Configuration

Configurando JEST (nodeJS)

Iniciando projeto NodeJS

yarn global add @rocketseat/omni

Após instalar o omni da rocketseat, execute omni init [pasta/nomeprojeto] --only=server para inicar um projeto básico do nodeJS

Dependências de desenvolvimento do JEST:

@fnoquiq
fnoquiq / EXPRESS-GUIDE.md
Last active February 11, 2020 23:02
Node API configuration

Configurando projeto nodeJS

Configurado para o padrão Airbnb em conjunto ao Prettier

Não se esqueça de adicionar as seguintes dependências de desenvolvimento:

yarn add eslint eslint-config-airbnb-base eslint-config-prettier eslint-plugin-import -D

yarn add nodemon sucrase prettier eslint-plugin-prettier -D

@fnoquiq
fnoquiq / VSCODE-GUIDE.md
Last active February 11, 2020 23:02
VS Code settings configuration

Configurando VSCode

Instale os seguintes plugins no VSCode:

  • Color Highlight

  • Dracula Official

  • EditorConfig for VS Code

{
"above": "The {{field}} should be above {{argument.0}}.",
"accepted": "The {{field}} should have been accepted",
"after": "The {{field}} should be a date after {{argument.0}}",
"after_offset_of": "The {{field}} should be after {{argument.0}} {{argument.1}} from today’s date",
"alpha": "The {{field}} should contain letters only",
"alpha_numeric": "The {{field}} should contain letters and numbers only",
"array": "The {{field}} should be an ARRAY.",
"before": "The {{field}} should be a date before {{argument.0}}.",
"before_offset_of": "The {{field}} should be before {{argument.0}} {{argument.1}} from today’s date",
@fnoquiq
fnoquiq / HUSKY-GUIDE.md
Last active April 3, 2020 03:15
Commit lint config

Commit lint configuration :emoji:

Instale as seguintes dependências:

yarn add -D husky @commitlint/{config-conventional,cli}

Feito isso, adicione ao package.json o seguinte comando:

"husky": {
@fnoquiq
fnoquiq / SEQUELIZE-GUIDE.MD
Last active January 25, 2021 19:03
Listagem de comando sequelize

Lista de comandos:

yarn sequelize migration:create --name=create-users

Esta função serve para criar uma nova migration e então definir nela a estrutura do banco

yarn sequelize db:migrate

Esta função serve para rodar as migrations e atualizar a estrutura do banco de dados

@fnoquiq
fnoquiq / gist:4fbf65d885ecf106d26dbd81b5743d2f
Created March 30, 2021 20:34 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@fnoquiq
fnoquiq / Show all rows on table
Last active May 22, 2021 16:34
Dynamodb Scan Example
var params = {
TableName: 'users_certificates'
};
dynamodb.scan(params, onScan);
function onScan(err, data) {
if (err) {
console.error(err);
}else {