Skip to content

Instantly share code, notes, and snippets.

View juazasan's full-sized avatar

Juan Carlos Zamora juazasan

View GitHub Profile
@juazasan
juazasan / Vagrantfile
Last active August 27, 2019 06:53 — forked from lizrice/Vagrantfile
Vagrant file for setting up a single-node Kubernetes cluster that I can access from my desktop. Read more: https://medium.com/@lizrice/kubernetes-in-vagrant-with-kubeadm-21979ded6c63
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This script to install Kubernetes will get executed after we have provisioned the box
$script = <<-SCRIPT
# Install kubernetes
apt-get update && apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
@juazasan
juazasan / private-AKS.cli
Created October 6, 2022 12:54
Private AKS sample using azure cli
# connectivity subscription
az group create --name subscription-connectivity --location eastus
az network private-dns zone create -g subscription-connectivity \
-n privatelink.eastus.azmk8s.io
AKS_PRIVATE_DNS_ZONE_ID=$(az network private-dns zone show -g subscription-connectivity \
-n privatelink.eastus.azmk8s.io --query id -o tsv)
@juazasan
juazasan / sources.txt
Last active October 17, 2022 19:18
imageCrawler-e2e-test
https://github.com/app-sre/qontract-reconcile.git 30af65af14a2dce962df923446afff24dd8f123e
https://github.com/app-sre/container-images.git c260deaf135fc0efaab365ea234a5b86b3ead404
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/spaceship.omp.json" | Invoke-Expression
Import-Module -Name Terminal-Icons
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PSReadLineOption -PredictionSource HistoryAndPlugin
Set-PSReadLineOption -PredictionViewStyle ListView #InlineView
Set-PSReadLineOption -EditMode Windows