This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git = { | |
| enable = true; | |
| extraConfig = { | |
| "url \"git@github.com:\"".insteadOf = "https://github.com/"; | |
| }; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
| "basics": { | |
| "name": "Matt Rixman", | |
| "label": "Bits, Bytes, and Theorems", | |
| "image": "https://avatars.githubusercontent.com/u/5834582?s=96&v=4", | |
| "email": "matt@rixman.org", | |
| "summary": "I am in search of interesting problems that can be solved with code. Bonus points if they're socially impactful, open source, or peer-to-peer.", | |
| "profiles": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GCAAAGGCTCACCCAAGGCTCCGAATCACACTATCTGAGCAACATTTCAAGACACTCTGCAACACCACGCCAGCCTCGGAAAAGCGTGCAAATCTGCTGTGAAGATGCTCAGGCCTTCATTGCCAAAGACTCTGACGGCTTTTGGCCCGCCTTAACCAGCTGGGTGGCCGGCCCGGACAGTGCCCGTCGCGGATCTCTGCATGGCTTCAAACCAGAAAGGTGCTCTCAACGTCGGGCAACAGTGAGGTATGCGACTCCCCTTGCATCACATGGACTTGTCCTGGGAGGCCTTTTCTTGGGCCGTTCATTGCGGAGATGTCGGCAAGGTTCTCTGCAAGACCGTGTCAGCCACGGCCCTTGCGAGGCTGAGTTGAGGTCTGGCTATCTGTCTCGAGATGGACCTCACTGGGTCGTCATGGCTGGCTCGAGGCCTTGCTGGCTGGGCCTTTGCCTGGAGCTTCATGATATTGCCAAGCCTCGGAGCTCCCTTCGAATTGGTCAAGTGGTCTGCTTGGCTCGCCGTACCCAAGGTTACCCCAAGGTACCTACCTACCTACCTACACTAACCTACCTACCCTCCCTCTGCGGAGGAGGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATCAGCAACAGCGACAAATCAGCACACACGGCAAGCAAAGCACCCACGGGAGCTGGCTGTTAGCTGACTGAGCTCGAGCTTCCATCCCTTCGCTTAGCTTGGACGTCGGCACCTTCCCTCCTGTACGGACGCATGTCTCAGGCGCGGTTGCGCTCAAACACGGCGGGCAATCACCTGGAAGGACACAACATCAAAGGGCCCATCAGTGGCATGCATCTTCGGCCCTTCTGAATTTTCGAGCGTCTCCTGGCGCCAACTTCAACACCAAACCTCGTCGCGATCATCCTTCCGGCCAAAACACCACTTTTCCATCCGCCAACCCCGCTTCATCCACTTCCACCAGTTCCACGCAAATCCCGCGCCGTTGCCCCGTCAATATCAACATCCAGCATCGTCACG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ❯ nix log /nix/store/zp4vz01wk21ym5nixhhcva1nmvxqw0kc-kustomize-4.5.4.drv | |
| @nix { "action": "setPhase", "phase": "unpackPhase" } | |
| unpacking sources | |
| unpacking source archive /nix/store/kr8qsxkf90anrkdl98kw6cdyagcpprx1-source | |
| source root is source | |
| @nix { "action": "setPhase", "phase": "patchPhase" } | |
| patching sources | |
| @nix { "action": "setPhase", "phase": "configurePhase" } | |
| configuring | |
| @nix { "action": "setPhase", "phase": "buildPhase" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [[ $SHIMAGE_PROCIO_VERBOSE -eq 1 ]] && set -x | |
| # a folder for this process's outputs | |
| DATA="{data}/$$" | |
| mkdir -p $DATA | |
| # capture argv | |
| echo "$@" > $DATA/argv | |
| # assume we'll be terminatged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM docker.io/apache/airflow:2.5.0 | |
| USER root | |
| # install python (not depending on the system python for reasons...) | |
| COPY --from=python:3.11-slim /usr/local/bin/*3.11* /usr/local/bin/ | |
| COPY --from=python:3.11-slim /usr/local/lib/pkgconfig/*3.11* /usr/local/pkgconfig/ | |
| COPY --from=python:3.11-slim /usr/local/lib/*3.11*.so /usr/local/lib/ | |
| COPY --from=python:3.11-slim /usr/local/lib/python3.11 /usr/local/lib/python3.11 | |
| RUN ldconfig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu | |
| RUN apt update | |
| RUN apt install -y tini dumb-init python3-pip | |
| RUN pip install apache-airflow | |
| # place the entrypoint script | |
| COPY entrypoint.sh /entrypoint | |
| RUN chmod +x /entrypoint | |
| # a script that calls airflow (and does test-relevant things too) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import datetime | |
| from airflow import DAG | |
| from airflow.providers.cncf.kubernetes.operators.kubernetes_pod import ( | |
| KubernetesPodOperator, | |
| ) | |
| from airflow.configuration import conf | |
| namespace = conf.get("kubernetes", "NAMESPACE") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 2.1 | |
| jobs: | |
| my-job: | |
| machine: | |
| image: ubuntu-2004:202107-02 | |
| steps: | |
| - checkout | |
| - run: | |
| name: snap install | |
| command: sudo snap install microk8s --classic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from airflow.decorators import dag, task | |
| from airflow.sensors.date_time import DateTimeSensor, DateTimeSensorAsync | |
| from airflow.utils.dates import days_ago | |
| from time import sleep | |
| def tensec_taskfactory(i): | |
| @task(task_id=f"task_{i}") | |
| def wait(): |