Install Golang 1.9:
wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile
If already installed old golang with apt-get:
Install Golang 1.9:
wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile
If already installed old golang with apt-get:
| """Get named timezone for a location on macOS using CoreLocation | |
| To use this script, you need to have pyobjc-core and pyobjc-framework-CoreLocation installed: | |
| pip install pyobjc-core pyobjc-framework-CoreLocation | |
| This script uses CoreLocation to get the timezone for a given latitude and longitude | |
| as well as the timezone offset for a given date. | |
| It effectively does the same thing as python packages like [tzfpy](https://pypi.org/project/tzfpy/) |
| from io import StringIO | |
| import sys | |
| from typing import Dict, Optional | |
| from langchain.agents import load_tools | |
| from langchain.agents import initialize_agent | |
| from langchain.agents.tools import Tool | |
| from langchain.llms import OpenAI |
| # -*- coding: utf-8 -*- | |
| from airflow.operators.http_operator import SimpleHttpOperator | |
| from airflow.operators.postgres_operator import PostgresOperator | |
| from airflow.operators.subdag_operator import SubDagOperator | |
| from airflow.operators.sensors import SqlSensor | |
| from airflow.hooks.postgres_hook import PostgresHook | |
| from airflow.operators.python_operator import PythonOperator | |
| from airflow.models import Variable, DAG |
| # -*- coding: utf-8 -*- | |
| from airflow.operators.http_operator import SimpleHttpOperator | |
| from airflow.operators.postgres_operator import PostgresOperator | |
| from airflow.operators.subdag_operator import SubDagOperator | |
| from airflow.operators.sensors import SqlSensor | |
| from airflow.hooks.postgres_hook import PostgresHook | |
| from airflow.operators.python_operator import PythonOperator | |
| from airflow.models import Variable, DAG |
| import gzip | |
| from functools import wraps | |
| import boto3 | |
| from sqlalchemy import MetaData | |
| from pandas import DataFrame | |
| from pandas.io.sql import SQLTable, pandasSQL_builder | |
| import psycopg2 | |
| import codecs | |
| import cStringIO | |
| from io import BytesIO |