Skip to content

Instantly share code, notes, and snippets.

View vicenteherrera's full-sized avatar
💭
hitting all the keys

Vicente Herrera vicenteherrera

💭
hitting all the keys
View GitHub Profile
@vicenteherrera
vicenteherrera / zoom_client_plugins.md
Last active August 27, 2026 10:53
Zoom client and plugin versions

Zoom clients and plugins versions

To download a specific Zoom client version, use an URL that includes the version and build number in the form of:

Find the specific build number here:

@vicenteherrera
vicenteherrera / config.sh
Last active March 20, 2025 15:05
Set up a cloud shell to interact with Kubernetes clusters
#!/bin/bash
# Use it with:
# eval "$(curl -fsSL https://gist.githubusercontent.com/vicenteherrera/8ee0e0fce64a5731a860b7f1c301c135/raw/5b0bdcab2d13af894fce60a3423cbca982b07f64/config.sh)"
# Set up aliases for kubectl
alias k='kubectl'
# Function to change the default namespace or list all namespaces
kns() {
@vicenteherrera
vicenteherrera / deploy_kubeflow_locallly.md
Last active February 22, 2024 15:05
Deploy Kubeflow locally
@vicenteherrera
vicenteherrera / check_pss_levels.sh
Created November 4, 2022 10:57
Script to get recommended Pod Security Standard level for all namespaces in a running cluster
#!/bin/bash
set -e
echo "" > test_psa.log
ALL_NAMESPACES=$(kubectl get namespaces -o name)
for NAMESPACE in $ALL_NAMESPACES
do
@vicenteherrera
vicenteherrera / Kubernetes_RBAC_apiGroups_resources_verbs.md
Last active September 8, 2026 12:44
How to obtain all Kubernetes apigroups, resources and corresponding verbs available to set up RBAC

Kubernetes RBAC apiGroups, resources and verbs

List all RBAC verbs for resources

Start your Kubernetes cluster.

On one terminal window:

# Open connection from another terminal window
@vicenteherrera
vicenteherrera / mount_on_wsl2.bat
Last active July 20, 2022 18:49
Mount hard drive ext4 partition on WSL2 Linux on Windows
@setlocal disabledelayedexpansion enableextensions
@echo off
:: Admin check
fltmc >nul 2>nul || set _=^"set _ELEV=1^& cd /d """%cd%"""^& "%~f0" %* ^"&&((if "%_ELEV%"=="" (echo Requesting administrator privileges...&((powershell -nop -c start cmd -args '/d/x/s/v:off/r',$env:_ -verb runas >nul 2>nul) || (mshta vbscript:execute^("createobject(""shell.application"").shellexecute(""cmd"",""/d/x/s/v:off/r ""&createobject(""WScript.Shell"").Environment(""PROCESS"")(""_""),,""runas"",1)(window.close)"^) >nul 2>nul))) else (echo This script requires administrator privileges.& pause))& exit /b)
echo Has admin permissions
:: echo Working dir: "%cd%"
:: echo Script dir: "%~dp0"
:: echo Script path: "%~f0"
@vicenteherrera
vicenteherrera / sshd_wsl2.md
Last active March 17, 2026 17:18
How to enable SSH server to WSL2 in Windows

SSH to WSL2 Linux inside Windows

Instructions to enable OpenSSH on Windows 10/11 that gives you access to WSL2 Linux

Based on this blog article with several changes and additions.

Last update: 2026-01-17

Enable SSH access from your own computer

Start figuring out some information. Open a Powershell terminal as an administrator:

@vicenteherrera
vicenteherrera / boniepub.sh
Created February 15, 2022 19:23
Script to generate epub publication with latest Bonilista articles
#!/bin/bash
echo "Parsing articles"
URL="https://us2.campaign-archive.com/home/?u=374c664073e1a1fa3deca53b4&id=e67967d43f"
POSTS=$(curl -Lk "$URL" | tr '"' '\n' | tr "'" '\n' | grep -e '^http://eepurl.com/' | sed 1d | awk '{ printf("%s ", $0) }')
echo "Building epub"
docker run --rm \
@vicenteherrera
vicenteherrera / Install Sysdig agent on local Minikube
Last active October 22, 2021 09:28
Instructions to instal Sysdig agent on local Minikube so it can be used to learn Kubernetes without a cloud account
# We will create a VM with Debian, and inside it execute Minikube with driver=none
# This way we avoid using Minikube's VM on Windows or Macos, that has a custom kernel
# You need to install VirtualBox and Vagrant on your host machine before you continue
# This works for latest versions on 2021-10-22. It doesn't work using Win+WSL2
# Use the following repository to download Vagrant boxes definition
git clone https://github.com/sysdiglabs/falco-workshop.git
# Use box4 that includes Docker, Kubectl, Minikube and many other tools
cd box4
vagrant box update