Skip to content

Instantly share code, notes, and snippets.

View kucho's full-sized avatar

Victor Rodriguez kucho

View GitHub Profile
@kucho
kucho / install_bfg
Created March 30, 2022 04:37
Install bfg-repo-cleaner
#!/bin/bash
set -e
# Install Java and jq
sudo apt -y install default-jre-headless jq
# Get latest version
latestVersion=$(curl -s https://search.maven.org/solrsearch/select?q=a:bfg | jq -r '.response.docs[0].latestVersion')
# Fetch latest bfg.jar
@kucho
kucho / README.md
Last active April 5, 2022 19:36
gcloud + kubectl + fzf

Prerequisites

  1. gcloud cli
  2. fzf
  3. kubectl
  4. zsh

Instructions

  1. Load the functions by appending source functions.zsh at the end of your .zshrc file.
  2. Log in to gcloud: gcloud auth login
  3. Set the default region: gcloud config set compute/region us-east1