Skip to content

Instantly share code, notes, and snippets.

View vitor-caetano's full-sized avatar

Vitor Caetano vitor-caetano

View GitHub Profile

Keybase proof

I hereby claim:

  • I am vitor-caetano on github.
  • I am vcaetano (https://keybase.io/vcaetano) on keybase.
  • I have a public key ASDXK7GUtUtloIoChvUJuaQzGpGVFEtX3yHKtoYJsDgkcQo

To claim this, I am signing this object:

kubectl --namespace jx-staging get pods --show-labels
kubectl --namespace jx-staging \
describe pod \
-l app=jx-go-demo-6
kubectl -n jx get act --show-labels
# DELETING
jx delete application go-demo-6 --batch-mode
##############
# Upgrade jx #
##############
jx version
####################
# Create a cluster #
####################
####################
# Create a cluster #
####################
# Install [AWS CLI](https://aws.amazon.com/cli/) and make sure you have AWS admin permissions
# Install [eksctl](https://github.com/weaveworks/eksctl)
source aws_oregon.sh
@vitor-caetano
vitor-caetano / jenkins-x.sh
Last active July 15, 2019 17:29
Jenkins X Presentation
#################
# Check Cluster #
#################
kubectl --namespace jx get pods
jx console
#####################
# Create QuickStart #
@vitor-caetano
vitor-caetano / dm-swarm-versioned.sh
Created April 2, 2019 15:06
Docker Machine with versioned boot2docker
#!/usr/bin/env bash
if [[ "$(uname -s )" == "Linux" ]]; then
export VIRTUALBOX_SHARE_FOLDER="$PWD:$PWD"
fi
for i in 1 2 3; do
docker-machine create \
-d virtualbox \
--virtualbox-boot2docker-url=https://github.com/boot2docker/boot2docker/releases/download/v17.04.0-ce/boot2docker.iso \
brew install gist
gist --login
gist -l
gist -l | grep -i $1
gist -l vfarcic
source ~/.bash_profile
@vitor-caetano
vitor-caetano / .bash_profile
Created December 18, 2018 16:18
iCasei bash_profile
eval "$(pyenv init -)"
export GOPATH=$HOME/gocode
export PATH=$PATH:$GOPATH/bin
export GROOVY_HOME=/usr/local/opt/groovy/libexec
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
@vitor-caetano
vitor-caetano / stag.sh
Last active December 18, 2018 14:12
Change to stag DNS
#!/usr/bin/env bash
networksetup -setdnsservers Ethernet 34.225.223.117
echo "Switched to STAG"