Skip to content

Instantly share code, notes, and snippets.

@jikuja
Last active August 11, 2024 18:19
Show Gist options
  • Save jikuja/66f09739c5cd5a0e2eb39cbc2b8c28ff to your computer and use it in GitHub Desktop.
Save jikuja/66f09739c5cd5a0e2eb39cbc2b8c28ff to your computer and use it in GitHub Desktop.
Command-line magic

Create table placeholder for JIRA/Confluence

echo '|name|x|' ; echo '|----|----|' ; <data generating command here. e.g. pbpaste>  | awk '{print "|"$0"| |"}'

Convert escaped JSON string

Azure management API/batch/ARG

# copy full request payload into clipboard
pbpaste | jq '.requests[0].content.query' | jq -rR 'fromjson'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment