Skip to content

Instantly share code, notes, and snippets.

View diegoluisi's full-sized avatar
🚀

Diego Luisi diegoluisi

🚀
View GitHub Profile
@diegoluisi
diegoluisi / config
Created August 2, 2023 08:55
ssh-config.md
#~/.ssh/config
################### EXAMPLE-BASTION ###################
Host example
User diego.luisi
IdentityFile ~/.ssh/id_rsa
HostName XX.XXX.XXX.X
ControlMaster auto
ControlPath ~/.ssh/mux-bastion-example
ControlPersist 15m

Setup SSH Config

Setup ssh config for jump host (bastion)

Edit your ssh config

vim ~/.ssh/config

Production Configuration

@diegoluisi
diegoluisi / AWS-PROFILE-SWITCH.md
Last active April 25, 2023 19:33
AWS Account Switch

AWS PROFILE SWITCH

This code will allow to switch between accounts

Add on your zshrc

vim ~/.zshrc
# AWS PROFILE SWITCH - This code will allow to switch between accounts

Mac DevOps Setup

Install Brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/diegoluisi/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
@diegoluisi
diegoluisi / linux_utils.md
Last active April 24, 2023 12:02
Linux Commands

Error:

blk_update_request: I/O error, dev fd0, sector 0

Solution:

dmesg rmmod floppy echo "blacklist floppy" > /etc/modprobe.d/blacklist-floppy.conf cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.backup dracut -f /boot/initramfs-$(uname -r).img

yum Error:rpmdb open failed