Skip to content

Instantly share code, notes, and snippets.

View Johnnie88's full-sized avatar
🎯
Focusing

João Ricardo Rodrigues De La Cruz Baptista Johnnie88

🎯
Focusing
View GitHub Profile
@Johnnie88
Johnnie88 / Jetbrains_font_install.sh
Last active May 7, 2025 04:31
Get and Install JetBrainsMono
#!/bin/bash
repo="https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/"
file="JetBrainsMono.zip"
font_name="JetBrainsMono"
sudo rm -rf $font_name
sudo rm -rf $file
echo "Get JetBrains Mono Fonts"
@Johnnie88
Johnnie88 / get_oh_my_posh.sh
Last active May 5, 2025 23:42
Get and Install oh my posh terminal linux and add JetBrainsMono as default font
#!/bin/bash
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d ~/bin
PATH=$PATH:/home/$USER/bin
oh-my-posh font install JetBrainsMono
SHELL_TYPE=$(oh-my-posh get shell)
# Detect the shell type
SHELL_TYPE=$(basename "$SHELL")
@Johnnie88
Johnnie88 / get_node.sh
Last active May 5, 2025 22:15
Install node and npm
#!/bin/bash
echo "installs nvm (Node Version Manager)"
# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
# download and install Node.js (you may need to restart the terminal)
nvm install 20
# verifies the right Node.js version is in the environment
node -v
# should print `v20.17.0`
@Johnnie88
Johnnie88 / get_powershell.sh
Last active May 7, 2025 04:41
Install Powershell from scratch
#!bin/bash
sudo apt-get update
sudo apt-get install -y wget apt-transport-https software-properties-common
sudo curl -sL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sleep 4
sudo apt-add-repository "deb [arch=amd64] https://packages.microsoft.com/linux/repos/microsoft-powershell/ubuntu $(lsb_release -cs) main"
sudo apt-get update
sudo apt-get install powershell
# Start PowerShell
@Johnnie88
Johnnie88 / get.azure_repos.sh
Last active May 6, 2025 00:26
Get Azure Repos Locally
#!/bin/bash
declare -a azure_repos=("azure-powershell" "azure-cli")
for i in "${azure_repos[@]}"
do
echo "$i"
gh repo clone Azure/"${azure_repos[i]}"
done
@Johnnie88
Johnnie88 / az_install.sh
Last active May 7, 2025 06:16
Azure Cli Installation
#!/bin/bash
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
sudo apt-get update
az upgrade
echo "Install azure devops extension"
sleep 4
az extension add -n azure-devops
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
@Johnnie88
Johnnie88 / linux_mint_snapd_install.sh
Created May 5, 2025 18:55
Install snapd on the Linux Mint
#!/bin/bash
sudo mv /etc/apt/preferences.d/nosnap.pref ~/Documents/nosnap.backup
sudo apt update
echo " "
sleep 4
echo "Installing snapd .."
sudo apt-get install snapd
@Johnnie88
Johnnie88 / edge_install.sh
Created May 5, 2025 18:33
Install Edge stable version
#!/bin/bash
sudo apt update
sudo apt upgrade -y
sudo apt install -y software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main"
@Johnnie88
Johnnie88 / gh_install.sh
Last active May 5, 2025 18:35
Install gh tool stable version
#!/bin/bash
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
&& cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y