Skip to content

Instantly share code, notes, and snippets.

View IamSwap's full-sized avatar
🚀
Building cool things! 😎

Swapnil Bhavsar IamSwap

🚀
Building cool things! 😎
View GitHub Profile
@IamSwap
IamSwap / Basic Vue Router Example.md
Last active February 24, 2020 20:36
Basic Vue Router Example
@IamSwap
IamSwap / nginx.conf
Last active February 28, 2017 18:45
Nginx Configuration file for Grav CMS
server {
# Listen ports
listen 80;
listen [::]:80;
# Make site accessible from http://grav.dev/
server_name grav.dev www.grav.dev;
root /var/www/grav.dev;
index index.html index.htm index.php;
@IamSwap
IamSwap / mage.dev.conf
Created January 26, 2016 09:00
Nginx Virtual Host Configuration for Magento 2
upstream fastcgi_backend {
server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
## Ex. yourdomain.com
server_name mage.dev;
## Define project root
set $MAGE_ROOT /var/www/magento2;
@IamSwap
IamSwap / php.ini
Created January 26, 2016 09:20
PHP Configurations for Magento 2
## Set timezone.
## Find your time zone here http://php.net/manual/en/timezones.php
date.timezone = Asia/Kolkata
## Maximum Execution Time.
max_execution_time = 18000
## Maximum Input Time.
max_input_time = 6000
@IamSwap
IamSwap / php.ini
Created January 26, 2016 09:22
PHP Configurations for Magento 2
## Maximum Execution Time.
max_execution_time = 18000
## Maximum Input Time.
max_input_time = 6000
## Increase Memory Limit (Set more that 768M).
memory_limit = 1024M
## Increase Maximum size of post data.
@IamSwap
IamSwap / mage.dev.conf
Created January 26, 2016 09:24
Apache Virtual Host Configuration for Magento 2
<VirtualHost *:80>
DocumentRoot /var/www/magento2
ServerName mage.dev
ServerAlias mage.dev
<Directory /var/www/magento2>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
</VirtualHost>
@IamSwap
IamSwap / magento.conf
Created May 3, 2016 18:46
Nginx configuration for Magento 1.7, 1.8 & 1.91
server {
listen 80;
server_name example.come;
root /var/www/example.com;
location / {
index index.html index.php;
try_files $uri $uri/ @handler;
expires 30d;
@IamSwap
IamSwap / magento2.gitingore
Created May 17, 2016 06:04
Gitignore file for Magento 2
/.buildpath
/.cache
/.metadata
/.project
/.settings
atlassian*
/nbproject
/sitemap
/.idea
/.gitattributes
@IamSwap
IamSwap / .php_cs
Last active August 30, 2018 14:22
PHP CS fixer Configuration for Laravel
<?php
/**
* Config for PHP-CS-Fixer ver2
*/
$rules = [
'@PSR2' => true,
// addtional rules
@IamSwap
IamSwap / .php_cs
Created April 10, 2018 09:16
WordPress .php_cs for sublime text
<?php
/**
* Config for PHP-CS-Fixer ver2
*/
$rules = array(
'@PSR2' => false,
// addtional rules