Skip to content

Instantly share code, notes, and snippets.

@ZiTAL
ZiTAL / tineye.php
Last active September 25, 2026 06:44
python: tineye api
<?php
$API_KEY = "YOUR_TINEYE_API_KEY";
$API_URL = "https://api.tineye.com/rest/search/";
$IMAGE_FOLDER = __DIR__ . "/images";
// Supported image extensions.
// strtolower() below makes the check case-insensitive.
$IMAGE_EXTENSIONS = [
"jpg",
@ZiTAL
ZiTAL / install.md
Last active August 17, 2026 07:00
debian 13 trixie: nvidia GT 710 driver install
@ZiTAL
ZiTAL / hermes_server.sh
Last active August 16, 2026 16:27
llamacpp: qwen 3.8 27B RTX 3060 12GB
#!/bin/bash
# SERVER FOR HERMES
./llama-server \
--host 0.0.0.0 \
--port 8080 \
-m models/unsloth/Qwen3.8-27B-UD-Q2_K_XL.gguf \
--mmproj models/unsloth/mmproj-BF16.gguf \
-ngl 56 \
zital@s400 ~ [SIGABRT]> karkarkar zital__
Listening to: #zital__
trying: /home/zital/.local/share/AhoTTS
Does not exist
trying: /home/zital/.local/share/flatpak/exports/share/AhoTTS
Does not exist
trying: /var/lib/flatpak/exports/share/AhoTTS
Does not exist
trying: /usr/local/share/AhoTTS
Does not exist
@ZiTAL
ZiTAL / Dockerfile
Last active March 23, 2026 10:42
python: reranking local model
# Use Python 3.11 base image
FROM python:3.11-slim
# Set a working directory inside the container
WORKDIR /app
# Copy your project files
COPY . /app
# Install system dependencies (optional, needed for PyTorch)
@ZiTAL
ZiTAL / index.py
Last active March 10, 2026 14:14
python: ollama rag example
# based on: https://adityop.medium.com/building-rag-locally-02714f9d2007
from unstructured.partition.html import partition_html
from urllib.request import urlopen
from bs4 import BeautifulSoup
import chromadb
import ollama
with urlopen(
"<https://www.theringer.com/nba/2024/2/21/24074472/jump-ball-rules-strategy-chicanery-history>"
@ZiTAL
ZiTAL / openclaw.json
Last active March 4, 2026 07:48
openclaw + ollama
{
"meta": {
"lastTouchedVersion": "2026.3.2",
"lastTouchedAt": "2026-03-03T12:17:24.119Z"
},
"wizard": {
"lastRunAt": "2026-02-24T10:36:36.428Z",
"lastRunVersion": "2026.2.23",
"lastRunCommand": "doctor",
"lastRunMode": "local"
@ZiTAL
ZiTAL / ahotsak.py
Created February 7, 2026 10:40
Ahotsak-etik bideo/audidxuek deskargateko script-e
import requests
import subprocess
# https://ahotsbiltegia-1.s3.us-east-005.dream.io/BRM020/brm020_001.mp4
dir = "/run/media/zital/6B5B-FF18/ahotsak/bermeo"
def getUrlStatus(url):
response = requests.get(url, timeout=3)
return int(response.status_code)
@ZiTAL
ZiTAL / clean_file_names.sh
Created January 14, 2026 09:38
bash: clean filenames
#!/bin/bash
find . -depth -type f -exec bash -c '
for f; do
dir=$(dirname "$f")
name=$(basename "$f")
ext="${name##*.}"
base="${name%.*}"
clean=$(echo "$base" | tr -cd "A-Za-z0-9\ \-_")