Skip to content

Instantly share code, notes, and snippets.

@cronosnull
cronosnull / installKafkaStandalone.sh
Created May 29, 2019
Install kafka statndalone.
View installKafkaStandalone.sh
#!/bin/bash
# This script install kafka 2.2.0
# on a centos 7 machine
## RUN AS SUDO
if [[ $EUID -gt 0 ]]
then
echo "Please run as root/sudo"
exit 1
fi
@cronosnull
cronosnull / AirflowMaster.sh
Last active Jun 26, 2018
Airflow Celery Install
View AirflowMaster.sh
#!/bin/bash
USUARIO_SO="$(whoami)"
ANACONDA_URL="https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh"
_DB_PASSWORD="la contraseña"
_IP=$(hostname -I | cut -d' ' -f1)
while getopts "a:p:h" opt; do
case $opt in
a) ANACONDA_URL="$OPTARG";;
p) _DB_PASSWORD="$OPTARG";;
h) cat <<EOF
@cronosnull
cronosnull / airflowPostgresqlInstall.sh
Last active Dec 24, 2019
Install Airflow on a new Ubuntu server 18.04
View airflowPostgresqlInstall.sh
#!/bin/bash
USUARIO_SO="$(whoami)"
ANACONDA_URL="https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh"
_DB_PASSWORD="la contraseña"
_IP=$(hostname -I | cut -d' ' -f1)
while getopts "a:p:h" opt; do
case $opt in
a) ANACONDA_URL="$OPTARG";;
p) _DB_PASSWORD="$OPTARG";;
h) cat <<EOF
You can’t perform that action at this time.