FIND YOUR NEXT FEW LINES

Results for “k”

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

1871 snippets foundClear filters
Docker / ComposeGetting Started

Inspect the configured container command

Docker / Compose: Inspect the configured container command using a locally available Ubuntu image.

Docker / Compose✓ Tested
Docker / ComposeContainer lifecycle

Inspect the exit code of a completed process

Docker / Compose: Container state retains the exit code until the container is removed.

Docker / Compose✓ Tested
Docker / ComposeImage management

Inspect the operating system recorded in an image

Docker / Compose: Image metadata records the OS expected by its executable layers.

Docker / Compose✓ Tested
GitStashing selected work

Inspect which files a stash changes

Git: stash show can report just filenames before applying anything.

Git✓ Tested
Docker / ComposeNetworks & volume metadata

Label a volume with its purpose

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

Docker / Compose✓ Tested
HTMLGetting Started

Let a user choose a yes or no value

HTML: Learn how to let a user choose a yes or no value in a complete browser example.

HTML✓ Tested
C#Asynchronous work & URI handling

Limit concurrent access with SemaphoreSlim

C#: Release the semaphore in finally so exceptions cannot leave it permanently acquired.

C#✓ 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 / ComposeImage management

List a specific image reference

Docker / Compose: The reference filter narrows repository and tag results.

Docker / Compose✓ Tested
GitInspecting the working tree

List newly added staged files only

Git: Filter the cached diff by added status while leaving modified files out.

Git✓ Tested
Docker / ComposeContainer lifecycle

List only containers belonging to a label

Docker / Compose: A label filter selects explicitly tagged resources.

Docker / Compose✓ Tested
GitInspecting the working tree

List only staged filenames

Git: The cached diff compares the index with HEAD rather than comparing working files with the index.

Git✓ Tested