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 | |
LIQUIBASE_VERSION=3.6.3 | |
LIQUIBASE_PREFIX=/usr/local/lib | |
LIQUIBASE_BIN=/usr/local/bin | |
JDBC_POSTGRES_VERSION=42.2.6 | |
JDBC_MYSQL_VERSION=2.4.2 | |
############################################################################## | |
# Install Liquibase |
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
docker rm -f $(sudo docker ps -aq); | |
docker volume rm $(sudo docker volume ls -q); | |
rm -rf /etc/ceph \ | |
/etc/cni \ | |
/etc/kubernetes \ | |
/opt/cni \ | |
/opt/rke \ | |
/run/secrets/kubernetes.io \ | |
/run/calico \ |
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 | |
# Created by Abraão Silva | |
# Install docker in centos | |
# Remove any old versions | |
sudo yum remove docker docker-common docker-selinux docker-engine | |
# Install required packages | |
sudo yum install -y yum-utils device-mapper-persistent-data lvm2 |
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
apiVersion: v1 | |
kind: Template | |
labels: | |
demo: openshift-mapit-spring-template | |
metadata: | |
annotations: | |
description: openshift-mapit-spring Spring Boot Geo Spatial Application Template | |
iconClass: icon-java | |
tags: microservice,spring | |
name: openshift-mapit-spring-template |
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
## Comandos Kubernetes ## | |
kubectl delete daemonsets,replicasets,services,deployments,pods,rc --all | |
kubectl get pods -o jsonpath="{.items[*].metadata.name}" | \ | |
tr " " "\n" | \ | |
xargs -i -P 0 kubectl delete pods {} | |
kubectl delete pods --all |
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 | |
# created by abraaojs | |
# Add to instance metadata with `gcloud compute instances add-metadata \ | |
# instance-name --metadata-from-file startup-script=gcp-shutdown.sh` and reboot | |
# NOTE: requires `bc`, eg, sudo apt-get install bc | |
# Modified from https://stackoverflow.com/questions/30556920/how-can-i-automatically-kill-idle-gce-instances-based-on-cpu-usage | |
threshold=0.1 | |
count=0 | |
wait_minutes=60 |