Guance Learn

Observability questions

Focused answers for definitions, architecture choices, troubleshooting, pricing, and evaluation.

Illustration of Git branches and version history
Technical guide

Generate a Git patch for a specific commit

Export a commit with format-patch, apply it with git am, or create a raw diff; understand metadata, binary files, and conflict handling.

Illustration of Git branches and version history
Technical guide

List Git branches by most recent commit date

Sort branches by tip commit date, format local and remote-tracking references, and build a useful stale-branch review list.

Illustration of server operations and request logs
Explainer

Share configuration between Nginx locations

Use inheritance, include files, or a shared regex location while preserving correct root, alias, and header behavior.

Send Python logs to syslog illustration
Explainer

Send Python logs to syslog

Configure SysLogHandler for a local Unix socket or a remote receiver, including transport, facility, and macOS limitations.

Illustration of Git branches and version history
Technical guide

Combine two commits during an interactive Git rebase

Use squash or fixup to combine adjacent commits, adjust a pending rebase plan, and recover safely when the relevant commits have already been replayed.

Illustration of Git branches and version history
Technical guide

View an older version of a file in Git

Use git show to read or export a historical file, follow renames, compare versions, and restore the right snapshot without switching branches.

Illustration of server operations and request logs
Explainer

Forward query parameters through Nginx proxy_pass

Understand when proxy_pass preserves query strings, how rewrite appends arguments, and how to test encoded or repeated parameters.

Illustration of Git branches and version history
Technical guide

Delete a file from a Git repository

Remove a tracked file with git rm, keep a local copy with --cached, undo a staged deletion, and understand what remains in repository history.

Get a filename without its extension in Python illustration
Explainer

Get a filename without its extension in Python

Use Path.stem or splitext to remove the final suffix, and handle compound extensions without damaging hidden filenames.

Illustration of Git branches and version history
Technical guide

Get the current Git branch name

Read the current branch with git branch --show-current or symbolic-ref, and handle detached HEAD correctly in scripts and CI.

Illustration of server operations and request logs
Explainer

Troubleshoot Nginx FastCGI 504 timeouts with PHP-FPM

Identify the timeout that fired, inspect PHP-FPM slow requests, and align application deadlines without hiding pool exhaustion.

Pass parameters to pytest fixtures illustration
Explainer

Pass parameters to pytest fixtures

Parameterize fixtures directly, pass values indirectly from tests, and register command-line options for configurable test setup.