- HTTP server
nginx
- Rails web server
passenger
- Database
PosgreSQL
- Deployment utility
mina
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { fromJS } from 'immutable'; | |
import { | |
SIGN_IN_BY_EMAIL_REQUEST, | |
SIGN_IN_BY_EMAIL_SUCCESS, | |
SIGN_IN_BY_EMAIL_ERROR, | |
} from './constants'; | |
const initialState = fromJS({ | |
error: null, | |
user: null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createSelector } from 'reselect'; | |
const selectMenusDomain = () => (state) => state.get('menus'); | |
const selectRestaurantMenus = () => createSelector( | |
selectMenusDomain(), | |
(menusState) => menusState.get('menus') | |
); | |
const selectActiveMenu = () => createSelector( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import Immutable from 'immutable'; | |
import styled from 'styled-components'; | |
import { Link } from 'react-router'; | |
import ViewBranchListPanel from '../../components/ViewBranchListPanel'; | |
import './styles.scss'; | |
const TableList = styled.ul` | |
padding-left: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* MIT License | |
* | |
* Copyright (c) 2017-2018 Bannerets <save14@protonmail.com> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
I hereby claim:
- I am tobernguyen on github.
- I am longn (https://keybase.io/longn) on keybase.
- I have a public key ASCbtYijrvzR2rc4uQANAyRN1FfnfIiHgzS_7jLSH6oJQgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -xe | |
# Install Chrony and use Amazon Time Sync Service | |
sudo apt install chrony -y | |
sudo sed -i '1s;^;server 169.254.169.123 prefer iburst minpoll 4 maxpoll 4\n;' /etc/chrony/chrony.conf | |
sudo /etc/init.d/chrony restart | |
# For install verification | |
sleep 5 |