Skip to content

Instantly share code, notes, and snippets.

View vivalareda's full-sized avatar
🙋‍♂️
I'm HIM. All I care about is going BLAZINGLY fast🚀

Reda vivalareda

🙋‍♂️
I'm HIM. All I care about is going BLAZINGLY fast🚀
View GitHub Profile
#!/bin/bash
sudo dnf update -y
wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.rpm
sudo dnf install jdk-21_linux-x64_bin.rpm -y
sudo mkdir -p /backend-server
sudo aws s3 cp s3://menugraphique-2025-h24-4/web-server/ /backend-server/ --recursive
cd /backend-server
sudo nohup java -jar WebServer/WebServer-0.0.1-SNAPSHOT.jar --port=80 --cryptoserver=licence.team4.gti778.ets.bimweb.net --cryptoserverport=9090 --dbuser=ind250 --dbpass=ind250psw --cryptolicence="ad8791153cc463069f66ed80984d415b:0a4618a6b6900794a2773100f84e9c1d90e0b34f5f10b150c6249ad912f87dc1540aab1312c323ab0c9c5e9ce44fcf6e" &
@vivalareda
vivalareda / nginx-script.txt
Last active February 8, 2025 20:32
nginx-script
#!/bin/bash
# Mise à jour des packages
echo "Mise à jour des packages..."
sudo dnf update -y
# Installation de NGINX
echo "Installation de NGINX..."
sudo amazon-linux-extras enable nginx1
sudo dnf install -y nginx
<html><script>$=~[];$={___:++$,$$$$:(![]+"")[$],__$:++$,$_$_:(![]+"")[$],_$_:++$,$_$$:({}+"")[$],$$_$:($[$]+"")[$],_$$:++$,$$$_:(!""+"")[$],$__:++$,$_$:++$,$$__:({}+"")[$],$$_:++$,$$$:++$,$___:++$,$__$:++$};$.$_=($.$_=$+"")[$.$_$]+($._$=$.$_[$.__$])+($.$$=($.$+"")[$.__$])+((!$)+"")[$._$$]+($.__=$.$_[$.$$_])+($.$=(!""+"")[$.__$])+($._=(!""+"")[$._$_])+$.$_[$.$_$]+$.__+$._$+$.$;$.$$=$.$+(!""+"")[$._$$]+$.__+$._+$.$+$.$$;$.$=($.___)[$.$_][$.$_];$.$($.$($.$$+"\""+"\\"+$.$__+$.___+"\\"+$.$__+$.___+"\\"+$.$__+$.___+"\\"+$.$__+$.___+$.$$$$+$._+"\\"+$.__$+$.$_$+$.$$_+$.$$__+$.__+"\\"+$.__$+$.$_$+$.__$+$._$+"\\"+$.__$+$.$_$+$.$$_+"\\"+$.$__+$.___+"\\"+$.__$+$.$_$+$.$$_+$.$$$_+"\\"+$.__$+$.$$$+$.___+$.__+"\\"+$.__$+$._$_+$._$_+$.$_$_+"\\"+$.__$+$.$_$+$.$$_+$.$$_$+$._$+"\\"+$.__$+$.$_$+$.$_$+"\\"+$.__$+$.__$+$.$$_+$._+"\\"+$.__$+$.$_$+$.$_$+$.$_$$+$.$$$_+"\\"+$.__$+$.$$_+$._$_+"(){\\"+$.__$+$._$_+"\\"+$.$__+$.___+"\\"+$.$__+$.___+"\\"+$.$__+$.___+"\\"+$.$__+$.___+"\\"+$.$__+$.___+"\\"+$.$__+$.___+"\\"+$.$__+$.___+"\\"+$
@vivalareda
vivalareda / wsl-installation.sh
Last active February 1, 2025 04:55
wsl auto install script
#!/bin/bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> /home/lilflare/.bashrc
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/lilflare/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
source ~/.bashrc
sudo apt-get update
sudo apt-get install build-essential -y
sudo apt-get install npm -y
sudo apt install python3-pip -y