Skip to content

Python

14 pages
  • GPU Containers: Drivers and /dev/nvidia0

    In Posts 595 words 3 min

    AiDevopsDockerNvidiaTlsPython

    GPU containers let you run inference straight on a workstation, but the first thing that breaks is /dev/nvidia0 access. Driver mismatches between host and container trigger no suitable GPU device found. Below are concrete commands for runtime setup, …

    GPU containers let you run inference straight on a workstation, but the first thing that breaks is /dev/nvidia0 access. Driver mismatches between host and container trigger no suitable GPU device found. Below are concrete commands for runtime setup, …

  • RAG Chunking and Segment Overlap

    In Posts 670 words 4 min

    AiDevopsPythonTlsSecurity

    Lead. In RAG pipelines, retrieval quality directly depends on how text is split into segments. Chunks that are too large carry noise and extra tokens, while too-small chunks lose semantic coherence at boundaries. The main parameter balancing these …

    Lead. In RAG pipelines, retrieval quality directly depends on how text is split into segments. Chunks that are too large carry noise and extra tokens, while too-small chunks lose semantic coherence at boundaries. The main parameter balancing these …

  • Embeddings of a single notes directory

    In Posts 811 words 4 min

    AiDevopsPythonLocal-Llm

    Working with a growing collection of markdown notes locally, I needed fast semantic sorting without moving data to the cloud. The solution: local embedding generation via sentence-transformers and FAISS-based search, everything staying on disk under …

    Working with a growing collection of markdown notes locally, I needed fast semantic sorting without moving data to the cloud. The solution: local embedding generation via sentence-transformers and FAISS-based search, everything staying on disk under …

  • Secret in .env: file permissions

    In Posts 632 words 3 min

    SecurityDevopsPython

    Every .env file is a potential leak if file permissions aren’t explicitly set. In production, common scenarios: the file is readable by everyone, ends up in a dump archive, or gets committed to a repo under the guise of “convenience”. As a Lead …

    Every .env file is a potential leak if file permissions aren’t explicitly set. In production, common scenarios: the file is readable by everyone, ends up in a dump archive, or gets committed to a repo under the guise of “convenience”. As a Lead …

  • Ollama: single model and memory limits

    In Posts 791 words 4 min

    AiDevopsPythonTls

    Running a local model via Ollama without memory control leads to OOM-kill in production. This note covers how to assess RAM usage of a single model and set limits at the OS or container level. 1. Introduction to constraints Ollama loads the model …

    Running a local model via Ollama without memory control leads to OOM-kill in production. This note covers how to assess RAM usage of a single model and set limits at the OS or container level. 1. Introduction to constraints Ollama loads the model …

  • Changedetection: monitoring a single page

    In Posts 852 words 4 min

    SelfhostedMonitoringPythonTls

    ChangedetectionX (CDETCH) is the de facto standard for self-hosted web page monitoring without a dedicated backend. If you need to know when a specific page changes rather than collecting server metrics, this tool drops into a Docker Compose setup in …

    ChangedetectionX (CDETCH) is the de facto standard for self-hosted web page monitoring without a dedicated backend. If you need to know when a specific page changes rather than collecting server metrics, this tool drops into a Docker Compose setup in …

  • Local RAG Search Setup: Quick File Search on Host

    In Posts 479 words 3 min

    AiDevopsPythonTlsSecurity

    Lightweight local RAG on your own host lets you index configs, logs, and docs without sending data to external services. The llm CLI (Simon Willison) paired with an embed-model delivers a ready pipeline: one container for embeddings, local search, …

    Lightweight local RAG on your own host lets you index configs, logs, and docs without sending data to external services. The llm CLI (Simon Willison) paired with an embed-model delivers a ready pipeline: one container for embeddings, local search, …

  • Ollama inference API setup without running a server

    In Posts 435 words 3 min

    AiDevopsPythonTls

    Sometimes you need Ollama inference API access without running a full ollama serve daemon on your local machine. This is common in CI/CD pipelines, remote workstations, or when you want to conserve resources while keeping the HTTP endpoint available. …

    Sometimes you need Ollama inference API access without running a full ollama serve daemon on your local machine. This is common in CI/CD pipelines, remote workstations, or when you want to conserve resources while keeping the HTTP endpoint available. …

  • Homepage: one service card

    In Posts 686 words 4 min

    SelfhostedLinuxDevopsPython

    Homelab homepages often turn into crowded link lists, making quick service access a real problem. This note covers surfacing a single service card with docker-compose, health checks and a minimal config. Exact command set, common traps and a …

    Homelab homepages often turn into crowded link lists, making quick service access a real problem. This note covers surfacing a single service card with docker-compose, health checks and a minimal config. Exact command set, common traps and a …

  • fixing memory leaks in python services: diagnostics and dump collection

    In Posts 883 words 5 min

    PythonDevopsSecurityLinux

    Python services under load can silently consume memory until the cgroup limit triggers an OOM kill. Without systematic dump collection and introspection, root-cause analysis devolves into hypothesis spinning. Below is a practical set of commands and …

    Python services under load can silently consume memory until the cgroup limit triggers an OOM kill. Without systematic dump collection and introspection, root-cause analysis devolves into hypothesis spinning. Below is a practical set of commands and …

  • pipx: Isolated Python CLI Tools Without the Mess

    In Posts 669 words 4 min

    PythonDevopsCliLinuxSecurity

    pipx solves a simple but chronic problem: you need to run a Python utility once or occasionally, and pip install pollutes the global environment or leaves behind a virtual environment you forget to clean up. pipx creates an isolated venv for each …

    pipx solves a simple but chronic problem: you need to run a Python utility once or occasionally, and pip install pollutes the global environment or leaves behind a virtual environment you forget to clean up. pipx creates an isolated venv for each …

  • uv — Fast Python Package Manager

    In Posts 577 words 3 min

    PythonDevopsLinux

    What is uv uv is a Python package manager written in Rust. It solves one problem: the standard pip is slow at resolving dependencies, and poetry adds its own project model on top of PEP 621. uv works with pyproject.toml, is compatible with PEP 621 …

    What is uv uv is a Python package manager written in Rust. It solves one problem: the standard pip is slow at resolving dependencies, and poetry adds its own project model on top of PEP 621. uv works with pyproject.toml, is compatible with PEP 621 …

  • MkDocs: Project Documentation from Markdown

    In Posts 1199 words 6 min

    DocsPythonDevopsTools

    Documentation in a repository ages faster than anyone reads it: README links lead nowhere, sections are scattered across docs/, wiki/, and Confluence, and site search doesn’t work. MkDocs solves this predictably — it takes a folder of .md files and …

    Documentation in a repository ages faster than anyone reads it: README links lead nowhere, sections are scattered across docs/, wiki/, and Confluence, and site search doesn’t work. MkDocs solves this predictably — it takes a folder of .md files and …

  • ssh-connection-manager: a TUI for hosts in ~/.ssh/config

    In Posts 447 words 3 min

    SshDevopsPythonTuiOpenssh

    When ~/.ssh/config holds dozens of stands, bastions, and jump hosts, memorizing aliases stops being fun. ssh-connection-manager is a TUI on top of ordinary OpenSSH: a host list, a filter, a connect via the system ssh, and a way to append a new block …

    When ~/.ssh/config holds dozens of stands, bastions, and jump hosts, memorizing aliases stops being fun. ssh-connection-manager is a TUI on top of ordinary OpenSSH: a host list, a filter, a connect via the system ssh, and a way to append a new block …