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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"cloudformation:*" | |
], | |
"Resource": "*" | |
}, { |
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
select m.delivery_id, m.order_id, m.activated, dups.cnt from delivery_vroong_order_map as m | |
inner join ( | |
select delivery_id, COUNT(*) as cnt | |
from delivery_vroong_order_map | |
group by delivery_id | |
having | |
count(*) > 1 | |
) dups on m.delivery_id = dups.delivery_id; |
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 Vue from 'vue' | |
import store from '~/store' | |
import router from '~/router' | |
import i18n from '~/plugins/i18n' | |
import App from '~/components/App' | |
import '~/plugins' | |
import '~/components' | |
Vue.config.productionTip = false |
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 Vue from 'vue' | |
import Vuex from 'vuex' | |
Vue.use(Vuex) | |
// Load store modules dynamically. | |
const requireContext = require.context('./modules', false, /.*\.js$/) | |
const modules = requireContext.keys() | |
.map(file => |
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 Vue from 'vue' | |
import store from '~/store' | |
import Meta from 'vue-meta' | |
import routes from './routes' | |
import Router from 'vue-router' | |
import { sync } from 'vuex-router-sync' | |
Vue.use(Meta) | |
Vue.use(Router) |
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 | |
export DEBIAN_FRONTEND=noninteractive | |
# Update Package Lists | |
apt-get update | |
apt-get upgrade -y | |
# Set locale | |
echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale | |
locale-gen en_US.UTF-8 |
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 example.com www.example.com; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl http2; |
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 default_server; | |
server_name localhost; | |
location / { | |
proxy_pass http://localhost:8080; | |
proxy_set_header Host $host:$server_port; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; |
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
FROM node:13.2-alpine | |
# create destination directory | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
# bundle app sources | |
COPY . /usr/src/app/ | |
ENV NODE_ENV=local |