Results for “File operations & binary data”
Small, practical examples. Search by task or narrow things down below.
Serialize an object to JSON
Serialize a small anonymous C# object with System.Text.Json.
C#✓ Tested
Serialize query rows as JSON
Return a JSON array directly from a SELECT.
FOR JSON✓ Tested
Set a Compose service’s working directory
Docker / Compose: working_dir changes where the container command starts.
Docker / Compose✓ Tested
Set a container’s working directory
Docker / Compose: Set a container’s working directory using a locally available Ubuntu image.
Docker / Compose✓ Tested
Set a default non-root image user
Docker / Compose: Set a default non-root image user with a complete introductory Dockerfile.
Docker / Compose✓ Tested
Set a form field value
Populate a labeled input with jQuery val.
jQuery✓ Tested
Set a service’s working directory
Docker / Compose: Set a service’s working directory in a small Compose file.
Docker / Compose✓ Tested
Set an author identity only for this repository
Git: Local configuration avoids changing the identity used by unrelated repositories.
Git✓ Tested
Set an element attribute
Update an HTML link using jQuery attr.
jQuery✓ Tested
Set an example container hostname
Docker / Compose: Set an example container hostname using a locally available Ubuntu image.
Docker / Compose✓ Tested
Set and inspect a bit flag
Store several boolean states in one byte.
bitSet✓ Tested
Set and inspect a fractional CPU limit
Docker / Compose: The cpus option records a limit in units of one billion NanoCPUs.
Docker / Compose✓ Tested