This file contains 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
# Step 1: Set priveleges | |
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all | |
Starting... | |
Setting allow all users to YES. | |
Setting all users privileges to 1073742079. | |
Done. | |
# Step 2: Allow VNC clients |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
owner=${1:?} | |
username=${2:?} | |
password=${3:?} | |
function docker_api { | |
curl -s "https://hub.docker.com/v2/${@}" | |
} |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
REPO_URL=${REPO_URL:-https://charts.nobidev.com} | |
dependencies="" | |
function check_chart { | |
local name=$(basename ${1}) | |
local version=$(cat ${1}/Chart.yaml | yq -r .version) |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
printf "%-50s %5s %7s %5s %7s\n" Name CPU Memory CPU Memory | |
kubectl get pods -Ao json | jq -r '.items[] | tojson' | while read -r line; do | |
echo "${line}" | jq -r '.spec.containers[] | tojson' | while read -r item; do | |
name=$(echo "${line}" | jq -r .metadata.name) | |
resources=$(echo "${item}" | jq -r '.resources | tojson') | |
if [ $(echo "${resources}" | jq -r 'to_entries | length') -gt 0 ]; then |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
DOMAIN=${1} | |
URI=${2} | |
COUNT=${3:-100} | |
printf "Testing WS Status for %s (%d count) ...\n" ${DOMAIN} ${COUNT} | |
for _ in $(seq 1 ${COUNT}); do |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
DOMAIN=${1} | |
URI=${2} | |
printf "Testing HTTP Status for %s ...\n" ${DOMAIN} | |
for item in $(dig +short ${DOMAIN} | sort); do | |
if [[ ${item} =~ ^[0-9.]+$ ]]; then |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
DOMAIN=${1} | |
URI=${2} | |
printf "Testing WS Status for %s ...\n" ${DOMAIN} | |
for item in $(dig +short ${DOMAIN} | sort); do | |
if [[ ${item} =~ ^[0-9.]+$ ]]; then |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
DOMAIN=${1} | |
printf "Testing SSL for %s ...\n" ${DOMAIN} | |
for item in $(dig +short ${DOMAIN} | sort); do | |
if [[ ${item} =~ ^[0-9.]+$ ]]; then | |
printf "%15s ..... " ${item} |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
DNS_SERVER=${1} | |
DOMAIN=${2:-google.com} | |
COUNT=${3:-100} | |
printf "Testing DNS for %s on %s ...\n" ${DOMAIN} ${DNS_SERVER} | |
for _ in $(seq 1 ${COUNT}); do |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
kind create cluster --config - <<-EOF | |
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
nodes: | |
- role: control-plane | |
- role: control-plane | |
- role: control-plane |
NewerOlder