Skip to content

Instantly share code, notes, and snippets.

View me-shaon's full-sized avatar
💭
Learning...

Ahmed shamim me-shaon

💭
Learning...
View GitHub Profile
@me-shaon
me-shaon / config-eslint-in-atom.md
Last active May 6, 2017 06:27
Configuring eslint in Atom Editor
  • Install linter plugin in Atom
  • Install linter-eslint plugin in Atom
  • Create a .eslintrc file in project root
  • If there is no package.json file already in the project root, create one using:
npm init
  • Run the following command to working with the 'google eslint rules'-
npm install --save-dev eslint eslint-config-google
@me-shaon
me-shaon / CreateTrigger.php
Created December 25, 2016 05:05
Sample Laravel migration to create MySQL Trigger
<?php
use Illuminate\Database\Migrations\Migration;
class CreateTrigger extends Migration
{
public function up()
{
DB::unprepared('
CREATE TRIGGER tr_after_main_insert AFTER INSERT ON `main` FOR EACH ROW
@me-shaon
me-shaon / virtual-host-ubuntu.txt
Last active October 30, 2016 10:02
Create Virtual Host in Apache Server (Ubuntu)
# Go to /etc/apache2/sites-available/
# Create a file with the name of the virtual host consisting the '.conf' extension. Like myproject.com.conf
# Put the following code on that file
<VirtualHost *:80>
ServerName myproject.com
ServerAlias www.myproject.com
DocumentRoot /var/www/html/file_path_of_the_project
<Directory /var/www/html/file_path_of_the_project>
Options -Indexes +FollowSymLinks +MultiViews