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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCdbG4o5IR8c+8n+z9y+TVRSEqylBsQumEsDZ7DUprCv8ZS5XcKbOvLMb7It8STg8zHzFQbbvkpQeSwstJ9q6fbbp2RdG/gbXxRscTYvnZ3f2shN9v0u1yry+wZIZTYeygZ1H0BgwHGO9/tEKloudzlxMUqaJXlpPIOCSDTDTC1qG967c3/uwlVSbord48PQYQ9WPfVq8ludX6+W7r64GMTRVVXtKeJNUBMPc29Tixlo+OjRWxb9F6SEEH0RIo44ZrYAlQJ6xTZk7PNyCyfgcJF0wxDk4UDw51YjmYSMzrjDr4lWs3Yk0oQxFOXpgdDxduMInZQcL674kxBSxkSe4oX [email protected] |
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
# FIXME: argocd-server default password is the podname, should we use proper secrets? | |
ARGOCD_PASSWORD=$(kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2) | |
# How many seconds to wait for cluster services to be up before giving up. 600s = 10mins. | |
ARGOCD_TIMEOUT=600 | |
# login to argocd server using port forward | |
argocd login \ | |
--insecure \ | |
--port-forward \ | |
--port-forward-namespace argocd \ |
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
#!/bin/bash | |
set -e | |
if [ ! -z "$DEBUG" ] ; then | |
set -x | |
fi | |
REGIONS="us-east-2 | |
us-east-1 |
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
#!/bin/bash | |
set -e | |
if [ ! -z "$DEBUG" ] ; then | |
set -x | |
fi | |
CLUSTER_NAME=$1 |
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
#!/bin/bash | |
# | |
# SQS Fifo | |
# | |
#aws sqs create-queue --queue-name q.fifo --attributes FifoQueue=true | |
queue=https://eu-west-1.queue.amazonaws.com/12345678910/q.fifo | |
pop() { | |
message=$(aws sqs receive-message --queue-url $queue --query 'Messages[0]') |
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
package main | |
import ( | |
"log" | |
"net" | |
"os" | |
"strconv" | |
"github.com/miekg/dns" | |
) |
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
#!/bin/bash | |
# | |
# Go through every repository and delete N older images where N > $LIMIT | |
# | |
# i.e. LIMIT=700 ./checkecr2.sh | |
# | |
set -e | |
# Limit |
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
#!/bin/bash | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
REPOS=$(aws ecr describe-repositories --query 'repositories[*].repositoryName' | jq -r '.[]') | |
for r in $REPOS ; do | |
printf $r |