Skip to content

Instantly share code, notes, and snippets.

View tioxy's full-sized avatar
🏠
Remote

Gabriel Tiossi tioxy

🏠
Remote
View GitHub Profile
@tioxy
tioxy / velero-deploy-gcp.sh
Created March 31, 2019 23:46
Deploying Velero for a Kubernetes cluster hosted in GCP
# Deploying Velero for a Kubernetes cluster hosted in GCP
# For in depth details, check https://heptio.github.io/velero/master/gcp-config.html
export VELERO_FOLDER=/opt/velero
export BUCKET_NAME=k8s-cluster-velero # Use a different name
kubectl create secret generic cloud-credentials \
--namespace velero \
--from-file cloud=$VELERO_FOLDER/credentials-velero
@tioxy
tioxy / velero-deploy-aws.sh
Created March 31, 2019 23:42
Deploying Velero for a Kubernetes cluster hosted in AWS
# Deploying Velero for a Kubernetes cluster hosted in AWS
# For in depth details, check https://heptio.github.io/velero/master/aws-config.html
export VELERO_FOLDER=/opt/velero
export BUCKET_NAME=k8s-cluster-velero # Use a different name
export CLOUD_REGION=us-east-1
kubectl create secret generic cloud-credentials \
--namespace velero \
@tioxy
tioxy / velero-configure-gcp.sh
Last active December 19, 2019 16:28
Configuring Velero for a Kubernetes cluster hosted in GCP
# Configuring Velero for a Kubernetes cluster hosted in GCP
# For in depth details, check https://heptio.github.io/velero/master/gcp-config.html
export VELERO_FOLDER=/opt/velero
export BUCKET_NAME=k8s-cluster-velero # Use a different name
export PROJECT_ID=$(gcloud config get-value project)
# Create a GS bucket to store Object backups
gsutil mb gs://$BUCKET_NAME/
@tioxy
tioxy / velero-configure-aws.sh
Last active January 13, 2020 10:17
Configuring Velero for a Kubernetes cluster hosted in AWS
# Configuring Velero for a Kubernetes cluster hosted in AWS
# For in depth details, check https://heptio.github.io/velero/master/aws-config.html
export VELERO_FOLDER=/opt/velero
export BUCKET_NAME=k8s-cluster-velero # Use a different name
export CLOUD_REGION=us-east-1
# Create an S3 bucket to store Object backups
aws s3api create-bucket \
@tioxy
tioxy / helpers.sh
Created December 7, 2018 05:43
Helpers
# Parameters
${parameters["givenName"]}
# Jenkins Triggers - Properties file
# Image
${trigger["properties"]["key"]["nested-key"]}
# Helm Chart
gs://tioxyorg-helm-charts/ping-k8s-1.0.0.tgz
@tioxy
tioxy / gke-create-cluster.sh
Last active September 5, 2019 01:20
Create simple GKE cluster using gcloud CLI
#!/usr/bin/env bash
# Simple GKE Cluster creation
# Complete reference on https://cloud.google.com/sdk/gcloud/reference/container/clusters/create
# VARIABLES
CREATOR_NAME="tioxy"
CLUSTER_NAME="tioxy-cicd"
CLUSTER_ADDONS="NetworkPolicy,HorizontalPodAutoscaling,HttpLoadBalancing"
CLUSTER_VERSION="1.13.7-gke.24"
@tioxy
tioxy / .zshrc
Last active September 13, 2018 17:34
.zshrc
#
# ZSH
#
ZSH="/root/.oh-my-zsh"
ZSH_THEME="blinks"
CASE_SENSITIVE="true"
ENABLE_CORRECTION="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
@tioxy
tioxy / kops-create-cluster.sh
Last active November 13, 2018 01:04
Create simple Kubernetes cluster using kops CLI
#!/usr/bin/env sh
export CLOUD_PROVIDER="aws"
#
# VARIABLES - AWS
#
export AWS_AVAILABLE_ZONES_MASTER="us-east-1c"
export AWS_AVAILABLE_ZONES_WORKER="us-east-1a,us-east-1b,us-east-1c"
export AWS_EC2_FAMILY_MASTER="t2.medium"
@tioxy
tioxy / aws_shortcuts.js
Created August 23, 2018 14:29
Saving AWS shortcuts
// Got these commands from https://forums.aws.amazon.com/thread.jspa?threadID=100339
// Run them in your browser's console
// #1 Setup your shortcuts manually
// #2 Find which icons you have saved now
javascript:alert(JSON.parse(decodeURIComponent(document.cookie.replace(/(?:(?:^|.*;\s*)noflush_awscnm\s*\=\s*([^;]*).*$)|^.*$/, "$1"))).sc.join(","));void(0);
// #3 Run this to restore your shortcuts, replacing PREVIOUS_OUTPUT from the command below from the console output
@tioxy
tioxy / tioxy.cfg
Last active January 10, 2021 17:39
CS:GO Personal configuration
// CROSSHAIR
cl_crosshair_drawoutline "1"
cl_crosshair_dynamic_maxdist_splitratio "0"
cl_crosshair_dynamic_splitalpha_innermod "1"
cl_crosshair_dynamic_splitalpha_outermod "0.300000"
cl_crosshair_dynamic_splitdist "6"
cl_crosshair_friendly_warning "1"
cl_crosshair_outlinethickness "1"
cl_crosshair_sniper_show_normal_inaccuracy "0"
cl_crosshair_sniper_width "1"