Skip to content

Instantly share code, notes, and snippets.

Avatar

Fabio Montone fmontone

View GitHub Profile
@fmontone
fmontone / context_example.js
Last active Nov 19, 2020
React Context + Hook (PropTypes)
View context_example.js
import { createContext, useContext } from 'react';
import PropTypes from 'prop-types';
const ExampleContext = createContext();
function ExampleProvider({ children }) {
return (
<ExampleContext.Provider value={}>
{children}
View .eslintrc.js
const { resolve } = require('path');
module.exports = {
env: {
browser: true,
es6: true,
jest: true,
},
globals: {
Atomics: 'readonly',
@diego3g
diego3g / README.md
Created Dec 3, 2019
Criação de servidor Node.js
View README.md

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