Skip to content

Instantly share code, notes, and snippets.

View tallpauley's full-sized avatar

Christopher Pauley tallpauley

View GitHub Profile
@magnetikonline
magnetikonline / README.md
Last active October 7, 2022 00:30
Bash getopts usage template.

Bash getopts usage template

#!/bin/bash -e

function usage {
	cat <
@tonyc
tonyc / gist:1384523
Last active February 6, 2023 04:05
Using strace and lsof

Using strace and lsof to debug blocked processes

You can use strace on a specific pid to figure out what a specific process is doing, e.g.:

strace -fp <pid>

You might see something like:

select(9, [3 5 8], [], [], {0, 999999}) = 0 (Timeout)