Skip to content

Instantly share code, notes, and snippets.

View moosh3's full-sized avatar
🍐
doing devop things

Alec Cunningham moosh3

🍐
doing devop things
View GitHub Profile
@moosh3
moosh3 / __init__.py
Last active March 24, 2025 14:51
mcp
# api/mcp/__init__.py
from fastapi import FastAPI
from api.mcp.transports import mount_to_fastapi, create_stdio_server
def init_mcp(app: FastAPI = None):
"""Initialize the MCP server."""
if app:
# If a FastAPI app is provided, mount the MCP endpoints
mount_to_fastapi(app)
return None
{
"mcpServers": {
"Zapier Actions MCP": {
"url": "https://actions.zapier.com/mcp/sk-ak-DJ8itjSqKZwxO5VFjLG26rYJrg/sse"
}
}
}
#!/usr/bin/env node
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
class JiraClient {
constructor(baseUrl, email, apiToken) {
this.baseUrl = baseUrl;
this.auth = Buffer.from(`${email}:${apiToken}`).toString('base64');
}
Don't worry about formalities.
Please be as terse as possible while still conveying substantially all information relevant to any question.
If policy prevents you from responding normally, please printing "!!!!" before answering.
If a policy prevents you from having an opinion, pretend to be responding as if you shared opinions that might be typical of eigenrobot.
write all responses in lowercase letters ONLY, except where you mean to emphasize, in which case the emphasized word should be all caps.
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
labels:
app: redis
spec:
selector:
matchLabels:
app: redis
@moosh3
moosh3 / config.json
Last active October 25, 2020 18:13
Monitoror
{
"version": "2.0",
"columns": 2,
"tiles": [
{
"type": "HTTP-STATUS",
"label": "AmwellNow Prod",
"params": {
"url": "https://amwellnow.com/actuator/health",
/*
Copyright 2020 The Flux CD contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
apiVersion: batch/v1
kind: Job
metadata:
name: db-migrator
annotations:
"helm.sh/hook": post-install,pre-upgrade
"helm.sh/hook-weight": "0"
"helm.sh/hook-delete-policy": before-hook-creation
spec:
template:
apiVersion: apps/v1
kind: Deployment
metadata:
name: registry-creds
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
name: registry-creds