FIND YOUR NEXT FEW LINES

Results for “Set-Content”

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

604 snippets foundClear filters
Docker / ComposeGetting Started

Give a read-only container temporary storage

Docker / Compose: Give a read-only container temporary storage using a locally available Ubuntu image.

Docker / Compose✓ Tested
Docker / ComposeCompose service options

Give a read-only service writable scratch space

Docker / Compose: A tmpfs mount provides temporary storage independent of the root filesystem.

Docker / Compose✓ Tested
Docker / ComposeImage management

Give an existing image another tag

Docker / Compose: Tagging adds a reference without copying the image layers.

Docker / Compose✓ Tested
Arduino / CGetting Started

Give an LED pin a constant name

Arduino / C: Use const to name the built-in LED pin and reuse it in output instructions.

Arduino / C✓ Tested
CSSGrid placement

Give implicit grid rows a minimum height

CSS: Minmax allows an implicit row to grow when its content requires more room.

CSS✓ Tested
HTMLForms

Group mutually exclusive choices

Use the same name for HTML radio buttons and a fieldset legend.

HTML✓ Tested
Bash ScriptsFunctions & arguments

Handle an expected command failure

Branch on a command’s exit code without aborting the script.

exit status✓ Tested
C#JSON & binary formats

Hash a UTF-8 value with SHA-256

C#: Use SHA256.HashData for a one-shot content digest.

C#✓ Tested
Arduino / CGetting Started

Hello World: Blink

Arduino / C: Blink the built-in LED slowly and then quickly, repeating both rates in loop().

Arduino / C✓ Tested
CSSResponsive conditions & sizing

Hide interface controls in print layout

CSS: A print media query can retain article content while removing interactive controls.

CSS✓ Tested
GitTags & repository configuration

Identify a commit exactly at a release tag

Git: Describe with exact-match refuses to invent a label for a later commit.

Git✓ Tested
GitGetting Started

Identify the current practice branch

Git: Identify the current practice branch inside the disposable repository created by the input setup.

Git✓ Tested