Skip to content

Instantly share code, notes, and snippets.

View asandeep's full-sized avatar

Sandeep Aggarwal asandeep

  • New Delhi
  • 23:14 (UTC +05:30)
View GitHub Profile
@asandeep
asandeep / prefect_cleanup.py
Created October 27, 2020 02:57
Flow to cleanup old prefect flow runs.
import pendulum
import prefect
from dynaconf import settings
from prefect import schedules
from prefect.schedules import clocks
# Cron schedule to execute cleanup job. Currently set to run at 00:00 (UTC)
# every Sunday.
DATA_CLEANUP_SCHEDULE_CRON_STRING = "0 0 * * 0"
@asandeep
asandeep / setup.sh
Created December 14, 2017 17:58 — forked from gorakhargosh/setup.sh
Configures and sets up Linux and Mac OS X machines for development.
#!/bin/bash
#
# Description: Releases for this script are available at:
# https://gist.github.com/gorakhargosh/c3902d08a939995fb4af/
#
# The above URL has a bit.ly link as:
# http://bit.ly/bhojo-config
#
# The script is intended to be written and reviewed in the repository
# but released as a gist at the abovementioned URL.