MacBook Air (MBA) Mid 2012
This file contains 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
#NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerName "www.domain.com" | |
ServerAlias domain.com | |
ErrorLog logs/error_log | |
TransferLog logs/access_log | |
LogLevel warn | |
ServerAdmin admin@domain.com | |
DocumentRoot /sites/magento | |
DirectoryIndex index.php index.html |
This file contains 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
############################################ | |
## uncomment these lines for CGI mode | |
## make sure to specify the correct cgi php binary file name | |
## it might be /cgi-bin/php-cgi | |
# Action php5-cgi /cgi-bin/php5-cgi | |
# AddHandler php5-cgi .php | |
DirectoryIndex index.php |
This file contains 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
C{ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <pthread.h> | |
static pthread_mutex_t lrand_mutex = PTHREAD_MUTEX_INITIALIZER; | |
void generate_uuid(char* buf) { | |
pthread_mutex_lock(&lrand_mutex); | |
long a = lrand48(); | |
long b = lrand48(); |
This file contains 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 | |
require_once('app/Mage.php'); | |
umask(0); | |
Mage::app(); | |
$customer = Mage::getModel('customer/customer'); | |
$csv = array(); |
This file contains 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 | |
equire_once('app/Mage.php'); | |
umask(0); | |
Mage::app(); | |
$customer = Mage::getModel('customer/customer'); | |
$csv = array(); | |
This file contains 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
C{ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <pthread.h> | |
static pthread_mutex_t lrand_mutex = PTHREAD_MUTEX_INITIALIZER; | |
void generate_uuid(char* buf) { | |
pthread_mutex_lock(&lrand_mutex); | |
long a = lrand48(); | |
long b = lrand48(); |
This file contains 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 | |
// sending a custom password to customers | |
require_once('app/Mage.php'); | |
umask(0); | |
Mage::app(); | |
$store_id = Mage::app()->getStore()->getId(); |
This file contains 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
location ~ ^/_intellij_phpunit_launcher.php$ { | |
expires off; ## Do not cache dynamic content | |
set $args "$args&dir=$document_root&config=phpunit.xml.dist"; | |
fastcgi_pass unix://var/run/php5-fpm.sock; # Replace with your fpm pass | |
fastcgi_read_timeout 600; | |
include fastcgi_params; ## See /etc/nginx/fastcgi_params | |
} |
This file contains 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
SELECT `e`.entity_id, `at_category_id`.`category_id` | |
FROM `catalog_product_entity` AS `e` | |
LEFT JOIN `catalog_category_product` AS `at_category_id` | |
ON (at_category_id.`product_id`=e.entity_id) |