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
server { | |
listen 80; | |
listen [::]:80; | |
server_name hello.antonybudianto.com; | |
# root /usr/share/nginx/html; | |
root /home/ec2-user/web/hello/build; | |
# Load configuration files for the default server block. | |
include /etc/nginx/default.d/*.conf; | |
} |
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
server { | |
listen 80; | |
root /usr/share/nginx/html; | |
gzip on; | |
gzip_types text/css application/javascript application/json image/svg+xml; | |
gzip_comp_level 9; | |
etag on; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} |
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
server { | |
location ~* (serviceworker\.js)$ { | |
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; | |
expires off; | |
proxy_no_cache 1; | |
} | |
} |
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 ReactDOM from 'react-dom'; | |
import css from './Modal.css'; | |
let modalRoot; | |
class Modal extends React.Component { | |
constructor(props) { | |
super(props); |
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
// const fs = require('fs-extra') | |
const webpack = require('webpack') | |
const debug = require('debug')('app:bin:compile') | |
const webpackClientConfig = require('../config/webpack.client.config') | |
const webpackServerConfig = require('../config/webpack.server.config') | |
const project = require('../config/project.config') | |
// Wrapper around webpack to promisify its compiler and supply friendly logging | |
const webpackCompiler = (webpackConfig) => | |
new Promise((resolve, reject) => { |
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
{ | |
"name": "my-razzle-app", | |
"version": "2.0.0-alpha.8", | |
"license": "MIT", | |
"scripts": { | |
"start": "razzle start", | |
"build": "razzle build", | |
"pkg": "npx pkg build/server.js -t node8-macos -d", | |
"test": "razzle test --env=jsdom", | |
"start:prod": "NODE_ENV=production node build/server.js" |
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
find . -name '*.tmp' -delete |
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, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import withStyles from 'isomorphic-style-loader/lib/withStyles'; | |
import indexCss from './index.css'; | |
import css from './App.css'; | |
import rabbitCss from './Rabbit.css'; | |
class App extends Component { | |
render() { |
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
# https://sujipthapa.co/blog/git-pro-tip-show-your-branch-on-linux-ubuntu-terminal | |
# Aliases | |
alias cgo='cd ~/Documents/Code/go/src/github.com/antonybudianto' | |
alias c='clear' | |
alias h='cd ~' | |
alias co='cd ~/Documents/Code' | |
alias cw='cd ~/Documents/Code/Web' | |
alias yup='yarn global upgrade-interactive' | |
alias dockerclean='docker rm $(docker ps -a -q) -f' |