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 argparse | |
# import data2tabshop | |
# from data2tabshop import __version__ | |
__version__ = '0.1.0' | |
__author__ = u'Steffen Exler' | |
def get_parser(): |
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 sys | |
import socket | |
if len(sys.argv) > 1: | |
hostname = str(sys.argv[1]) | |
print("requested Domain: %s" % hostname) # show domain name | |
try: | |
ip = socket.gethostbyname(hostname) | |
print("IP: %s" % ip) | |
except: |
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 psycopg2 | |
from psycopg2.extensions import connection, cursor | |
import sys | |
import datetime | |
class DestDB: | |
dbname = "gis" | |
user = "docker" | |
host = "localhost" | |
password = "Dyx8lXMKIGggiQXTzSrAuZ3UsDt8YmLy53WEIAga6EkkVc2GK9lmiRfJxzx7Oahw" |