Skip to content

Instantly share code, notes, and snippets.

Working from home

Md. Morshadun Nur morshadunnur

Working from home
View GitHub Profile
morshadunnur / Install Maria DB
Created Aug 25, 2020
Install Maria DB on Ubuntu
View Install Maria DB
// Add Repository
sudo apt-get install software-properties-common
sudo apt-key adv --fetch-keys ''
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] bionic main'
// Install Mariadb Server
sudo apt update
sudo apt install mariadb-server
sudo mysql -u root
morshadunnur / SwapOn
Last active Jun 4, 2020
Swap disk ubuntu
View SwapOn
sudo fallocate -l 1G /swapfile
ls -lh /swapfile
sudo chmod 600 /swapfile
ls -lh /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
View Wildcard Letsencrypt install ubuntu server
apt-get update
apt-get install python-minimal
python --version
apt-get install git-core
git --version
cd /opt
git clone
cd certbot && ./certbot-auto
apt-get install letsencrypt
./certbot-auto certonly — manual — preferred-challenges=dns — email — server — agree-tos -d *
View npm without sudo
~$ npm config set prefix ~/.npm
~$ echo 'export PATH="$HOME/.npm/bin:$PATH"' >> ~/.bashrc
~$ source ~/.bashrc
View Install Docker Ubuntu
Step One:
sudo snap install docker
Latest Version
sudo snap install --edge docker
Step Two:
Docker command run without sudo
1.sudo addgroup --system docker
morshadunnur / Laravel on
Created Oct 19, 2017 — forked from peterbrinck/Laravel on
Laravel web templates for VestaCP
View Laravel on

I've made a new web template to make Laravel work easily on VestaCP, and so I wouldn't have to change my Laravel installation, if I ever wanted to deploy it elsewhere.

Each file should be put in /usr/local/vesta/data/templates/web/apache2

Then, when you edit your domain/site, you can change the web template to Laravel and just upload your whole project into public_html

View Laravel Homestead with vagrant (SSL Errpr 104 fixed)
All necessary elements:
Virtual Box
After setting up PHP & Git just setting up composer , Virtual box and vagrant. Downloads Link
morshadunnur / LEMP
Created Dec 18, 2016
Install LEMP-(Linux Nginx MySQL PHP ) stack on Ubuntu 16.04
#The LEMP software stack is a group of software that can be used in dynamic websites and web Application. This is an acronym that describes a Linux operating system with an Nginx Web Server. MySQL database stored the data and dynamic data handled by PHP.
#Imstall Nginx as web server
$ sudo apt-get update //update our local index packages
$ sudo apt-get install nginx
# If ufw firewell running we need to allow cooection to nginx.We can enable this by this
$ sudo ufw allow 'Nginx HTTP'
# MySQL Installation