Skip to content

Instantly share code, notes, and snippets.

View cagataycali's full-sized avatar
🧬

./c² cagataycali

🧬
View GitHub Profile
@cagataycali
cagataycali / agent.py
Last active July 30, 2025 17:27
Strands Agents with Qwen:30b - Telemetry enabled with Langfuse
import os
import base64
from strands import Agent
from strands.models.ollama import OllamaModel
from strands.telemetry import StrandsTelemetry
from strands_tools import shell, editor
os.environ["STRANDS_TOOL_CONSOLE_MODE"] = "enabled"
@cagataycali
cagataycali / use_github.py
Created July 22, 2025 17:38
Use GitHub GraphQL API for Strands Agents
"""GitHub GraphQL API integration tool for Strands Agents.
This module provides a comprehensive interface to GitHub's v4 GraphQL API,
allowing you to execute any GitHub GraphQL query or mutation directly from your Strands Agent.
The tool handles authentication, parameter validation, response formatting,
and provides user-friendly error messages with schema recommendations.
Key Features:
1. Universal GitHub GraphQL Access:
@cagataycali
cagataycali / README.md
Created July 18, 2025 15:05
S3 Vectors - Memory tool for Strands Agents

S3 Memory Tool - Semantic Memory with Amazon S3 Vectors

A comprehensive semantic memory tool that leverages Amazon S3 Vectors for intelligent content storage and retrieval. Store any text content and find it later using natural language queries with vector similarity search.

🚀 Key Features

  • 🧠 Semantic Search: Find content using natural language queries, not exact keywords
  • 📚 Full Content Preservation: Stores complete content without truncation or data loss
  • ⚡ Fast Vector Search: Powered by Amazon S3 Vectors native vector database capabilities
  • 🎛️ Flexible Display Control: Configurable content limits and preview modes for optimal UX
@cagataycali
cagataycali / Flipper_Zero_JS_Cheat_Sheet.md
Created July 19, 2024 22:02
A comprehensive cheat sheet for developing JavaScript code on the Flipper Zero, including examples and explanations for various functionalities like GPIO usage, BadUSB, BLE Beacon, UART, USB Disk Emulation, Sub-GHz communication, Textbox, Submenu, Notifications, Storage, and additional menus. This cheat sheet is designed to streamline the coding…

Flipper Zero JavaScript Cheat Sheet

General Structure

  • Path and File Information:
    print("Script path:", __filepath);
    print("Script directory:", __dirpath);

GPIO Usage

@cagataycali
cagataycali / readme.md
Last active March 12, 2024 20:19
Run multimodal llm (llava with llamafile) and open browser after the model start.

Install

[wget ... or download](https://gist.github.com/acaa476865821b02813b8a8e88e59c13.git)
chmod +x run-local-multimodal-llm-openai-compatible.sh
./run-local-multimodal-llm-openai-compatible.sh
@cagataycali
cagataycali / [email protected]
Created January 15, 2023 02:52
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@cagataycali
cagataycali / [email protected]
Created January 15, 2023 02:51
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@cagataycali
cagataycali / [email protected]
Created December 20, 2022 15:46
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@cagataycali
cagataycali / index.html
Last active August 1, 2022 20:30
HSTP.html
<html></html>
@cagataycali
cagataycali / README.md
Last active July 31, 2022 16:43
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=