Skip to content

Instantly share code, notes, and snippets.

View Aebrathia's full-sized avatar

Andréa Maugars Aebrathia

  • Paris, France
View GitHub Profile
@Aebrathia
Aebrathia / PrivateRoute.js
Created June 14, 2018 15:58
React Router PrivateRoute connected component and unit testing with Jest
import React from 'react';
import { Route, Redirect, withRouter } from 'react-router';
import { connect } from 'react-redux';
import Proptypes from 'prop-types';
export const PrivateRoute = ({ component: Component, isAuthenticated, ...rest }) => (
<Route
{...rest}
render={props => (
isAuthenticated
@Aebrathia
Aebrathia / README.txt
Last active January 12, 2017 14:00
Interview test for frontend internships. Find the errors and suggest optimizations.
In the test.html, you should find more than 10 errors/lack of optimization.
As a developer, have in mind that this project you're working on will grow a lot in the next few months. The project should be optimized for :
- Maintainability
- Loading speed
- HTML5 semantics
- Responsive
Find as many improvements as you can but don't worry if you can't find everything ! ;)
@Aebrathia
Aebrathia / README.md
Created October 3, 2016 11:22
Setup Debian 8 server to work with Node, Nginx and MongoDB

Server setup

  1. Change root password. passwd root
  2. Follow steps Secure SSH
  3. Update Debian. apt-get update && apt-get upgrade
  4. Install sudo. apt-get install sudo
  5. Install dev tools (some npm packages need it). apt-get install build-essential
  6. Choose language. dpkg-reconfigure locales and pick fr_FR.UTF-8 if you're french
  7. Use UTC timezone
    1. rm /etc/localtime