Skip to content

Instantly share code, notes, and snippets.

View SuryaElite's full-sized avatar
👨‍💻

Surya SuryaElite

👨‍💻
View GitHub Profile
@SuryaElite
SuryaElite / magento2.0.dev
Last active April 15, 2016 05:58
Nginx Configuration for Magento 2.*
# Nginx Configuration for Magento Community Edition 2.0*
# run on Browser http://magento.dev/setup/
# In your php.ini set cgi.fix_pathinfo to 1
upstream fastcgi_backend {
# use tcp connection
# server 127.0.0.1:9000;
# or socket
server unix:/var/run/php5-fpm.sock;
}
@SuryaElite
SuryaElite / merge_all_csv_to_large_one
Created October 13, 2014 12:03
Merge all the CSV to a Large CSV file in a Folder.
# This program will merge all the csv files to a single large file. Headers should be same.
# sampleFile.csv = Provide a file that contains the header of csv.
{ head -n1 sampleFile.csv; for f in *.csv; do tail -n+2 "$f"; done; } > largeFile.csv