Skip to content

Instantly share code, notes, and snippets.

View DylanBaker's full-sized avatar
:octocat:
Oh god. Another status to update?

Dylan Baker DylanBaker

:octocat:
Oh god. Another status to update?
View GitHub Profile
@DylanBaker
DylanBaker / spectacles.py
Created May 27, 2022 09:02
GitHub Actions script for Spectacles dbt integration
import time
import requests
import os
import sys
# Define API key and IDs
api_key = os.getenv("SPECTACLES_API_KEY") # <- Set this as a GitHub Actions environment variable
schema_name = f"dbt_ci_{os.getenv('GITHUB_SHA')[:6]}" # <- This is the name of the schema your CI jobs gets built in.
org_id = "" # <- Get this from the URL of the suite
@DylanBaker
DylanBaker / simulator.py
Created November 23, 2021 16:59
Run a simulation to see how much strength of schedule affects fantasy football standings
import itertools
import pandas as pd
TEAMS = [
"Toria",
"Dylan",
"Tom",
"Adam",
"Sammie",
"Will",
@DylanBaker
DylanBaker / looker_git_cleanup.py
Last active March 23, 2025 19:57
Script to clean up old git branches in Looker. Will delete all non-personal branches where the last commit is before the WEEKS_AGO_CUTOFF set.
#!/usr/bin/env python
# coding: utf-8
import requests
from datetime import datetime, timedelta
## Configs - enter CLIENT_ID and CLIENT_SECRET
BASE_URL = ''
CLIENT_ID = ''