#!/bin/sh
set -eu

mode="${1:-intro}"

case "$mode" in
  intro)
    cat <<'RESUME_INTRO'
Daniel Thengvall skill tree

Modes:
  intro     short profile
  timeline  work history
  stack     skills snapshot
  links     contact and source links

Daniel is a software engineer with over 14 years of experience designing and deploying large-scale, mission-critical systems. He currently works at Folio, helping modernize the $400B hotel procurement industry through AI-powered infrastructure and automation. Previously, he built telephony and backend systems for autonomous vehicles at Cruise, and before that, worked at fintech startups on payments, crypto, and compliance. Outside of engineering, he enjoys traveling with his wife, distance running across the city, and bouldering.
RESUME_INTRO
    ;;
  timeline)
    cat <<'RESUME_TIMELINE'
- Software Engineer | Folio | 2025 - Present | San Francisco
- Senior Software Engineer | GM Cruise LLC | 2019 - 2025 | San Francisco
- Senior Software Engineer | Wyre Inc. | 2014 - 2019 | San Francisco
- Lead Developer | Rixty, Inc. | 2011 - 2014 | San Francisco
RESUME_TIMELINE
    ;;
  stack)
    cat <<'RESUME_STACK'
- Languages & Frameworks: TypeScript, Golang, Java, React, NestJS, Jest, Redux, Redux-Saga, RxJava, Node.js, Angular, Vert.x
- Cloud & Data: Google Cloud, Kubernetes, PostgreSQL, Cloud Spanner, Redis, AWS, Docker, MySQL, BigQuery, Looker, Pub/Sub, JOOQ, PagerDuty, Twilio, SIP, WebRTC
- System Design: Microservices, high availability, multi-region architectures, observability (metrics, logs, tracing)
- Other
- CI/CD Pipelines: Buildkite, GitHub Actions, Terraform
- Distributed Troubleshooting: Datadog, Stackdriver, Humio
- Security Best Practices: Vault, JWT, RBAC/ABAC
RESUME_STACK
    ;;
  links)
    cat <<'RESUME_LINKS'
- Website: https://dtheng.com
- Email: mailto:thengvall.daniel@gmail.com
- Resume: https://dtheng.com/resume
- PDF Resume: https://storage.googleapis.com/com-dtheng/DanielThengvallResume.pdf
- GitHub: https://github.com/DTHENG
- LinkedIn: https://www.linkedin.com/in/daniel-thengvall-75601918
- Instagram: https://instagram.com/dtheng
- X: https://x.com/DTHENG
RESUME_LINKS
    ;;
  *)
    echo "Usage: sh skills.sh [intro|timeline|stack|links]" >&2
    exit 64
    ;;
esac
