Skip to content

Instantly share code, notes, and snippets.

View jkislin's full-sized avatar

Jon Kislin jkislin

  • Booz Allen Hamilton
  • Plattsburgh, NY
View GitHub Profile
@jkislin
jkislin / dg_automation_test.py
Created April 29, 2026 21:23
This is a snippet of various things you can try to stress-test dagster declarative automation conditions. It is meant to be imported into an existing dagster definitions python module; it won't work by itself.
import dagster as dg
import datetime as dt
from datetime import datetime
from zoneinfo import ZoneInfo
tz = "America/New_York"
daily_partitions_def = dg.DailyPartitionsDefinition(
start_date=dt.datetime.now(ZoneInfo(tz)) - dt.timedelta(days=1),
end_offset=1,
timezone=tz,
@jkislin
jkislin / docker_setup.sh
Last active January 22, 2025 16:32
docker_setup.sh
# Jon Kislin's end to end Linux docker install guide, adapted from:
# https://docs.docker.com/engine/install/ubuntu/
# https://docs.docker.com/engine/install/linux-postinstall/
# Uninstall docker on WSL
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl