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
COMMAND_PRE = "pg_dump --column-inserts -a" | |
def backup(host_name, database_name, user_name, port, database_password, tables, file_dir="."): | |
"""backup specific tables for pg | |
Ref: http://wzktravel.github.io/2016/08/23/How-to-pass-in-password-to-pg-dump/ | |
export shell demo: | |
pg_dump --column-inserts -a -h {0} -d {1} -U {2} -p 5432 -t zones_seq -t table_2 > /tmp/zones_seq.sql | |
export file: | |
filename format: |
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
{"lastUpload":"2019-09-18T08:15:12.711Z","extensionVersion":"v3.4.2"} |
- hackerrank Day 18: Queues and Stacks
- cs.cmu.edu Stacks and Queues
- youtube videos
- martystepp CS 106B Lecture: Stacks and Queues
- HackerRank Data Structures: Stacks and Queues
- Derek Banas Stacks and Queues
Try this first.
brew install mysql-connector-c
sudo pip install MySQL-python
If fail then try below.
brew unlink mysql
brew install mysql-connector-c
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
# coding:utf-8 | |
from elasticsearch import Elasticsearch | |
import json | |
# Define config | |
host = "127.0.0.1" | |
port = 9200 | |
timeout = 1000 | |
index = "index" |
OlderNewer