Skip to content

Instantly share code, notes, and snippets.

View konstantinosbotonakis's full-sized avatar
🌍
The future belongs to those who believe in the beauty of their dreams!

Konstantinos konstantinosbotonakis

🌍
The future belongs to those who believe in the beauty of their dreams!
View GitHub Profile
# example tiny local agent by A.I. Christianson, founder of gobii.ai, builder of ra-aid.ai
#
# to run: uv run --with 'smolagents[mlx-lm]' --with ddgs smol.py 'how much free disk space do I have?'
from smolagents import CodeAgent, MLXModel, tool
from subprocess import run
import sys
@tool
def write_file(path: str, content: str) -> str:
@konstantinosbotonakis
konstantinosbotonakis / Cluely default.md
Last active July 8, 2025 22:15 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@konstantinosbotonakis
konstantinosbotonakis / csl_opencart_delete_product_duplicates.php
Created October 14, 2024 10:52
Delete Product Duplicates from OpenCart DB
<?php
// Load OpenCart framework
require_once('config.php');
require_once(DIR_SYSTEM . 'startup.php');
// Start OpenCart Registry
$registry = new Registry();
$loader = new Loader($registry);
$registry->set('load', $loader);
$config = new Config();
@konstantinosbotonakis
konstantinosbotonakis / timeout.php
Created April 16, 2024 12:10
Check Timeout on server via PHP
<?php
class TimeoutException extends Exception {}
try {
// Start time
$start = microtime(true);
// Print the full path of the currently executing script
echo "Script loaded from: " . __FILE__ . "<br>\n";
@konstantinosbotonakis
konstantinosbotonakis / HighTrafficServerSettings.md
Created December 7, 2023 19:11 — forked from fschiettecatte/HighTrafficServerSettings.md
High Traffic Server Settings on RHEL / AlmaLinux / Rocky / EuroLinux / CentOS 8

High Traffic Server Settings on RHEL / AlmaLinux / Rocky / EuroLinux / CentOS 8

I recently did some work to optimize the network configuration of an AlmaLinux 8 based web server that receives a lot of traffic.

Of course these settings also apply to RHEL / Rocky / EuroLinux / CentOS 8 (hereafter referred to as Linux 8.) I think these should also work on RHEL / AlmaLinux / Rocky / EuroLinux 9 as well but I have not yet tested them.

There is a lot of information on the web for this and it distills down to a minimum recommended configuration, and a recommended configuration.

The minimum recommended configuration should be sufficient for servers with less than 10Gb, and the recommended configuration should be sufficient for servers with 10Gb or more.