Skip to content

Instantly share code, notes, and snippets.

View r3xakead0's full-sized avatar

Afu Tse r3xakead0

View GitHub Profile
@r3xakead0
r3xakead0 / Install-azure-functions-core-tools.sh
Last active February 19, 2024 01:31
Install Azure Functions Core Tools on Linux Ubuntu
# Download and install the Microsoft signing key
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
# Add to software repository
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list'
# Update repository information and install package
sudo apt-get update
sudo apt-get install azure-functions-core-tools-4 -y
@r3xakead0
r3xakead0 / Install-azure-cli.sh
Created February 11, 2024 04:47
Install Azure Client on Linux Ubuntu
# Get packages needed for the installation process
sudo apt-get update
sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y
# Download and install the Microsoft signing key
sudo mkdir -p /etc/apt/keyrings
curl -sLS https://packages.microsoft.com/keys/microsoft.asc |
gpg --dearmor |
sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null
sudo chmod go+r /etc/apt/keyrings/microsoft.gpg
@r3xakead0
r3xakead0 / Install-ntpdate.sh
Created February 6, 2024 19:27
Install ntpdate on Linux Ubuntu to keep the time and date updated
sudo apt install ntpdate -y
sudo ntpdate time.nist.gov
date
@r3xakead0
r3xakead0 / Install-python3-pip3.sh
Created February 6, 2024 15:26
Install python and pip 3 on Linux Ubuntu
sudo apt update
sudo apt install python3 -y
python3 -V
which python3
sudo apt install python3-pip -y
pip3 -V
which pip3
@r3xakead0
r3xakead0 / Install-nvm.sh
Created February 5, 2024 15:27
Install nvm on Linux Ubuntu
sudo apt update
sudo apt install -y curl
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
nvm install node
nvm install 18.19.0
nvm list
nvm use 18.19.0
@r3xakead0
r3xakead0 / Install-python2.sh
Last active February 6, 2024 15:32
Install python 2 on Linux Ubuntu
sudo apt update
sudo apt install -y python2
python2 --version
which python2
@r3xakead0
r3xakead0 / Install-java-18.sh
Last active February 5, 2024 15:16
Install Java 18 on Linux Ubuntu
sudo apt update
sudo apt install -y openjdk-18-jdk
sudo apt install -y openjdk-18-jre
export JAVA_HOME=/usr/lib/jvm/java-18-openjdk-amd64
echo $JAVA_HOME
@r3xakead0
r3xakead0 / Install-aws-sam.sh
Last active February 6, 2024 15:30 — forked from singledigit/Install-AWS-SAM.sh
Install AWS SAM on Linux using the new Linux installer
sudo apt update
sudo apt install curl unzip -y
curl -L https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip -o aws-sam-cli-linux-x86_64.zip
unzip aws-sam-cli-linux-x86_64.zip -d sam-installation
sudo ./sam-installation/install
sam --version
rm -rf sam-installation