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
services: | |
backend: | |
env_file: 'backend.env' | |
build: | |
context: . | |
target: backend | |
ports: | |
- '8080:8080' | |
- '9090:9090' # Metrics port | |
healthcheck: |
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
{ | |
"mcpServers": { | |
"github": { | |
"command": "docker", | |
"args": [ | |
"run", | |
"-i", | |
"--rm", | |
"-e", | |
"GITHUB_PERSONAL_ACCESS_TOKEN", |
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
{ | |
"mcpServers": { | |
"mcp-installer": { | |
"command": "npx", | |
"args": [ | |
"@anaisbetts/mcp-installer" | |
] | |
} | |
} | |
} |
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
"NEO4J_URI": "neo4j+s://b0XXX9e8.databases.neo4j.io", | |
"NEO4J_USERNAME": "neo4j", | |
"NEO4J_PASSWORD": "_eM6spXS2fFd--LOSw3EwgP5GAODp5ido85G1koVXXX" |
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
docker run --cap-add=NET_ADMIN --device=/dev/net/tun -v /sys/class/net/can0:/sys/class/net/can0 your-docker-image |
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
services: | |
db: | |
image: postgres:17 | |
environment: | |
POSTGRES_DB: ${DATABASE_NAME} | |
POSTGRES_USER: ${DATABASE_USERNAME} | |
POSTGRES_PASSWORD: ${DATABASE_PASSWORD} | |
ports: | |
- "5432:5432" | |
env_file: |
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
# Stage 1: Base build stage | |
FROM python:3.13-slim AS builder | |
# Create the app directory | |
RUN mkdir /app | |
# Set the working directory | |
WORKDIR /app | |
# Set environment variables to optimize Python |
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
# Use the official Python runtime image | |
FROM python:3.13 | |
# Create the app directory | |
RUN mkdir /app | |
# Set the working directory inside the container | |
WORKDIR /app | |
# Set environment variables |
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
2024-11-01 13:43:43 database-1 | 2024-11-01 08:13:43.027+0000 INFO Anonymous Usage Data is being sent to Neo4j, see https://neo4j.com/docs/usage-data/ | |
2024-11-01 13:43:51 loader-1 | | |
2024-11-01 13:43:51 loader-1 | Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False. | |
2024-11-01 13:43:51 loader-1 | | |
2024-11-01 13:43:51 loader-1 | | |
2024-11-01 13:43:51 loader-1 | You can now view your Streamlit app in your browser. | |
2024-11-01 13:43:46 database-1 | 2024-11-01 08:13:46.304+0000 INFO Bolt enabled on 0.0.0.0:7687. | |
2024-11-01 13:43:47 database-1 | 2024-11-01 08:13:47.206+0000 INFO HTTP enabled on 0.0.0.0:7474. | |
2024-11-01 13:43:47 database-1 | 2024-11-01 08:13:47.209+0000 INFO Remote interface available at http://localhost:7474/ | |
2024-11-01 13:43:47 database-1 | 2024-11-01 08:13:47.215+0000 INFO id: 8940A76F218A70ADEA1575BE68E5D5D6D84D8A18625A537FF8AC58203EBE9FB4 |
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
import os, requests, time, openai, json, logging | |
from pprint import pprint | |
from typing import Union, List | |
from fastapi import FastAPI | |
from pydantic import BaseModel | |
from sendblue import Sendblue | |
client = openai.Client(api_key="sk-proj-XXXX") |
NewerOlder