Cheatsheets

AWS CLI Cheatsheet

AWS CLI Cheatsheet

Cheatsheet for Git

Nathan Obert
Introduction This cheat sheet from Applo Clark’s Cheatsheet. Amazon’s Official CLI Documentation. Amazon Web Services (AWS)’s Command Line Interface (CLI) is a shell based means to work with AWS. The CLI provides the ability to list out resources at Amazon like which EC2 instances are running, poke around S3 buckets, inspect pretty much anything at Amazon. It also provides advanced features like copying information to and from S3. Below is a cheat sheet I will be updating over time with frequently used commands.
HELM Cheatsheet

HELM Cheatsheet

Cheatsheet for HELM

Nathan Obert
Introduction “Helm is the best way to find, share, and use software built for Kubernetes.” Kubernetes is a great container orchistration tool, however managing all the yaml files associated with it become a huge undertaking. Helm is a tool that allows you to create templates for Kubernetes yaml files. Then you only have to manage a set a value pairs that are passed to your templates. This allows you to easily share packages of templates, and other people can easily bring your containers online only having to modify the values to match their needs to customize or configure.
Git Cheatsheet

Git Cheatsheet

Cheatsheet for Git

Nathan Obert
Introduction This cheat sheet from Alex arak14’s Cheatsheet. Git is a version constrol system often used by developers, and devops to store insource code and configurations. It has even been adapted to store websites that are rended to the internet (like this one!) using Hugo. Git repositories are distributed in that each developers has a local copy of the repository and a series of pushs, pulls, merges, forks occur for the repositories to synchronize with one another.
Docker Cheatsheet

Docker Cheatsheet

Cheatsheet for Docker

Nathan Obert
Introduction This is a quick cheat sheet from Sematext’s Docker Cheatsheet Docker Cheatsheet Tutorial series Get started with Docker: https://docs.docker.com/engine/getstarted/ Installation Linux Install script provided by Docker: curl -sSL https://get.docker.com/ | sh Or see Installation instructions for your Linux distribution. Mac OS X Download and install Docker For Mac Create Docker VM with Docker Machine You can use Docker Machine to: Install and run Docker on Mac or Windows Provision and manage multiple remote Docker hosts Provision Swarm clusters A simple example to create a local Docker VM with VirtualBox:
Elastic Developer Cheatsheet

Elastic Developer Cheatsheet

Cheatsheet for Elastic Developer

Nathan Obert
Introduction This is a quick cheat sheet from Sematext’s Elastic Developer Cheatsheet Data Manipulation Put/Get/Delete index curl -XPUT localhost:9200/index-name -d '{"settings": { "number_of_shards": 1}}' curl -XGET localhost:9200/index-name?pretty curl -XDELETE localhost:9200/index-name Put/Get/Delete template curl -XPUT localhost:9200/_template/template-name -d '{ "template": "logs*", "mappings": { "foo-type": { "properties": { "foo-field": { "type": "text" } } } }, "settings": { "number_of_shards": 1 } }' curl -XGET localhost:9200/_template/template-name?pretty curl -XDELETE localhost:9200/_template/template-name Bulk API echo '{"index": { "_index": "logs01", "_type": "logs"}} {"title": "this is an error"} {"index": { "_index": "logs02", "_type": "logs"}} {"title": "this is a warning"} {"delete": { "_index": "logs03", "_type": "logs", "_id": "abc123"}} ' > /tmp/bulk curl localhost:9200/_bulk?
Elastic Devops Cheatsheet

Elastic Devops Cheatsheet

Cheatsheet for Elastic Devops

Nathan Obert
Introduction This is a quick cheat sheet from Sematext’s Elastic Devops Cheatsheet DevOps cheatsheet Allocation Allocation awareness Avoids putting two copies of the same shard on nodes with the same attribute (e.g. rack, availability zone). For example: node.attr.availability_zone: us-east1 # in elasticsearch.yml Awareness is enabled at the cluster level: curl -XPUT localhost:9200/_cluster/settings?pretty -d '{ "persistent" : { "cluster.routing.allocation.awareness.attributes" : "availability_zone" } }' Allocation filtering Shards of an index can prefer/avoid nodes with certain attributes.
SOLR Metrics Cheatsheet

SOLR Metrics Cheatsheet

Cheatsheet for SOLR Metrics

Nathan Obert
Introduction This is a quick cheat sheet from Sematext’s SOLR Metric’s Cheatsheet Solr Metrics API Retrieving all Metrics Get all metrics: localhost:8983/solr/admin/metrics Retrieving Metrics for Specific Group Metrics for a group (groups: solr.jvm, solr.node, solr.jetty, solr.core.<collection_name>): localhost:8983/solr/admin/metrics?group=solr.jvm Retrieving Metrics in JSON Default is XML. For JSON: localhost:8983/solr/admin/metrics?wt=json localhost:8983/solr/admin/metrics?wt=json&indent=true Jetty Metrics Number of Requests with Given Response Status Check the number of requests with the given HTTP status, useful when checking for number of errors and successful requests:
Kubernetes Cheatsheet

Kubernetes Cheatsheet

Cheatsheet for Kubernetes

Nathan Obert
Introduction This is a quick cheat sheet from Kubernetes Website’s Cheatsheet. This page contains a list of commonly used kubectl commands and flags. Kubectl autocomplete BASH source <(kubectl completion bash) # set up autocomplete in bash into the current shell, bash-completion package should be installed first. echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell. You can also use a shorthand alias for kubectl that also works with completion:
OpenSSL Cheatsheet

OpenSSL Cheatsheet

Cheatsheet for OpenSSL

Nathan Obert
Introduction This cheat sheet from Dave Wongillies’s Cheatsheet. OpenSSL is a very strong tool when working with certificates. OpenSSL can be used to for a wide variaty of taks involving SSL/TLS. For instance you can use it to convert certificates from format to another, use it as a debugging tool, use it to generate certificates, use it to download certificates from hosts, and even use it as a connectivity tool if telnet is not available.
Markdown Cheatsheet

Markdown Cheatsheet

Cheatsheet for writing Markdown

Nathan Obert
Introduction This is a quick cheat sheet from Adam Pritchard’s Cheatsheet that is useful when writing markup to make sure the syntax is correct. Markdown is a syntax used to format text. It essentially is a short form version of Hypertext Mark Up Language (HTML). You can achieve similar formatting with far less effort and by writing in Markdown instead of HTML. There is a Live Demo of Markdown available. This is especially useful if you would like to see what the rendered interactively.