Skip to content

Instantly share code, notes, and snippets.

@RBozydar
RBozydar / dag.py
Created January 25, 2020 10:14 — forked from adamhaney/dag.py
DBT Airflow DAG with model/graph introspection
from datetime import datetime, timedelta
import networkx as nx
from airflow import DAG
from airflow.operators import BashOperator, SubDagOperator
start_date = datetime(year=2017, month=6, day=13, hour=19, minute=0)
schedule_interval = '0 * * * 1-5'
default_args = {
@RBozydar
RBozydar / sysadmin_script.sh
Created December 5, 2018 21:31 — forked from tg12/sysadmin_script.sh
Ultimate Sysadmin Script, run on fresh install of Ubuntu
#!/bin/bash
#If possible, add something in for choosing [1] Configure Basics [2] Configure Security [3] Configure VMware Tools [4] Configure All. This might require Perl.
#set -x
read -p "RUN AS SUDO This script will perform basic configuration, as well as security configuration. Please connect VMware Tools image to include in installation. THIS SCRIPT WILL REPLACE A LOT OF IMPORTANT FILES. Seriously. Run this only on new systems. Press [ENTER] to continue or ^C to exit."
#read -p "Configure this server to be on 192.168.1.3/24?" yn
#while true; do
#case $yn in
# [Yy]* )