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
0-mail.com | |
001.igg.biz | |
027168.com | |
0815.ru | |
0815.ry | |
0815.su | |
0845.ru | |
0box.eu | |
0clickemail.com | |
0u.ro |
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 airflow.exceptions import AirflowException | |
from airflow.contrib.hooks.aws_hook import AwsHook | |
from io import StringIO | |
import time | |
import logging | |
TYPES_MAP = { | |
"integer": "INT", | |
"boolean": "BOOLEAN", | |
"bigint": "BIGINT", |
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
a | |
able | |
about | |
above | |
abst | |
accordance | |
according | |
accordingly | |
across | |
act |
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 os | |
from sqlalchemy import create_engine | |
DEFAULT_CONN_STR = 'postgresql://{0}:{1}@{2}:5432/{3}?client_encoding=utf8' | |
DB_USER = os.environ.get('DB_USER') | |
DB_PASS = os.environ.get('DB_PASS') | |
DB_HOST = os.environ.get('DB_HOST') | |
DB_DB_NAME = os.environ.get('DB_DB_NAME') |
- Change your database RDS instance security group to allow your machine to access it.
- Add your ip to the security group to acces the instance via Postgres.
- Make a copy of the database using pg_dump
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
- you will be asked for postgressql password.
- a dump file(.sql) will be created
- Restore that dump file to your local database.
- but you might need to drop the database and create it first
$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
- the database is restored
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
# phusion baseimage initiates cron properly | |
# Use phusion/baseimage as base image. To make your builds reproducible, make | |
# sure you lock down to a specific version, not to `latest`! | |
# See https://github.com/phusion/baseimage-docker/blob/master/Changelog.md for | |
# a list of version numbers. | |
FROM phusion/baseimage:0.9.16 | |
# Use baseimage-docker's init system. | |
CMD ["/sbin/my_init"] |