This file contains hidden or 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
| """ | |
| Code that goes along with the Airflow tutorial located at: | |
| https://github.com/airbnb/airflow/blob/master/airflow/example_dags/tutorial.py | |
| """ | |
| from airflow import DAG | |
| from airflow.operators.python_operator import PythonOperator | |
| from airflow.operators.generic_transfer import GenericTransfer | |
| from airflow.contrib.hooks import FTPHook | |
| from airflow.hooks.mysql_hook import MySqlHook |
This file contains hidden or 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
| # Showing the necessary part of adding the logging config to the python path | |
| COPY config/log_config.py config/log_config.py | |
| COPY config/__init__.py config/__init__.py | |
| RUN chown -R airflow: ${AIRFLOW_HOME} | |
| ENV PYTHONPATH ${PYTHONPATH}:/usr/lib/python2.7/site-packages/:${AIRFLOW_HOME}/config/ |
This file contains hidden or 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
| The primary goal is to swap command and option. | |
| The secondary goal is to remap Caps Lock to Control. | |
| The tertiary goal is to share modifier keys across keyboards, so you can emacs with two keyboards. | |
| The following instructions are good as of 2016-08-24, for OS X El Capitan 10.11.6. | |
| Mac OS Sierra broke Seil support; Seil instructs us to consider Karabiner Elements. | |
| But when Karabiner Elements swaps command and option, it does it for all keyboards; | |
| meaning the native keyboard also gets its command and option swapped, which is bad! |
NewerOlder