Fresh start your Mac, install the following to get essential developer tools.
export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8
softwareupdate -i -a
| import logging | |
| import time | |
| import asyncio | |
| import aiohttp | |
| from prometheus_client import start_http_server, Counter, Histogram | |
| # Prometheus Metrics | |
| h = Histogram('requests_latency', 'latency histogram', ["url", "method"]) | |
| c = Counter("requests_total", "Total count of requests", ["code", "url"]) |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
| git config --local --unset credential.helper | |
| git config --global --unset credential.helper | |
| git config --system --unset credential.helper |
| #!/usr/bin/python | |
| __author__='Semyon Teplisky' | |
| import functools | |
| import pandas as pd | |
| import numpy as np | |
| raw_data = [{'campaign_id':1111,'medium_id':'msn','campaign_name': 'viral #1', 'clicks':100, 'ctr':0.7}, | |
| {'campaign_id':1111,'medium_id':'aol','campaign_name': 'viral #1', 'clicks':250, 'ctr':0.4}, | |
| {'campaign_id':1111,'medium_id':'google','campaign_name': 'viral #1', 'clicks':500, 'ctr':0.1}] |
| # import python core modules | |
| import datetime | |
| import logging | |
| # import external modules | |
| import pandas as pd | |
| import requests | |
| # import luigi modules | |
| import luigi |
| import uuid | |
| import psycopg2 | |
| from secret import REDSHIFT_CREDS | |
| from secret import AWS_ACCESS_KEY, AWS_SECRET_KEY | |
| def get_primary_keys(tablename, db): | |
| c = db.cursor() | |
| sql = "select indexdef from pg_indexes where tablename = '%s';" % tablename | |
| c.execute(sql) | |
| result = c.fetchall()[0][0] |
| sudo apt-get clean | |
| sudo apt-get autoremove --purge -y |
| WMS url => http://ows.mundialis.de/services/service? | |
| WMS layers => TOPO-OSM-WMS | |
| WMS version => 1.1.1 | |
| WMS format => image/png |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": "s3:ListAllMyBuckets", | |
| "Resource": "arn:aws:s3:::*" | |
| }, | |
| { | |
| "Effect": "Allow", | |
| "Action": "s3:*", | |
| "Resource": [ |