Hugo menu generator
How to use the script layouts/partials/menu.html Reference the partial: Include the partial in your theme’s header or layout file: layouts/partials/header.html Run the script: From your terminal, run the Python script.
How to use the script layouts/partials/menu.html Reference the partial: Include the partial in your theme’s header or layout file: layouts/partials/header.html Run the script: From your terminal, run the Python script.
The context field in an Ollama API response (specifically from the /api/chat endpoint) is an array of numbers that represents an encoding of the conversation history. This array is crucial…
To run a chat example with Ollama and Python, you must first have the Ollama application installed and running locally, and have a model downloaded. You will then use the…
Some examples of reading a file with Python:
Getting an error trying to install python package: There are several ways to determine if a Python venv (virtual environment) is active: Terminal Prompt Indication. When a virtual environment is…
From Hard-Coded Values to OpenAPI Generated Clients Building command-line interface (CLI) tools in Python is a fundamental skill for automation and system interaction. The journey of developing a robust CLI…
Download / Install / Extract ‘openai’ python functions
Looking for an automated way to backup Kubernete resources Generating .yaml export for each resource. This is still a work in progress…I need to:— evaluate and validate the exported yaml…
> python3 dedockify.py 179da7ea6c0c FROM earnhardt/vir_report:version1.0 ADD file:40290d9a94ae76c35ab1f57178130ce1c5b976e34a91e77472ecf7e945ab64f9 in / CMD ["bash"] LABEL maintainer=Frank Earnhardt <frank.earnhardt@outlook.com> RUN /bin/sh -c apt-get update \ && apt-get upgrade -y perl curl WORKDIR /opt…
Install docker python module: pip3 install docker python3 dockerDive.py', 'Id': 'sha256:179da7ea6c0c4771c9b0ebb60d15a8e82172a7b44bce66b082d7e3d54a2f4e12', 'Size': 0, 'Tags': }, {'Comment': '', 'Created': 1654890249, 'CreatedBy': '/bin/sh -c #(nop) COPY file:a3a0e3eee12601499dd7d3fd25284f9f8a6798e72efb2edd826131acca0bdd34 in /opt/src_code/prepareVIRs.pl ', 'Id': '',…