Skip to content

Instantly share code, notes, and snippets.

View tuanhaviet22's full-sized avatar

Tuan H. tuanhaviet22

View GitHub Profile
@tuanhaviet22
tuanhaviet22 / install
Created May 11, 2021 04:18
Useful command optimize image
#Use two package jpegotpim & optipng to optimize image
aptitude install jpegoptim optipng
find . -type f -regex ".*\.jpe?g" -exec jpegoptim --strip-all {} \;
find . -type f -name "*.png" -exec optipng {} \;
<VirtualHost *:80>
DocumentRoot /media/data/websites/dev.domain.com/
ServerName dev.domain.com
ServerAlias *.dev.domain.com
VirtualDocumentRoot /media/data/websites/dev.domain.com/%1/
<Directory /media/data/websites/dev.domain.com>
AllowOverride All
</Directory>
@tuanhaviet22
tuanhaviet22 / exportCustomer.php
Created February 22, 2022 04:23
Export Customer in Magento 1
<?php
/**
* Sutunam
*
* HOW IT WORK
*
* This script use for export customer data with custom column
* and custom logic
*
* HOW TO RUN