This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dig +noall +answer '<domain>' '<type>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dig +noall +answer gmail.com SOA | |
| dig +noall +answer gmail.com NS | |
| dig +noall +answer gmail.com SPF | |
| dig +noall +answer gmail.com TXT | |
| dig +noall +answer gmail.com MX | |
| dig +noall +answer gmail.com AAAA | |
| dig +noall +answer gmail.com A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Paste this into your shell and you can use the 'digall' command like: | |
| # digall example.com | |
| # digall something.example.com | |
| # You can also add it to your ~/.bashrc file to have it always available | |
| declare -rx color_restore='\033[0m' | |
| declare -rx color_red='\033[0;31m' | |
| declare -rx color_light_green='\033[1;32m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl port-forward es-cluster-0 9200:9200 --namespace=kube-logging | |
| # Now you can curl the elasticsearch API on localhost 9200 | |
| curl http://localhost:9200/_cluster/state?pretty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| KIBANA_POD_NAME="$(kubectl get po -lapp=kibana -o jsonpath={.items[0].metadata.name})" | |
| kubectl port-forward "${KIBANA_POD_NAME}" 5601:5601 --namespace=kube-logging | |
| echo "Open http://localhost:5601 in your browser" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT id, username, first_name, middle_name, last_name FROM users WHERE id = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ALTER TABLE users ADD COLUMN IF NOT EXISTS middle_name string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT id, username, first_name, last_name FROM users WHERE id = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :set nowrap " disables line wrapping | |
| :set nolbr " changes break to character instead of word. short for :set nolinebreak |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :set nolbr " changes break back to character instead of word. short for :set nolinebreak |