Skip to content

Instantly share code, notes, and snippets.

import asyncio
import logging
from typing import AsyncIterable, List, Union
from google_a2a.common.server.task_manager import TaskManager
from google_a2a.common.server.utils import new_not_implemented_error
from google_a2a.common.types import (
Task,
TaskSendParams,
TaskStatus,
{
"basics": {
"name": "Jake Gaylor",
"label": "Technical Cofounder | AI/Platform Engineer",
"image": "",
"email": "[email protected]",
"phone": "720.453.3994",
"url": "https://jakegaylor.com",
"summary": "15+ years of experience working across the web stack with recent focus on AI engineering, product engineering, and platform engineering. Expert in Kubernetes, GitOps, cloud infrastructure, and AI agent development. Serial entrepreneur with experience running SaaS, PaaS, physical products, and restaurant businesses. Proven track record of transforming engineering teams into product-minded teams and accelerating software delivery through automation and best practices.",
"location": {
@jhgaylor
jhgaylor / ollama-mcp-ex.py
Created April 18, 2025 16:12
a super simple ollama tooling example taken from https://ollama.com/blog/functions-as-tools
import ollama
def add_two_numbers(a: int, b: int) -> int:
"""
Add two numbers
Args:
a: The first integer number
b: The second integer number
Returns:
{
"mcpServers": {
"notion": {
"command": "npx",
"args": [
"-y",
"@suekou/mcp-notion-server"
],
"env": {
"NOTION_API_TOKEN": "REDACTED"
@jhgaylor
jhgaylor / echoserver.yaml
Created August 25, 2023 10:16
This stands up a service in kubernetes that will echo back everything sent to it via http on port 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: echoserver
namespace: default
spec:
replicas: 1
selector:
matchLabels:
MYSQL_PASSWORD=/mysql/root/password
MYSQL_USERNAME=/mysq/root/username
MYSQL_USERNAME=$(aws ssm get-parameter MYSQL_USERNAME) MYSQL_PASSWORD=$(aws ssm get-parameter $MYSQL_PASSWORD) bash -c 'echo $MYSQL_PASSWORD'
@jhgaylor
jhgaylor / Dockerfile
Last active November 3, 2019 22:57
Add arbitrary ssm paramters to an existing docker image as environment variables at run time
FROM binxio/ssm-get-parameter AS SSMGETPARAM
ARG IMAGENAME
FROM $IMAGENAME
ARG ORIGINAL_ENTRYPOINT
ARG ORIGINAL_CMD
# install https://github.com/binxio/ssm-get-parameter
COPY --from SSMGETPARAM /ssm-get-parameter /usr/local/bin/
I1204 04:10:08.140227 1 logs.go:19] FLAG: --alsologtostderr="false"
I1204 04:10:08.140311 1 logs.go:19] FLAG: --audit-log-batch-buffer-size="10000"
I1204 04:10:08.140318 1 logs.go:19] FLAG: --audit-log-batch-max-size="1"
I1204 04:10:08.140339 1 logs.go:19] FLAG: --audit-log-batch-max-wait="0s"
I1204 04:10:08.140537 1 logs.go:19] FLAG: --audit-log-batch-throttle-burst="0"
I1204 04:10:08.140612 1 logs.go:19] FLAG: --audit-log-batch-throttle-enable="false"
I1204 04:10:08.140627 1 logs.go:19] FLAG: --audit-log-batch-throttle-qps="0"
I1204 04:10:08.140636 1 logs.go:19] FLAG: --audit-log-format="json"
I1204 04:10:08.140702 1 logs.go:19] FLAG: --audit-log-maxage="0"
I1204 04:10:08.140714 1 logs.go:19] FLAG: --audit-log-maxbackup="0"
I1204 03:51:24.424627 1 logs.go:19] FLAG: --alsologtostderr="false"
I1204 03:51:24.424697 1 logs.go:19] FLAG: --audit-log-batch-buffer-size="10000"
I1204 03:51:24.424703 1 logs.go:19] FLAG: --audit-log-batch-max-size="1"
I1204 03:51:24.424710 1 logs.go:19] FLAG: --audit-log-batch-max-wait="0s"
I1204 03:51:24.424716 1 logs.go:19] FLAG: --audit-log-batch-throttle-burst="0"
I1204 03:51:24.424723 1 logs.go:19] FLAG: --audit-log-batch-throttle-enable="false"
I1204 03:51:24.424731 1 logs.go:19] FLAG: --audit-log-batch-throttle-qps="0"
I1204 03:51:24.424738 1 logs.go:19] FLAG: --audit-log-format="json"
I1204 03:51:24.424743 1 logs.go:19] FLAG: --audit-log-maxage="0"
I1204 03:51:24.424748 1 logs.go:19] FLAG: --audit-log-maxbackup="0"
[12/03/18 20:50] jakegaylor at Jakes-MacBook-Pro in ~/dev/cloudflinger/infrastructure/terraform on master [!]
$ kubectl create clusterrolebinding "cluster-admin-$(whoami)" \
→ --clusterrole=cluster-admin \
→ --user="$(gcloud config get-value core/account)"
clusterrolebinding.rbac.authorization.k8s.io "cluster-admin-jakegaylor" created
[12/03/18 20:50] jakegaylor at Jakes-MacBook-Pro in ~/dev/cloudflinger/infrastructure/terraform on master [!]
$ curl -fsSL https://raw.githubusercontent.com/kubedb/cli/0.9.0-rc.0/hack/deploy/kubedb.sh | bash
checking kubeconfig context
gke_cloudflinger-com-prod_us-central1_us-central1