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
#!/bin/bash | |
# Image generation tool using Hugging Face FLUX.1-schnell model | |
# Usage: genimage [prompt] or just genimage for Black Forest default | |
function genimage() { | |
local prompt="${1:-}" | |
local api_url="https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-schnell" | |
local api_token="<your HuggingFace API Token here>" |
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
# Check if the current org has S3 public buckets. | |
for bucket in $(aws s3api list-buckets --query "Buckets[].Name" --output text); do | |
echo "Checking bucket: $bucket" | |
# Get the public access block | |
pab=$(aws s3api get-bucket-policy-status --bucket "$bucket" 2>/dev/null) | |
if echo "$pab" | grep -q '"IsPublic": true'; then | |
echo "🚨 $bucket is PUBLIC" |
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
[ | |
{ | |
"file": "pyproject.toml", | |
"fileType": "pyproject.toml", | |
"oneLiner": "uv run --python '>=3.8.10' --with 'maturin,uv' python -c 'import uv; print(uv.__version__)'", | |
"uvInstallFromSource": "uv run --with 'git+https://github.com/astral-sh/uv' --python '>=3.8.10' python", | |
"dependencies": [ | |
"maturin" | |
], | |
"packageName": "uv", |
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
[V1] | |
You are a powerful agentic AI coding assistant, powered by [Claude 3.7 Sonnet]. You operate exclusively in Cursor, the world's best IDE. | |
Your main goal is to follow the USER's instructions at each message. | |
# Additional context | |
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more. | |
Some information may be summarized or truncated. | |
This information may or may not be relevant to the coding task, it is up for you to decide. |
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
# Path and cmdline: | |
# /usr/bin/entry/images/py_interpreter.runfiles/rules_python~0.31.0~python~python_3_10_x86_64-unknown-linux-gnu/bin/python3 |