https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#basic-ts-guide
https://stackoverflow.com/questions/23818209/user-data-scripts-fails-without-giving-reason
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#basic-ts-guide
https://stackoverflow.com/questions/23818209/user-data-scripts-fails-without-giving-reason
Config kubectl
Script to set current contexts:
clear
production="true"
[[ $0 != $BASH_SOURCE ]] && contextName=$BASH_SOURCE || contextName=$0
contextName=${contextName##*/}
export KUBECONFIG=~/.kube/config.${contextName}
kubectl config use-context ${contextName}
#starts 38;5; for the foreground and 48;5; for the background, then the color number
if [ $production == "true" ]; then
export PS1="\e[38;5;016;0;48;5;166m\u@\H:\w - \e[5m$contextName\e[25m $ "
else
export PS1="\e[38;5;012;48;5;015m\u@\H:\w - $contextName $ "
fi
kubectl config get-contexts
https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html
curl https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/allocation\?v\=\&s\=disk.total:desc,disk.avail
curl https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/master?help
curl https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/nodes?h=ip,port,heapPercent,name
curl https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/indices?bytes=b&s=store.size:desc&v=true
curl 'https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/indices?format=json&pretty'
curl 'https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/indices?pretty' -H "Accept: application/json"
curl 'https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/templates?v=true&s=order:desc,index_patterns'
curl https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/shards
curl https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/shards?h=index,shard,prirep,state,unassigned.reason
curl https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/health
curl 'https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/snapshots/repo1?v=true&s=id'
curl https://search-goweekend-1-ntahrt3q5ijfa.us-east-1.es.amazonaws.com/_cat/repositories
[admin@MikroTik] > /ip firewall f enable numbers=64
[admin@MikroTik] > /ip firewall f enable numbers=65/ip firewall filter add place-before=[find chain=input] chain=input action=accept protocol=icmp icmp-options=8:0-255
Example:
/ip firewall filter add place-before=1 chain=input action=accept protocol=icmp icmp-options=8:0-255