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
version: '2' | |
services: | |
myapp: | |
build: . | |
container_name: "myapp" | |
image: debian/latest | |
environment: | |
- NODE_ENV=development | |
- FOO=bar | |
volumes: |
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
# Reference: | |
https://www.cloudgear.net/blog/2015/5-minutes-kubernetes-setup/ | |
# install homebrew and cask | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# install virtualbox | |
brew cask install virtualbox | |
# install dockertoolbox |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
$ brew install ansible # OSX
$ [sudo] pip install ansible # elsewhere
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
from airflow.models import BaseOperator | |
import logging | |
from subprocess import Popen, STDOUT, PIPE | |
from airflow.exceptions import AirflowException, AirflowTaskTimeout | |
from airflow.utils.decorators import apply_defaults | |
''' | |
SparkOperator for airflow designed to simplify work with Spark on YARN. | |
Simplifies using spark-submit in airflow DAGs, retrieves application id | |
and tracking URL from logs and ensures YARN application is killed on timeout. |
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
from airflow.models import BaseOperator | |
import logging | |
from subprocess import Popen, STDOUT, PIPE | |
from airflow.exceptions import AirflowException, AirflowTaskTimeout | |
from airflow.utils.decorators import apply_defaults | |
''' | |
SparkOperator for airflow designed to simplify work with Spark on YARN. | |
Simplifies using spark-submit in airflow DAGs, retrieves application id | |
and tracking URL from logs and ensures YARN application is killed on timeout. |
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
---------------------------------------------------------------- | |
-- Streams - Change Data Capture (CDC) on Snowflake tables | |
-- Tasks - Schedule execution of a statement | |
-- MERGE - I/U/D based on second table or subquery | |
---------------------------------------------------------------- | |
-- reset the example | |
drop table source_table; | |
drop table target_table; | |
drop stream source_table_stream; |
OlderNewer