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 | |
if(php_sapi_name() != 'cli' && !empty($_SERVER['REMOTE_ADDR'])) { | |
exit('Only shell execution execution is allowed!'); | |
} | |
$csv = $argv[1]; /* Full absolute path to CSV file */ | |
$_index = $argv[2]; /* Index */ | |
$_type = $argv[3]; /* Index type */ | |
$_id = $argv[4]; /* CSV column to use for ID */ |
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 | |
/* Magento CSV products generator */ | |
if(php_sapi_name() != 'cli' && !empty($_SERVER['REMOTE_ADDR'])) { | |
exit('Only shell execution execution is allowed!'); | |
} | |
require_once 'faker/autoload.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
2014-03-11T15:06:50+00:00 DEBUG (7): Array | |
( | |
[REDIRECT_HTTP_AUTHORIZATION] => | |
[REDIRECT_TMP] => C:/Program Files (x86)/Ampps/tmp | |
[REDIRECT_STATUS] => 200 | |
[HTTP_AUTHORIZATION] => | |
[TMP] => C:/Program Files (x86)/Ampps/tmp | |
[HTTP_HOST] => magento18.ce | |
[HTTP_CONNECTION] => close | |
[PATH] => C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Lenovo\Fingerprint Manager Pro\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Ampps\php;C:\Program Files (x86)\Ampps\mysql\bin;C:\Program Files (x86)\Ampps\a |
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
[root@box1 build]# sudo ./install safe | |
Configuring for: | |
PHP Api Version: 20090626 | |
Zend Module Api No: 20090626 | |
Zend Extension Api No: 220090626 | |
perl: warning: Setting locale failed. | |
perl: warning: Please check that your locale settings: | |
LANGUAGE = (unset), | |
LC_ALL = (unset), | |
LC_CTYPE = "UTF-8", |
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
# General web stuff | |
/.htaccess | |
/robots.txt | |
/sitemap.xml | |
# Dynamic Magento data that doesn't need to be in the repo | |
/var/* | |
/media/* | |
/downloader/pearlib/cache/* | |
/downloader/pearlib/download/* | |
/app/etc/use_cache.ser |
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 if (($referrer = Mage::app()->getRequest()->getServer('HTTP_REFERER'))): ?> | |
<?php $storeUrlParts = parse_url(Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)); ?> | |
<?php $referrerUrlParts = parse_url($referrer); ?> | |
<?php if ($storeUrlParts['host'] === $referrerUrlParts['host']): ?> | |
<button type="button" title="<?php echo $this->__('Go back to %s', $referrer) ?>" class="button" onclick="this.innerHTML = '<?php echo $this->__('Redirecting...') ?>'; window.location = '<?php echo $referrer ?>';"><?php echo $this->__('Back') ?></button> | |
<?php endif; ?> | |
<?php endif; ?> |
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
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
/* Loto _x out of _y */ | |
int _x = 7, _y = 39; | |
NSMutableArray *numbers = [[NSMutableArray alloc] init]; |
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
.htaccess | |
# Dynamic data that doesn't need to be in the repo | |
/var/* | |
/media/* | |
/downloader/pearlib/cache/* | |
/downloader/pearlib/download/* | |
/app/etc/use_cache.ser | |
/app/etc/local.xml | |
/errors/local.xml |
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 | |
$XMLRequestDOMDoc = new DOMDocument(); | |
$XMLRequestDOMDoc->loadXML($XMLRequest); | |
$canonical = $XMLRequestDOMDoc->C14N(); | |
$DigestValue = base64_encode(hash('sha1', $canonical, true)); | |
$rootElem = $XMLRequestDOMDoc->documentElement; | |
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 | |
$UriId = uniqid(); | |
$ns = 'tns'; | |
$writer = new XMLWriter(); | |
$writer->openMemory(); | |
//$writer->startDocument('1.0', 'UTF-8'); |