Skip to content

Instantly share code, notes, and snippets.

View mehdi89's full-sized avatar
💭
looking for new opportunities

Mehedi Hasan mehdi89

💭
looking for new opportunities
  • TubeOnAI
  • Dhaka, Bangladesh
  • 19:03 (UTC -12:00)
View GitHub Profile
@mehdi89
mehdi89 / change_aws_instance_type.sh
Last active May 6, 2022 06:29
Change AWS instance type from terminal (stop -> change instance type -> start)
echo "instance id: $1"
echo "instance type: $2"
#2>&1 > /dev/null to suppress the cli output
echo "stopping instance"
aws ec2 stop-instances --instance-ids $1 2>&1 > /dev/null
echo "waiting for instance to stop"
aws ec2 wait instance-stopped --instance-ids $1
@mehdi89
mehdi89 / 01 Installing nginx, php, composer and laravel dependencies into ubuntu server
Last active March 31, 2021 16:06
Deploying simple Laravel Application in AWS with Nginx
sudo add-apt-repository ppa:nginx/stable -y
sudo add-apt-repository ppa:ondrej/php -y
sudo apt update
sudo apt-get install nginx -y
sudo apt-get install zip unzip php7.4 php7.4-mysql php7.4-fpm php7.4-xml php7.4-gd php7.4-opcache php7.4-mbstring php7.4-zip -y
#install composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer