MICROPUEBits
Docs5 StarsLog In / Sign UpLog In

Ops & Scripting

Group·5 snippets·Updated Oct 22, 2026

Spraing@spraing0328

About

Official Bits examples for automation, deployment and day-two operations. Curated by the Bits team; not user submissions.

Tags

devopsexamplesofficial
Snippets5
Forks0
Favorites1
BashOct 22, 2026

Report the largest files

Official Bits example. A strict-mode Bash one-liner chain that reports the 20 largest files under a directory on Linux.

findlinuxdiskbash
001
PowerShellOct 22, 2026

Retry with exponential backoff

Official Bits example. A reusable PowerShell function that retries a script block and doubles the delay after each failure.

powershellwindowsautomationretry
001
YAMLOct 22, 2026

Docker Compose with healthcheck

Official Bits example. A two-service Compose file with a health-gated dependency, persistent volume and restart policy.

docker-composepostgresqldeploymentyaml
001
LuaOct 22, 2026

Parse --key=value arguments

Official Bits example. A dependency-free Lua argument parser for simple --key=value command-line interfaces.

scriptingluaargumentscli
001
PerlOct 22, 2026

Count log lines by level

Official Bits example. Stream a log file through a regex and print per-level counts without loading the file into memory.

text-processinglogscliperl
001