Skip to content

Instantly share code, notes, and snippets.

View captnswing's full-sized avatar

Frank Hoffsümmer captnswing

View GitHub Profile
@captnswing
captnswing / setup_snowflake_sshkeys_and_envvars.py
Last active May 18, 2025 11:06
snowflake ssh key generation
#!/usr/bin/env uv run
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "click",
# "cryptography",
# ]
# ///
"""This script generates a Snowflake-compatible RSA key pair.
@captnswing
captnswing / setup_cli_tools.sh
Created May 17, 2025 10:43
tool install script
#!/usr/bin/env bash
# This script checks for and installs the following command line tools:
# 1. brew (MacOS package manager) - https://brew.sh/
# 2. uv (Python package manager) - https://docs.astral.sh/uv/
# 3. op (1Password cli) - https://developer.1password.com/docs/cli/
# 4. aws (Amazon Web Services cli) - https://aws.amazon.com/cli/
# 5. git (Version control client) - https://git-scm.com/
# Function to check if a command exists
command_exists() {
@captnswing
captnswing / workday_calculator.py
Last active March 18, 2025 13:22
Calculate working days in a given peridod
#!/usr/bin/env uv run
# /// script
# dependencies = [
# "holidays",
# "typer",
# "numpy"
# ]
# ///
from datetime import date, datetime
from enum import Enum