Skip to content

Instantly share code, notes, and snippets.

View EmadAdly's full-sized avatar
🎯
Focusing

Emad Adly EmadAdly

🎯
Focusing
View GitHub Profile
@EmadAdly
EmadAdly / vsc.md
Created February 21, 2020 14:46
vsc settingd

.

@EmadAdly
EmadAdly / guide.md
Last active December 9, 2020 15:13
Deploying Laravel app in Amazon Ec2 or Lightsail

1- Creating the Lightsail or EC2 Instance

create a new Lightsail instance or EC2 instance From the AWS Management Console.

2- Connecting to the new instance

Once you create it, download the associated .pem file. you can be downloaded the default SSH key from your account page. we need to move it to the ~/.ssh directory. You can do so by executing

mv ~/Downloads/pemfile.pem ~/.ssh/pemfile.pem

@EmadAdly
EmadAdly / SSL-renewal.md
Last active October 10, 2022 08:13
Renew The Let’s Encrypt Certificate in bitnami

Renew The Let’s Encrypt Certificate

Let’s Encrypt certificates are only valid for 90 days. To renew the certificate before it expires, run the following commands from the server console as the bitnami user. Remember to replace the DOMAIN placeholder with your actual domain name, and the EMAIL-ADDRESS placeholder with your email address.

1- Login your server using SSH

ssh -i Key.pem bitnami@00.00.00.00

2- Stop Apache Server

sudo /opt/bitnami/ctlscript.sh stop

@EmadAdly
EmadAdly / aws-point-domain
Last active November 17, 2022 06:49
Setup bitnami lamp stack point domain and vhost
## Point Domain to Amazon Web Services (AWS) EC2 Instance
1. Open the Amazon Route 53 console at [https://console.aws.amazon.com/route53/](https://console.aws.amazon.com/route53/).
2. If you are new to Amazon Route 53, you see a welcome page; choose **Get Started Now** for **DNS Management**. Otherwise, choose **Hosted Zones** in the navigation pane.
3. Choose **Create Hosted Zone**.
4. For **Domain Name**, type your domain name.
5. Choose **Create**.
6. Click the Hosted Zone, edit record set.
@EmadAdly
EmadAdly / Notification-testing.sh
Last active July 1, 2018 01:34
Chrome Deprecating Powerful Features on Insecure Origins --unsafely-treat-insecure-origin-as-secure
#For Ubuntu 16.04 LTS
#First you need to know where google-chrome is installed. To find out run:
which google-chrome
#For my case, google-chrome is installed inside both /usr/bin/google-chrome and /usr/bin/google-chrome-stable.
#I decided to use the stable version.
#Now, list the domains that you'd like chrome to treat as secure. Make sure that you have access to the folder following --user-data-dir. I used $HOME for convenience.
#Run the following command:
@EmadAdly
EmadAdly / Add-ESLint-to-Laravel-Mix.md
Last active January 20, 2024 16:55
Adding eslint to your Laravel application

1. Add eslint and eslint-loader and eslint-plugin-vue to your projects package.json file

npm i eslint eslint-loader eslint-plugin-vue --save-dev

2. Create a base configuration by --init

@EmadAdly
EmadAdly / currencies.json
Created August 7, 2017 01:19
Currency JSON Object
[
{
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@EmadAdly
EmadAdly / install-android-sdk-in-ubuntu.md
Last active April 5, 2024 02:31
install JDK and Android SDK on Linux Ubuntu

install openjdk

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
@EmadAdly
EmadAdly / sublime.md
Last active March 1, 2017 15:34
Make Sublime Awesome

Sublime Text is one of the most popular code editors available right now. It is adored by many programmers for it’s speed, simplicity, and rich plugin ecosystem.

install sublime 3

cd ~
sudo add-apt-repository ppa:webupd8team/sublime-text-3
@EmadAdly
EmadAdly / timezone.json
Created February 25, 2017 19:50
Common timezone list in json
[
{
"zone": "Pacific/Midway",
"gmt": "(GMT-11:00)",
"name": "Midway Island"
},
{
"zone": "US/Samoa",
"gmt": "(GMT-11:00)",
"name": "Samoa"