FIND YOUR NEXT FEW LINES

Results for “list files”

Small, practical examples. Search by task or narrow things down below.

467 snippets foundClear filters
PythonStrings & dates

Join strings with a separator

Combine a list of strings into one readable string with a separator between each item.

string✓ Tested
Docker / ComposeDockerfile patterns

Keep exec-form arguments literal

Docker / Compose: JSON exec form does not expand shell environment variables.

Docker / Compose✓ Tested
Docker / ComposeNetworks & volume metadata

Keep scratch data only for the container lifetime

Docker / Compose: Separate tmpfs mounts do not share data between container runs.

Docker / Compose✓ Tested
Docker / ComposeNetworks & volume metadata

Label a volume with its purpose

Docker / Compose: Volume labels support explicit ownership and selection.

Docker / Compose✓ Tested
SQLExpressions & aggregates

Label rows with CASE

Derive a readable label from a condition.

CASE✓ Tested
GitGetting Started

Label the current commit with a tag

Git: Label the current commit with a tag inside the disposable repository created by the input setup.

Git✓ Tested
Docker / ComposeLimits & process security

Limit the number of container processes

Docker / Compose: The pids-limit setting caps the container’s process count.

Docker / Compose✓ Tested
Docker / ComposeExecution & file transfer

Load environment variables from a file

Docker / Compose: An env file supplies one KEY=value assignment per line.

Docker / Compose✓ Tested
Docker / ComposeCompose service options

Load service variables from an env file

Docker / Compose: env_file supplies runtime environment values.

Docker / Compose✓ Tested
Bash ScriptsLoops & decisions

Loop over an array safely

Preserve spaces in array elements while iterating.

array✓ Tested
GitBranches & recovery

Merge a branch only by fast-forward

Refuse to create an unexpected merge commit.

merge✓ Tested
Docker / ComposeCompose service options

Mount a local input directory with long syntax

Docker / Compose: Long mount syntax makes the bind type and read-only intent explicit.

Docker / Compose✓ Tested