Skip to content

Instantly share code, notes, and snippets.

View francajosejunior's full-sized avatar
😆

Jose Joaquim Junior francajosejunior

😆
  • São Paulo / Brasil
View GitHub Profile
#cloud-config
autoinstall:
version: 1
identity:
realname: "José Júnior"
hostname: ubuntu-desktop
username: ze
password: "$y$j9T$uhkxlm8nUQaNu.6rl4k2d.$DIldpYy96OHg8lFjfXfc671BZcGWkPOmaDONGAhGSg3"
locale: pt_BR.utf8
keyboard:
@francajosejunior
francajosejunior / yup.locale.pt-br.js
Created July 6, 2021 18:38 — forked from max10rogerio/yup.locale.pt-br.js
Translation of the main messages from the Yup library into the Pt-Br language.
/* eslint-disable */
// For more infos, see: https://github.com/jquense/yup/blob/master/src/locale.js
import { setLocale } from 'yup'
const translation = {
mixed: {
default: '${path} é inválido',
required: '${path} é um campo obrigatório',
oneOf: '${path} deve ser um dos seguintes valores: ${values}',
notOneOf: '${path} não pode ser um dos seguintes valores: ${values}',
@francajosejunior
francajosejunior / rabbitmq.txt
Last active February 15, 2021 16:50
Comandos de rabbitmq
#Instalacao do manager do rabbitmq
rabbitmq-plugins enable rabbitmq_management
#Comandos de inicializacao
rabbitmq-server start
#Alterar defauls do rabbit (opcional)
##Alterar nome
set RABBITMQ_NODENAME= <nome do servidor>
::-webkit-scrollbar {
appearance: none;
width: 2px;
height: 2px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
"eslintConfig": {
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html,
body,
div,
span,
applet,
@francajosejunior
francajosejunior / auto-load-reducers
Created May 9, 2019 19:45
Auto load all reducers with require.context
import { combineReducers } from 'redux';
import { reducer as formReducer } from 'redux-form';
const modules = {}
const context = require.context('./', true, /reducer\.js$/) // carrega reducers de todos os componentes
context.keys().forEach((filename) => {
const arr = filename.split('/')
const key = arr[arr.length - 2]
const ctx = context(filename)
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb-base-hf"
],
"plugins": ["import", "react", "react-hooks", "prettier"],
"env": {
"es6": true,
"node": true,
// Flexbox Mixins
@mixin flexbox {
display: -webkit-box;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: flex;
}
@francajosejunior
francajosejunior / cloudSettings
Last active June 11, 2020 14:58
Sample jest configuration
{"lastUpload":"2020-06-11T14:56:33.721Z","extensionVersion":"v3.4.3"}