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 | |
# We are assuming default region and profile | |
bucket=$1 | |
set -e | |
echo "Removing all versions from $bucket" | |
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'` |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>CHANGEME</title> | |
<style> | |
body { | |
width: 35em; | |
margin: 0 auto; | |
font-family: Tahoma, Verdana, Arial, sans-serif; | |
} |
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
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash" | |
test -e "${HOME}/azure.completion.sh" && source "${HOME}/azure.completion.sh" | |
test -e "/usr/local/azure-cli/az.completion" && source '/usr/local/azure-cli/az.completion' |
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
if [[ -f $HOME/.bashrc ]]; then source $HOME/.bashrc; fi | |
if [[ -f $HOME/.profile ]]; then source $HOME/.profile; fi | |
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash" | |
test -e "${HOME}/lib/azure-cli/az.completion" && source "${HOME}/lib/azure-cli/az.completion" | |
export PATH=$PATH:$HOME/bin | |
# The next line updates PATH for the Google Cloud SDK. | |
if [ -f "${HOME}/google-cloud-sdk/path.bash.inc" ]; then . "${HOME}/google-cloud-sdk/path.bash.inc"; fi |
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
# .bashrc on Mac - requires several GNU utlities to be installed to work | |
# Silence Bash Deprecation warning | |
export BASH_SILENCE_DEPRECATION_WARNING=1 | |
# User specific aliases and functions | |
# set TERM to 256 color | |
export TERM=xterm-256color | |
# set up LS_COLORS | |
export LS_COLORS='rs=0:di=01;36:ln=01;93:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=30;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01 |
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
# additional setup for remote VM | |
alias screendr='/usr/bin/screen -DR' | |
alias tmuxdr='/usr/bin/tmux attach-session -d' | |
# Terminal colors | |
export COLOR_NC='\e[0m' # No Color | |
export COLOR_BLACK='\e[0;30m' | |
export COLOR_GRAY='\e[1;30m' | |
export COLOR_RED='\e[0;31m' | |
export COLOR_LIGHT_RED='\e[1;31m' |
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
#cloud-config | |
repo_update: true | |
repo_upgrade: all | |
packages: | |
- curl | |
- make | |
- screen | |
- tmux | |
- tree |
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 | |
# if parent path to minnaker is passed in then use that otherwise assume it's /home/ubuntu/minnaker | |
MINNAKER_HOME="${1:-/home/ubuntu/minnaker}" | |
TRAEFIK2_CONFIG_PATH="${MINNAKER_HOME}/templates/addons/traefik2/config/traefik2-config.yml" | |
PUBLIC_IP=$(cat ${MINNAKER_HOME}/spinsvc/secrets/public_ip) | |
DOMAINS="spinnaker api alertmanager prometheus grafana jenkins ldap consul vault" | |
echo "[INFO] SAN addresses to be added to Traefik 2 ..." | |
for i in $DOMAINS |
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
-----BEGIN PRIVATE KEY----- | |
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCk6t+nR87BJDsX | |
w2YFqNKwcdvQTWCkSW0SBpry7t5CJF2Knoy871xwHsdG91kwqnNfK3o1kSaUtdut | |
1f2APpYQzpiDozhNxVSaDnPKwogT4hnFvANwlzx6t2tnrpGyK/ouoKjyAE7+Irsn | |
AzTLpEFQWEHUYNQpO4mb1VgLxLomt7+cX2YF5gtR2cYawzr9JnAdS5c5NbBYAt9R | |
3Gn0YJxgkJItzsHgBObieV5FnOrrGyAbvdIYYRL1lYuIv7gJXRegy9lkGYa3eEIq | |
HaYToxJlOsARpxb4xCy6oZxQF3rFZI0RBiHctrivpTvujkJQtXEgf5UpE3E99lDJ | |
pyrR+dT7AgMBAAECggEALbkYzQ4xmobrA0mfbY5C67yFjxkE5EefP9Io/5WOdZQT | |
gy02I+PRIxzFbz2AsudvGUG6nkNiCPTqtSWRJQ81F+/PhR+pqpY9QIElRV/tzmVv | |
c80OvxaPJA7abmKN7nIW6PqOHJpNTFRgww42gwdFPHtbtQArkkr5egUKZiji23zA |
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
-----BEGIN CERTIFICATE----- | |
MIIDCzCCAfOgAwIBAgIUDmiEzM3DPuIpLAcsmX4c+FYnaKwwDQYJKoZIhvcNAQEL | |
BQAwFTETMBEGA1UEAwwKKi5taW5uYWtlcjAeFw0yMTA0MDgyMDA0MzJaFw0yMjA0 | |
MDgyMDA0MzJaMBUxEzARBgNVBAMMCioubWlubmFrZXIwggEiMA0GCSqGSIb3DQEB | |
AQUAA4IBDwAwggEKAoIBAQCk6t+nR87BJDsXw2YFqNKwcdvQTWCkSW0SBpry7t5C | |
JF2Knoy871xwHsdG91kwqnNfK3o1kSaUtdut1f2APpYQzpiDozhNxVSaDnPKwogT | |
4hnFvANwlzx6t2tnrpGyK/ouoKjyAE7+IrsnAzTLpEFQWEHUYNQpO4mb1VgLxLom | |
t7+cX2YF5gtR2cYawzr9JnAdS5c5NbBYAt9R3Gn0YJxgkJItzsHgBObieV5FnOrr | |
GyAbvdIYYRL1lYuIv7gJXRegy9lkGYa3eEIqHaYToxJlOsARpxb4xCy6oZxQF3rF | |
ZI0RBiHctrivpTvujkJQtXEgf5UpE3E99lDJpyrR+dT7AgMBAAGjUzBRMB0GA1Ud |
NewerOlder