Skip to content

Instantly share code, notes, and snippets.

View cgustav's full-sized avatar
🎯
Focusing

Eduardo Muñoz cgustav

🎯
Focusing
  • Chile
View GitHub Profile
/* Bootstrap 4.1.0 - https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css */
.accordion
.active
.alert
.alert-danger
.alert-dark
.alert-dismissible
.alert-heading
.alert-info
@cgustav
cgustav / iterm2.md
Created July 4, 2020 18:32 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@cgustav
cgustav / Clase1.txt
Created December 16, 2022 01:21
Apuntes_Linux
PREPARACION LINUX
MAQUINAS VR
-----------
user: vbot
password: vbotpassword
Apuntes SO Linux
HERRAMIENTAS DE CREACION DE ARCHIVOS
Sin editor de texto
* Sin contenido touch [nombre_archivo]
* Modo directo: cat > Tarea2
EJERCICIOS LINUX
EJERCICIOS COMANDOS BASICOS y GESTIÓN DE DIRECTORIOS DE LINUX
————————————————————————————————————————
a) Determine quien está conectado al sistema
who
@cgustav
cgustav / Kubenet.sh
Last active July 3, 2024 21:51
Run an ephemera pod in a specified Kubernetes namespace. It comes with tons of ready to use networking tools.
#!/bin/bash
function kubenet {
# Description: Run an ephemeral Swiss Army Knife pod in a specified namespace.
# You already have tons of networking test tools ready to be used inside a kubernetes infrastructure.
# Based on Sören Metje's article
# https://dev.to/soerenmetje/debug-kubernetes-applications-a-swiss-army-knife-container-56id
# Usage:
# kubenet {YOUR_NAMESPACE}
@cgustav
cgustav / kubenet-fish
Last active July 14, 2024 09:04
Run an ephemeral Pod with tons of networking tools in a specified kubernetes namespace (fish shell script)
function kubenet --description "Run an ephemeral Pod with tons of networking tools in a specified kubernetes namespace"
set -l namespace $argv[1]
if test -z "$namespace"
set namespace "default"
else
# Check if the namespace exists
if not kubectl get namespace $namespace &>/dev/null
echo "Namespace '$namespace' does not exist. Using 'default' namespace."
set namespace "default"
@cgustav
cgustav / user-data.sh
Last active July 14, 2024 09:07
Amazon-Linux 2 Node User-Data
#!/bin/bash
# Update the system
yum update -y
# install NVM
su - ec2-user -c 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash'
su - ec2-user -c '. ~/.nvm/nvm.sh'
# Install NodeJS 16.14.x
@cgustav
cgustav / user-data.sh
Last active July 14, 2024 09:04
Amazon-Linux 2 MariaDB UserData
#!/bin/bash
# Update the system packages
yum update -y
# Install MariaDB
yum install -y mariadb-server
# Start MySQL service
systemctl start mariadb