Creates well-formatted commits with conventional commit messages and emoji.
<emoji> <description>
Rules:
- Imperative mood ('add' not 'added')
- First line <72 chars
○ Todo → ◐ In Flight → ● Done |
description | tools | |
---|---|---|
Description of the custom chat mode. |
|
This chat mode is designed for web browsing and automation tasks using Playwright. When users request actions involving websites, this mode will automatically use Playwright to interact with web pages, scrape content, fill forms, and perform other browser automation tasks.
allowed-tools | argument-hint | description | |
---|---|---|---|
Bash(git clone:*), Glob(*), Grep(*), Read(*), TodoWrite(*) |
|
Clone a GitHub repository and perform security analysis to detect harmful code and personal data leaks |
You are performing a security analysis on a GitHub repository. Your task is to:
# uv add asyncio azure-identity dotenv-azd openai-agents | |
from openai import AsyncAzureOpenAI | |
from agents import Agent, Runner, set_default_openai_client, set_tracing_export_api_key | |
from azure.identity import DefaultAzureCredential, get_bearer_token_provider | |
from dotenv import load_dotenv | |
from dotenv_azd import load_azd_env | |
import asyncio | |
import os |
#!/usr/bin/env python | |
import rich_click as click | |
import json | |
from pathlib import Path | |
from dotenv import load_dotenv | |
from sys import stdout | |
from patchdiff import diff as patch_diff | |
load_dotenv() |
# print env vars | |
cat .azure/test/.env | xargs -i echo {} | |
# use for a command and merge into current env | |
env $(cat .azure/test/.env | xargs) env | |
# use as a docker run --env-file | |
docker run -it --env-file <(cat .azure/test/.env | xargs -i echo {}) ubuntu env |
#!/usr/local/bin/python3.12 | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
# LiteLLM doesn't support DefaultAzureCredential and get_bearer_token_provider | |
# There has been a discussion on the subject but no clear path forward: | |
# See https://github.com/BerriAI/litellm/issues/4417 | |
# This monkey patches LiteLLM to force it to use the DefaultAzureCredential and get_bearer_token_provider |
#!/bin/bash | |
dedup_env() { | |
local -A env_ary | |
while IFS== read -r key value; do | |
value=$(echo "$value" | sed 's/^ *"//' | sed 's/" *$//') | |
env_ary[$key]=$value | |
done <<EOM | |
$(cat $*) | |
EOM |
var deployments = [ | |
{ | |
name: 'text-embedding-ada-002' | |
format: 'OpenAI' | |
} | |
{ | |
name: 'llama' | |
format: 'serverless' | |
} | |
] |