Skip to content

Instantly share code, notes, and snippets.

<purpose>
You are an expert in analyzing security vulnerabilities in Maven POM files.
Your task is to analyze the Dependabot vulnerability report, categorize vulnerabilities by severity,
and filter out any irrelevant data based on the criteria specified in the <instructions> section.
</purpose>
<instructions>
<instruction>Read and analyze the provided Dependabot vulnerability report.</instruction>
<instruction>Group vulnerabilities by severity in the following order: Critical, High, Medium, Low.</instruction>
<instruction>For each vulnerability, extract and display:
@danielscholl
danielscholl / readme.md
Created January 7, 2025 00:01
Cross Tenant Open ID Connect

Cross-Tenant Access Configuration with Existing Azure AD Applications

This guide provides a step-by-step tutorial on configuring cross-tenant access between two existing Azure Active Directory (Azure AD) applications. Specifically, it details how a user from Tenant 1 can access an application hosted by Tenant 2 using OpenID Connect (OIDC) protocols.

Prerequisites

  • Administrative Access: Ensure you have administrative privileges in both Tenant 1 and Tenant 2.
  • Existing Azure AD Applications: Both tenants should have their applications registered in Azure AD.
  • Familiarity with Azure Portal: Basic understanding of navigating and configuring settings within the Azure portal.
@danielscholl
danielscholl / pom_prompt.xml
Last active December 18, 2024 17:08
POM Custom Prompt
<purpose>
You are an expert in analyzing and refactoring Maven POM files.
Your task is to analyze the POM file provided in the <project> section at the end of this file,
and provide both a standardized POM file and clear documentation for changes.
Follow the pattern section exactly to generate a properly structured POM file.
</purpose>
<instructions>
<instruction>Read and analyze the POM file content provided in the <project> section at the end of this file.</instruction>
@danielscholl
danielscholl / DockerLLM.md
Last active December 7, 2024 17:03
Run LiteLLM in Docker

Title: Run LiteLLM in Docker with Localhost Exposure and API Key

Description: A guide to containerize litellm and expose it on localhost:4000 while using an API_KEY environment variable.

Content:

# Dockerfile for LiteLLM
# ----------------------
# Base Python image
@danielscholl
danielscholl / retrieveModules.py
Created November 17, 2024 16:56
Retrieve specific bicep modules for AI use.
import requests
import re
def extract_bicep_lines(content):
# Extract lines that match the pattern '- **bicep'
bicep_lines = []
for line in content.splitlines():
if line.startswith('- **bicep'):
bicep_lines.append(line)
@danielscholl
danielscholl / modules.md
Created November 17, 2024 15:54
Bicep Modules

Bicep Azure Verified Modules

  • bicep/avm/res/aad/domain-service (Version: 0.3.0)

    • No default sample found
  • bicep/avm/res/alerts-management/action-rule (Version: 0.2.0)

    • No default sample found
  • bicep/avm/res/analysis-services/server (Version: 0.3.1)

@danielscholl
danielscholl / bicepVersions.py
Last active November 17, 2024 15:43
Retrieve list of Bicep Modules and versions.
import requests
class ACRVersionChecker:
def __init__(self, base_url: str = "https://mcr.microsoft.com"):
self.catalog_url = f"{base_url}/v2/_catalog"
self.tag_list_base_url = f"{base_url}/v2"
def fetch_catalog(self):
"""Fetch the list of repositories from MCR."""
print("Fetching repository catalog...")
@danielscholl
danielscholl / convention.md
Last active November 17, 2024 21:32
Engineering Conventions

Aider Architect Prompt Sample

/architect Create an azd bicep project following conventions.
Using AVM modules create: User Managed Identity, Key Vault, AKS in eastus2.

Aider Conf Settings

.aider.conf.yml

@danielscholl
danielscholl / prompt.md
Last active November 16, 2024 02:13
Sample Cluster Prompt

Azure Developer CLI (azd) Project Template

Create an Azure Developer CLI (azd) project that deploys a Kubernetes cluster, a Key Vault, and a User Assigned Identity using Azure Verified Modules (AVM).

Project Structure

<project-root>
├── infra
│   ├── main.bicep
@danielscholl
danielscholl / prompt.md
Last active September 17, 2024 20:22
Postman Conversion Prompt

Postman Collection to VSCode REST Client Conversion

You are an expert with the API tool called Postman and know how to convert collections into the VSCode Rest Client format. If you are asked for help or questions are asked of you reply with “I can help with converting Postman collections to the VSCode REST Client format. Please provide the URL of your collection.”

You will help convert Postman collections into the VSCode Rest Client format by looking at the URL of a postman collection and then transforming the request as follows.

1.	OAuth Token Retrieval: Every conversion will include a block for fetching an OAuth token using the refresh_token grant type. This will follow the structure below:

• The OAuth token request will retrieve and store the access token using variables like {{CLIENT_ID}}, {{CLIENT_SECRET}}, and {{REFRESH_TOKEN}}.