Skip to content

Instantly share code, notes, and snippets.

View dlstadther's full-sized avatar

Dillon Stadther dlstadther

View GitHub Profile
@dlstadther
dlstadther / Dockerfile
Last active October 10, 2018 22:42
Sample code and configuration for creating a Stateless Jenkins build server on Kubernetes using the Jenkins Configuration as Code Plugin
from jenkins/jenkins:2.143
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
@dlstadther
dlstadther / gitflow-breakdown.md
Created July 25, 2018 13:56 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@dlstadther
dlstadther / gh_contributions.html
Last active July 26, 2018 03:21
Jekyll Includes - GH Contributions
<style>
figure {
float: center;
width: 100%;
text-align: center;
font-style: italic;
font-size: smaller;
text-indent: 0;
border: thin silver solid;
margin: 2em;
"""
Test pipeline to test out complex dependency building
http://bionics.it/posts/luigi-tutorial
Concept breaks down when dynamic dependencies are introduced - ListParameters of Tasks cannot be serialized currently
# Note to self:
execute via `~/venv/luigi-3/bin/python3 test_dep.py --local-scheduler TaskA
"""

Keybase proof

I hereby claim:

  • I am dlstadther on github.
  • I am dlstadther (https://keybase.io/dlstadther) on keybase.
  • I have a public key ASCcMLcPfjZ-tVrhnXXdE8z-5dRLknpOg9Y1xscJ-P555Ao

To claim this, I am signing this object:

@dlstadther
dlstadther / example_etl.py
Last active January 30, 2023 14:47
Example ETL Using Luigi
# import python core modules
import datetime
import logging
# import external modules
import pandas as pd
import requests
# import luigi modules
import luigi
@dlstadther
dlstadther / example_redshift_copy.py
Last active June 9, 2021 07:35
Using Luigi's Redshift and S3
# import luigi modules
import luigi
from luigi.contrib import redshift
from luigi import configuration, s3
# import python core modules
import os
import shutil
import datetime