Topic

#devops

Loot, blog posts and adjacent themes connected to this topic. Follow the tag to keep it in your orbit.

#devops
3Shown loot
6Shown articles
8Linked neighbor tags
Topic paths

If you want to go deeper, the adjacent tags are the fastest way to compare and branch into related workflows.

Loot

More from this topic

Explore all loot

Keep documentation current by expanding code blocks in plain Markdown

No votes yet
Text: AI-generated
AI-generated · Automatically published by LinkLoot. A minimal Golang tool that injects command output directly into your docs, avoiding heavy notebook formats. AI-generated: This Loot was created and published automatically by LinkLoot and was not substantively reviewed by a human editor. What it does docexp is a lightweight utility designed to expand code blocks within standard Markdown files. Think of it as a stripped-down alternative to Jupyter Notebooks or Sphinx, but without the custom file formats or complex execution environments. It parses Markdown documents to identify code blocks, converting them into JSON objects that expose the code content, language, and document position. You then provide an "expander script"—a simple Python or shell script—that receives these blocks, executes them, and returns the output. docexp inserts this output back into the original Markdown file, marked with HTML comment tags for easy regeneration. Who it helps This tool is ideal for technical writers, developers, and DevOps engineers who maintain documentation where code examples must stay perfectly synced with actual system behavior. If you are tired of manually updating query results or API responses in your README files, docexp automates that process while keeping your source files pure Markdown. It suits users who prefer explicit, traceable execution over opaque kernel states. Getting started Installation requires building from source or downloading a release binary. The workflow involves three steps: first, use the dry-run command to inspect how your Markdown is parsed; second, write an expander script that defines how to execute the extracted code (e.g., running a SQL query via psql); third, run the docexp run command with your script and document. The tool never modifies existing text, only adding new expansion fragments. Limits and costs Currently in BETA (v0.1.), the tool shifts significant complexity to the user-defined expander scripts. You are responsible for managing execution environments, such as launching Docker containers for single commands or maintaining background kernels for stateful sessions. Security checks and sandboxing are not built-in; you must implement them yourself, such as using read-only database connections. While the software is open-source under GPL-3.0, hosting or infrastructure costs depend entirely on your chosen execution method. Source links Official repository Project documentation
LinkLoot access
Free
Provider costs
Unknown
Review open
0

Run a disposable macOS VM with Docker using dockur/macos

No votes yet
Text: AI-generated
AI-generated · Automatically published by LinkLoot. dockur/macos packages a KVM-accelerated macOS virtual machine behind Docker or Podman, with automatic recovery-image downloads, browser access, persistent storage, networking controls, and device passthrough. AI-generated: This Loot was created and published automatically by LinkLoot and was not substantively reviewed by a human editor. dockur/macos is an open-source container image and configuration layer for running macOS as a virtual machine. Docker manages the surrounding service, while QEMU and KVM provide the actual virtualization. The project is useful for developers who want a reproducible macOS test environment without manually assembling the VM stack. What it provides Automatic download of macOS installation files A browser-based viewer on port 8006 plus optional VNC access KVM acceleration for near-native virtualization performance Persistent virtual-disk storage through a mounted volume Configurable CPU, RAM, disk size, display resolution, networking, and audio First/last-mile features such as host-folder sharing, USB passthrough, disk passthrough, macvlan/macvtap networking, and memory ballooning Docker Compose, Docker CLI, Kubernetes, and GitHub Codespaces entry points The repository currently documents macOS 11 through 15 as selectable versions. It also mentions macOS 26 support, but warns that this version may run slowly. Requirements and tradeoffs The host needs KVM access, an AVX2-capable processor, at least 4 GB of available RAM, and at least 64 GB of free disk space. The default configuration assigns one virtual CPU core, 4 GB RAM, and a 64 GB disk. Docker Desktop support varies because not every host platform exposes KVM or nested virtualization to containers. The example configuration passes /dev/kvm and /dev/net/tun into the container and adds NETADMIN. Treat those as privileged capabilities: review the Compose file, pin an image version for stable environments, restrict exposed ports, protect the web interface, and avoid storing sensitive Apple account data in disposable or shared instances. The project has not been independently tested by LinkLoot. Important licensing boundary The repository code is MIT-licensed, but macOS remains governed by Apple's software license. The project itself warns users to run the container only on Apple-branded hardware. Check the license that applies to the exact macOS version and deployment before using this for CI, hosted services, or shared environments. Good evaluation use cases Browser or application compatibility checks on a temporary macOS environment Reproducible development and QA machines on suitable Apple hardware Testing install flows, automation, networking, or device passthrough Disposable labs where rebuilding is preferable to maintaining a long-lived desktop Start with the repository's Compose example, verify KVM availability first, and keep the VM isolated until networking, credentials, storage, and licensing have been reviewed.
LinkLoot access
Free
Provider costs
Unknown
Review open
0

Redis CLI Cheat Sheet: Commands with copy-paste examples

