This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Observer change Customer group | |
* | |
* @category Rifki | |
* @package Rifki_MembershipGroup | |
* @author Muhamad Rifki | |
* @copyright rifkilabs.net | |
*/ | |
class Rifki_MembershipGroup_Model_Observer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Stop mysql: | |
$ sudo service mysql stop | |
2. Step 2: Kill all running mysqld | |
$ sudo killall -9 mysqld | |
3. Step 3: Starting mysqld in Safe mode. | |
$ sudo mysqld_safe --skip-grant-tables --skip-networking & | |
4. Login as root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysqld] | |
max_allowed_packet=2G | |
innodb_file_per_table=OFF | |
wait_timeout=228800000 | |
connect_timeout=300 | |
# at least 250 | |
table_open_cache=1000 | |
open_files_limit=2048 | |
open-files-limit=2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for homebrew/php/php70-memcached on Mac OS X 10.11.6 | |
Build date: 2016-08-26 22:43:25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backend default { | |
.host = "local.app.com"; | |
.port = "8080"; | |
} | |
sub vcl_recv { | |
if (req.request == "GET" && req.url ~ "\.(gif|jpg|jpeg|png|ico)$") { | |
return(lookup); | |
} | |
else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
..... | |
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so | |
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so | |
ProxyRequests off | |
ProxyPass /feed/ http://abcdefg.cloudfront.net/feed/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo swapoff -a | |
$ sudo swapon -a | |
$ sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=2048 | |
$ sudo /sbin/mkswap /var/swap.1 | |
$ sudo /sbin/swapon /var/swap.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vim ~/.vimrc | |
set number | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set expandtab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ModPagespeedDomain http://local.dev.com | |
ModPagespeedDisallow */admin/* | |
ModPagespeedMapOriginDomain http://localhost http://local.dev.com | |
ModPagespeedStatistics on | |
ModPagespeedStatisticsLogging on | |
ModPagespeedEnableFilters prioritize_critical_css | |
ModPagespeedEnableFilters rewrite_images | |
ModPagespeedEnableFilters recompress_png | |
ModPagespeedEnableFilters convert_png_to_jpeg,convert_jpeg_to_webp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// format xml | |
/* | |
<products> | |
<product> | |
.... | |
.... | |
<product> | |
</products> | |
*/ |