# Cheat Sheet

## Apps

### Azure CLI

```
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
```

### Docker

```
sudo apt-get update

sudo apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
    
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
   
sudo apt-get update

sudo apt-get install -y docker-ce docker-ce-cli containerd.io

sudo usermod -aG docker $USER
```

Logout and login again.

### Flamehost

```
sudo apt install flameshot
```

Add a shortcut for `flameshot gui`.

### Forticlietn SSL VPN

<https://hadler.me/linux/forticlient-sslvpn-deb-packages/>

### Microsoft Teams

```
sudo snap install teams-for-linux --beta
```

### vscode

```
sudo snap install --classic code
```

### zsh

Install zsh and oh-my-zsh.

```
sudo apt-get update
sudo apt install -y zsh
sudo apt-get install -y powerline fonts-powerline
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh --shell /bin/zsh $USER
```

Edit \~/.zshrc

{% code title="\~/.zshrc" %}

```
ZSH_THEME="agnoster"
plugins=(git docker kubectl autojump)
```

{% endcode %}

Install zsh-syntax-highlighting

```
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1
echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"
```

To upgrade oh-my-zsh

```
upgrade_oh_my_zsh
```

Install autojump.

```
apt install autojump
echo ". /usr/share/autojump/autojump.sh" >> ~/.zshrc
```

#### zsh pure

<https://github.com/sindresorhus/pure>

zsh disable shared history.

{% code title=".zshrc" %}

```
unsetopt share_history
```

{% endcode %}

## Keyboard

### en\_US with pt\_BR keys

```
setxkbmap -model abnt -layout us -variant intl
# OR
# setxkbmap -model abnt2 -layout br -variant abnt2
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.devops.buzz/public/ubuntu/cheat-sheet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
