One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
If you want a smooth ride on the cloud paradise you should leave your keys in the secret stash! Well, jokes aside, it seems we will be coming back and forth to our EC2 instances and, following good examples from @atgmello and @gabfr, I've come up with a simple step-by-step procedure to easy the journey whenever we want to rapidly connect to our instances.
After you set up your permissions with:
chmod 400 <your-pem-path>
{ | |
"schemaVersion": 2, | |
"dockerfilePath": "./Dockerfile" | |
} |
FROM python:3.7-alpine | |
WORKDIR /app | |
RUN apk update && apk upgrade | |
RUN apk add --no-cache make g++ bash git openssh postgresql-dev curl | |
RUN apk add --no-cache jpeg-dev zlib-dev | |
RUN apk add --no-cache gcc libc-dev fortify-headers linux-headers libxslt-dev | |
ENV PYTHONDONTWRITEBYTECODE 1 |
from datetime import datetime | |
from sqlalchemy import Column, Integer, DateTime, ForeignKey | |
from sqlalchemy.orm import relationship | |
from sqlalchemy.ext.declarative import declared_attr | |
from flask_security import current_user | |
class AuditMixin(object): | |
created_at = Column(DateTime, default=datetime.now) | |
updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now) |
# Example of combining Flask-Security and Flask-Admin. | |
# by Steve Saporta | |
# April 15, 2014 | |
# | |
# Uses Flask-Security to control access to the application, with "admin" and "end-user" roles. | |
# Uses Flask-Admin to provide an admin UI for the lists of users and roles. | |
# SQLAlchemy ORM, Flask-Mail and WTForms are used in supporting roles, as well. | |
from flask import Flask, render_template | |
from flask.ext.sqlalchemy import SQLAlchemy |
const first = new Promise((resolve, reject) => setTimeout(resolve, 5000)); | |
const second = new Promise((resolve, reject) => setTimeout(reject, 5000)); | |
Promise.allSettled([first, second]).then(myPromises => console.log(myPromises)); | |
/* | |
[ | |
{ status: 'fulfilled', value: undefined }, | |
{ status: 'rejected', value: undefined }, | |
] |
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# Distribution / packaging | |
.Python |
## Basic Instructions | |
# ------------------- | |
# A package is on an open repository, follow the bellow example: | |
# Where: | |
# vcs = the provider [git+, hg+, svn+, bzr+] | |
# protocol = https or ssh | |
# egg = project name | |
# subdirectory = address to setup.py from the project root | |
-e vcs+protocol://repo_url/#egg=pkg&subdirectory=pkg_dir |