No votes yet
A practical redis-cli reference with the most important commands, short explanations, and ready-to-copy examples for daily debugging and operations. Redis CLI Cheat Sheet Direkt nutzbare redis-cli-Befehle fuer Alltag, Debugging und Betrieb. Jeder Block ist copy-paste-faehig. Passe Host, Port, Passwort, DB-Nummer, Key-Namen und Limits vor dem Einsatz an. Verbindung und Auth Lokal verbinden Oeffnet eine lokale Redis-CLI gegen 127.0.0.1:6379. Remote verbinden Verbindet dich mit Host und Port. Mit Passwort verbinden Nutzt ein Passwort direkt beim Start. In Shared Shell-History lieber Umgebungsvariablen nutzen. TLS-Verbindung Fuer Redis-Setups mit TLS. Verbindung testen Erwartete Antwort: PONG. Server-URL verwenden Praktisch fuer Cloud-Redis oder Secrets aus Umgebungsvariablen. Datenbanken und Serverstatus Datenbank waehlen Wechselt in DB 1. Standard ist DB 0. Serverinformationen anzeigen Zeigt Server-, Memory-, Client-, Persistence- und Replication-Infos. Nur Memory-Infos anzeigen Gut fuer Speicheranalyse. Key-Anzahl der aktuellen DB Schneller Ueberblick ueber die aktuelle Datenbank. Serverzeit anzeigen Nutzt Redis-Serverzeit, nicht lokale Shell-Zeit. Keys finden und pruefen Key existiert? Gibt 1 zurueck, wenn der Key existiert. Key-Typ anzeigen Hilft vor GET, HGETALL, LRANGE, SMEMBERS usw. TTL pruefen -1 bedeutet kein Ablauf, -2 bedeutet Key existiert nicht. Ablauf setzen Setzt TTL in Sekunden. Ablauf entfernen Macht einen Key wieder persistent. Key umbenennen Ueberschreibt Ziel-Key, falls er existiert. Key sicher scannen Besser als KEYS auf produktiven Systemen. Anzahl passender Keys zaehlen Scan + Shell-Zaehler fuer Patterns. Strings String setzen Setzt oder ueberschreibt einen Wert. String lesen Liest den Wert eines String-Keys. String mit TTL setzen Setzt Wert und Ablauf in Sekunden. Nur setzen, wenn Key nicht existiert Gut fuer einfache Locks. Zahl erhoehen Atomic increment. Zahl um Wert erhoehen Atomic increment by amount. Mehrere Strings setzen Batch fuer kleine Setup-Daten. Mehrere Strings lesen Hashes Feld setzen Ideal fuer Objekt-aehnliche Daten. Einzelnes Feld lesen Alle Felder lesen Feld existiert? Feld erhoehen Feld loeschen Listen Wert vorne einfuegen Wert hinten einfuegen Bereich lesen Liest die ersten 10 Eintraege. Laenge pruefen Wert rechts entnehmen Einfacher Queue-Pop. Blockierend entnehmen Wartet bis zu 30 Sekunden. Sets Member hinzufuegen Alle Member anzeigen Mitgliedschaft pruefen Member entfernen Schnittmenge bilden Sorted Sets Scored Member hinzufuegen Top-Werte absteigend lesen Rang eines Members anzeigen Score erhoehen Nach Score-Bereich lesen Streams Stream-Eintrag schreiben Letzte Eintraege lesen Consumer Group anlegen MKSTREAM erstellt den Stream, falls er fehlt. Aus Consumer Group lesen Nachricht bestaetigen Ersetze die ID durch die gelesene Stream-ID. Pending Messages anzeigen Pub/Sub Channel abonnieren Blockiert die Shell und zeigt neue Nachrichten live. Nachricht senden In zweiter Shell ausfuehren. Pattern abonnieren Loeschen und Aufraeumen Einzelnen Key loeschen Key asynchron loeschen Besser fuer grosse Werte, weil Redis im Hintergrund freigibt. Pattern per Scan loeschen Produktionsfreundlicher als KEYS pattern xargs DEL. Aktuelle DB leeren Gefaehrlich. Nur ausfuehren, wenn DB und Umgebung sicher sind. Alle DBs leeren Sehr gefaehrlich. Loescht alles auf der Instanz. Debugging und Betrieb Langsame Queries anzeigen Slowlog-Laenge anzeigen Slowlog zuruecksetzen Live-Kommandos beobachten Sehr laut und teuer auf busy Systemen. Nur kurz verwenden. Clients anzeigen Client-Verbindungen zaehlen Speicherverbrauch eines Keys Grosse Keys suchen Kann dauern, aber ist hilfreich fuer Speicherprobleme. Key-Samples analysieren Persistence und Replikation Hintergrund-Snapshot starten Letzten Save-Zeitpunkt anzeigen Replikationsstatus anzeigen Rolle der Instanz anzeigen Scripting und Automation Einzelnes Kommando ohne interaktive Shell Ausgabe roh ohne Quotes Gut fuer Shell-Skripte. CSV-Ausgabe Praktisch fuer Export/Analyse. Pipeline aus Datei ausfuehren Eine Redis-Anweisung pro Zeile. Beispiel fuer commands.redis Lua-Script ausfuehren Atomic Logik direkt in Redis. Sichere Produktionsregeln Nutze SCAN statt KEYS auf produktiven Instanzen. Nutze UNLINK statt DEL, wenn grosse Keys geloescht werden. Nutze MONITOR nur kurz, weil es auf busy Instanzen teuer ist. Fuehre FLUSHDB und FLUSHALL nur aus, wenn Host, Port, DB und Umgebung eindeutig stimmen. Verwende Passwoerter nicht dauerhaft in Shell-History; Secrets besser ueber sichere Umgebungsvariablen oder Secret Manager laden. Pruefe vor Massenloeschungen immer zuerst die Trefferliste mit redis-cli --scan --pattern 'pattern:' head. Mini-Checklisten Redis erreichbar? Speicherproblem schnell pruefen Sessions debuggen Queue debuggen
LinkLoot access
Free
Provider costs
Unknown
Review open
0
Blog

Related reads

Browse blog