Skip to content

Instantly share code, notes, and snippets.

View kaxil's full-sized avatar

Kaxil Naik kaxil

View GitHub Profile
@kaxil
kaxil / install-ac-dev.sh
Last active March 27, 2020 19:39
Install a AC 1.10.10-dev release
# Install AC Airflow and Hashicorp dependency
pip install --extra-index-url https://pip.astronomer.io/simple/ \
'astronomer-certified>=1.10.10-1.dev140[hvac]'
@kaxil
kaxil / create_vault_secret.sh
Last active March 27, 2020 19:27
Create Hashicorp Vault Secret
vault kv put \
secret/connections/smtp_default \
conn_uri=smtps://user:[email protected]:465
import json
import sys
from datetime import datetime
from functools import lru_cache
import humanize
import requests
from typing import NamedTuple, Dict
import semver
@kaxil
kaxil / run_airflow3.sh
Last active January 22, 2025 12:10
Run Airflow 3 from main
COMMIT_SHA=573cd95 AIRFLOW_HOME=$(pwd) uvx \
--python 3.11 \
--from "git+https://github.com/apache/airflow@$COMMIT_SHA" \
--with "git+https://github.com/apache/airflow@$COMMIT_SHA#egg=apache-airflow-task-sdk&subdirectory=task_sdk" \
--with "git+https://github.com/apache/airflow@$COMMIT_SHA#egg=local-providers&subdirectory=providers" \
bash -c "
cd \$(python -c 'import airflow, os; print(os.path.dirname(airflow.__file__))') && \
# Build the new UI only if it hasn't been built
if [ ! -d 'ui/dist' ]; then
echo 'Building new UI...'