Skip to content

Instantly share code, notes, and snippets.

Working on a new Side Project with Laravel

Ariful Haque arifulhb

Working on a new Side Project with Laravel
Block or report user

Report or block arifulhb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
arifulhb /
Last active May 21, 2019
Nginx and PHP-7.2 insall in AWS EC2 Ubuntu 18.04 instance via User Data
sudo apt-get update
sudo apt-get install nginx -y
sudo apt-get install memcached -y
sudo apt install php7.2 php7.2-fpm php7.2-mysql php-common php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline php7.2-mbstring php7.2-xml php7.2-gd php7.2-curl php-redis php-apcu php-memcached php-memcache -y
sudo apt-get install mysql-client -y
arifulhb / blog.conf
Created Mar 30, 2019
Nginx Default blog config file
View blog.conf
server {
listen 80;
// @todo Change from localhost to blog.local
server_name localhost;
// @todo Change root from /var/www/html to /var/www/blog
root /var/www/html/;
index index.php index.html index.htm;
arifulhb / docker-composer.yml
Created Mar 30, 2019
Nginx image and volume for Docker
View docker-composer.yml
context: ./images/nginx
dockerfile: Dockerfile
container_name: lempdock_nginx_1
- "80:80"
- "443:443"
- ./www:/var/www
arifulhb / docker-composer.yml
Created Mar 30, 2019
Volumes in docker-composer.yml
View docker-composer.yml
- ./data/mysql:/var/lib/mysql
- ./data/redis:/data/redis
View .vimrc
" Allan MacGregor Vimrc configuration
set nocompatible
syntax on
set nowrap
set encoding=utf8
"""" START Vundle Configuration
View atr-pros-cons
[su_row][su_column size="1/2"]
[su_list icon="icon: share" icon_color="#548c4d"]
List item
[/su_column][su_column size="1/2"]
arifulhb / ecuador.json
Created May 6, 2018
Ecuador Province and Cantons list.
View ecuador.json
"Province SN": 1,
"Province": "Azuay",
"cantons": [
"Canton": "Camilo Ponce Enríquez",
"Capital": "Camilo Ponce Enríquez"
View Block Google Analytics Spam via .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# block google analytics spam
View Block Baidu Spider via robots.txt
# Block Baidu spider
User-agent: Baiduspider
User-agent: baiduspider
User-agent: Baiduspider-video
User-agent: Baiduspider-image
User-agent: Baiduspider+
Disallow: /
# BLOCK Yandex
User-agent: Yandex
arifulhb / .vimrc
Created Jul 24, 2016 — forked from JeffreyWay/.vimrc
Laracasts: Vim Mastery - Episode 3 .vimrc progress
View .vimrc
syntax enable
colorscheme desert
"-------------General Settings--------------"
set backspace=indent,eol,start "Make backspace behave like every other editor.
let mapleader = ',' "The default leader is \, but a comma is much better.
set number "Let's activate line numbers.
You can’t perform that action at this time.