Skip to content

Instantly share code, notes, and snippets.

View labeveryday's full-sized avatar
🎯
Focusing

Du'An Lightfoot labeveryday

🎯
Focusing
View GitHub Profile
@labeveryday
labeveryday / agentcore_deployment_guide.md
Created November 8, 2025 22:44
Multiple options for deploying your Strands agents to production.

Deployment Guide

Multiple options for deploying your Strands agents to production.

Quick Decision Matrix

Option Best For Setup Time Cost Complexity
Local Development, testing 0 min Free
AgentCore Runtime AWS-hosted production 10 min Pay-per-use ⭐⭐

Memory and Sessions in AgentCore - Complete Guide

1. How Memories Are Added BY the Agent

The Memory Flow:

User Request → Agent Processing → Tool Calls → Agent Response → Memory Hook Saves

Step-by-Step Example:

@labeveryday
labeveryday / converse_with_api_key.py
Created October 2, 2025 11:29
Converse API with Amazon Bedrock API Key exmaple
"""
In this example you get a Bedrock API key from Amazon Bedrock and load it.
It will look like: AWS_BEARER_TOKEN_BEDROCK=bedrock-api-key-.........
"""
import os
import boto3
from dotenv import load_dotenv
from pprint import pprint
@labeveryday
labeveryday / claude-code-mcp.md
Last active August 25, 2025 18:00
Configuring Claude Code with MCP servers
@labeveryday
labeveryday / strands_agent_class_guide.md
Created July 16, 2025 16:43
A comprehensive guide for the Strands Agent class

Strands Agent Class Reference Guide

Overview

The Agent class is the core component of the Strands Agent SDK that orchestrates the workflow for AI agents. It handles receiving user input, processing it with a language model, deciding when to use tools, executing those tools, and producing responses.

Initialization Parameters

When creating a new Agent instance, you can configure it with these parameters:

@labeveryday
labeveryday / threading_example.py
Created July 16, 2025 16:00
This is an example that explains how threading works in Python.
import threading
import time
import uvicorn
import streamlit as st
from fastapi import FastAPI
# Create FastAPI app
app = FastAPI()
@app.get("/api/data")
@labeveryday
labeveryday / sync_aws_creds.py
Created June 20, 2025 10:42
Script that syncs your AWS key and secret with the .env file.
#!/usr/bin/env python3
"""
AWS Credentials Sync Tool
Extracts your current AWS credentials and creates/updates .env file
"""
import boto3
import os
import json
from datetime import datetime, timezone
@labeveryday
labeveryday / mcp_uv_setup.md
Last active May 29, 2025 03:07
Instructions to setup MCP with UV in Python

How to setup MCP with UV

This is a a pratical example of how to setup MCP with UV in Python

  1. Create dir and cd into it
  2. uv init hello-world --python 3.12.9
  3. source ./venv/bin/activate
  4. uv add "mcp[cli]"
  5. uv run mcp dev main.py
  6. Or npx @modelcontextprotocol/inspector uv --directory ./ "run" "main.py"
@labeveryday
labeveryday / jupyter_shortcuts.md
Last active February 1, 2025 12:22
Jupyter notebook shortcuts

Jupyter Notebook Shortcuts you need to know

These shortcuts will save you time and be more efficient.

NOTE: Before using this commands you must esc first.

  • Use a to inserts a cell above the current cell.
  • Use b to inserts a new cell below.
  • Use m to change the current cell to a markdown cell
  • Use y to change it back to a code cell
@labeveryday
labeveryday / jmeter.md
Created January 17, 2025 20:22
How to Install Apache JMeter on an EC2 Instance and Perform Load Testing

How to Install Apache JMeter on an EC2 Instance and Perform Load Testing

Apache JMeter is an open-source tool designed for performance testing and load testing. It is often used for simulating real-world traffic on web servers, applications, and APIs. In this blog, we'll guide you through installing JMeter on an AWS EC2 instance and using it to perform a simple load test.


Step 1: Launch an EC2 Instance

  1. Log in to your AWS Console.
  2. Navigate to the EC2 Dashboard and click Launch Instance.