Cheatsheets

Posts tagged with #cheatsheet
Total: 4

iperf Cheatsheet

Notes | 2024-07-30 (updated 2025-10-25) | 1 min read
#cheatsheet #iperf

Read more…

JQ Cheatsheet

Notes | 2024-05-16 (updated 2025-10-26) | 2 min read
#cheatsheet #jq

Read more…

Interactive Containers Cheatsheet

Notes | 2024-04-29 (updated 2025-10-25) | 1 min read
#cheatsheet #container #docker #podman

Most of these should work the same with any OCI compliant client. Tested with podman and docker, unless otherwise indicated.

# Run container interactively
podman run -it IMAGE:TAG SHELL

# With auto removing the container on exit
podman run -it --rm IMAGE:TAG SHELL

# With current working dir mounted to container
podman run -it -v ${PWD}:/tmp/host-dir/ IMAGE:TAG SHELL

# Detaching from the interactive session
# Keybinding: Ctrl+P, then Ctrl+Q

# Attaching to a container
podman attach "ID OR NAME"

1Password CLI Cheatsheet

Notes | 2023-02-01 (updated 2025-10-25) | 1 min read
#1password #cheatsheet

The 1Password CLI op works either in connection with a client app, like on the Mac, or standalone, useful on a server.

# Login
eval $(op signin)

# Get favorites
op item list --vault "Private" --favorite

# Get a specific item
op item get <ID>

# !! Important: Sign out at the end
op signout

Some helper functions

Helpers to more easily work with the op cli.

1login() {
    eval $(op signin)
}

alias 1signout="op signout"

1search() {
    term=$1
    if [ -n "$2" ]
    then
      vault="$2"
    else
      vault="Private"
    fi
    echo "Searching for '$term' in vaut '$vault'"
    op item list --vault "$vault" --long | grep "$term" --ignore-case
}

1get() {
    op item get $*
}