Skip to content

Instantly share code, notes, and snippets.

View Archisman-Mridha's full-sized avatar
🏠
Working from home

Archisman Mridha Archisman-Mridha

🏠
Working from home
View GitHub Profile
@Archisman-Mridha
Archisman-Mridha / cluster-api-operator-aws.sh
Last active June 5, 2024 14:17
Demonstrating how to provision a self managed Kubernetes cluster in AWS using Cluster API Operator
#!/bin/bash
# Creating a temporary (local K3s) management cluster.
k3d cluster create bootstrapper --servers 1 --agents 2
# Cluster API Operator uses Kubernetes Secrets to store credentials for cloud providers.
# Lets create a Kubernetes Secret storing our AWS cloud credentials.
# Install clusterawsadm
brew install clusterawsadm
@Archisman-Mridha
Archisman-Mridha / iterm2.md
Created April 17, 2024 05:05
iTerm2 cheatsheet
  • Horizontal Split - command + shift + d

  • Vertical Split - command + d

  • Jump to the beginning of the line - ctrl + a

  • Jump to the end of the line - ctrl + e

  • Delete at the cursor position - ctrl + d

  • Delete from the cursor position to the end of the line - ctrl + k

  • Delete entire line - ctrl + u

  • Clear screen - ctrl + l

@Archisman-Mridha
Archisman-Mridha / tmux.cheatsheet.md
Last active May 10, 2024 05:05
Tmux cheatsheet

Use ctrl + b + : to get into command mode.

Session management

  • Start a new session - tmux | tmux new -s session-name
  • List existing sessions - tmux ls
  • Attach to a session - tmux a -t session-name
  • Detach from the session - ctrl + b + d
  • Destroy a session - tmux kill session -i session-name

Pane management

Anatomy of a motion - Command + Count + Motion

Navigation

  • Jump to beginning of line - 0 / _ (jumps to the first non-whitespace character)
  • Jump to end of line - $
  • Move forward by 1 word - w (jumps to beginning of the next word) / e (jumps to end of the next word)
  • Move backward by 1 word - b (jumps to beginning of the previous word) / ge (jumps to end of the previous word)
  • Jump to beginning of the file - gg
  • Jump to end of the file - G
  • Move forward to the next instance of the character (( in this case) - f( // NOTE : Repeat motion using , (for backwards movement) or ; (for forward movement)