Skip to content

Instantly share code, notes, and snippets.

@toddsiegel
Last active August 18, 2021 20:30
Show Gist options
  • Save toddsiegel/b57b85e373fc32b688e65af720918531 to your computer and use it in GitHub Desktop.
Save toddsiegel/b57b85e373fc32b688e65af720918531 to your computer and use it in GitHub Desktop.
Cheatsheets

Get object count

$ aws s3 ls s3://<bucketname> --recursive | wc -l

Show all indices

GET /_cat/indices

Show all indices, with headings

GET /_cat/indices?v

Show index mappings

GET /<index_name>/_mapping

Spellcheck

:set spell spelllang=en_us – Turn on spell checking with en_us locale. Good idea to set in vimrc

:set nospell – Turn off spell checking. Why?

]s – Jump to the next misspelled word

[s – Jump to the previous misspelled word

z= – Show suggested replacements

zg – Good word: Add the word under the cursor to the dictionary

zw – Woops! Undo and remove the word from the dictionary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment