Skip to content

Instantly share code, notes, and snippets.

View fmontone's full-sized avatar

Fabio Montone fmontone

  • São Paulo / Brazil
View GitHub Profile
const { resolve } = require('path');
module.exports = {
env: {
browser: true,
es6: true,
jest: true,
},
globals: {
Atomics: 'readonly',
@diego3g
diego3g / README.md
Created December 3, 2019 19:15
Criação de servidor Node.js

Configuração do servidor

  1. Configurar chave SSH
  2. Criar Droplet
  3. Realizar update e upgrade
  4. Crua usuário adduser deploy e usermod -aG sudo deploy
  5. Cria pasta .ssh pro deploy
  6. cp ~/.ssh/authorized_keys /home/deploy/.ssh/authorized_keys
  7. chown -R deploy:deploy .ssh/
  8. chmod 700 .ssh
@fmontone
fmontone / context_example.js
Last active November 19, 2020 23:42
React Context + Hook (PropTypes)
import { createContext, useContext } from 'react';
import PropTypes from 'prop-types';
const ExampleContext = createContext();
function ExampleProvider({ children }) {
return (
<ExampleContext.Provider value={}>
{children}