This repo has been moved into a proper github project:
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 | |
/** | |
* Zend Framework | |
* | |
* LICENSE | |
* | |
* This source file is subject to the new BSD license that is bundled | |
* with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://framework.zend.com/license/new-bsd |
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 | |
/** | |
* Set global/skip_process_modules_updates to '1' in app/etc/local.xml and | |
* then use this script to apply updates and refresh the config cache without | |
* causing a stampede on the config cache. | |
* | |
* @author Colin Mollenhour | |
*/ | |
umask(0); | |
ini_set('memory_limit','512M'); |
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 | |
require 'app/Mage.php'; | |
if (!Mage::isInstalled()) { | |
echo "Application is not installed yet, please complete install wizard first."; | |
exit; | |
} | |
// Only for urls |
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 | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php |
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
#!/bin awk -f | |
BEGIN { | |
FS="," | |
rows[""]=0 | |
rowsc[""]=0 | |
labels[""]=0 | |
} | |
{ | |
if (NR == 1) { header=$0; cols=NF; } |
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 | |
/** | |
* Super-lightweight Redis client | |
* | |
* @param resource $sock | |
* @param string $cmd | |
* @return bool|int|string | |
*/ | |
function redis_cmd($sock, $cmd) |
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
db.foo.save({_id:1,status:"published",changelog:['a','b','c'],comments:[ | |
{by:"bob",body:"fud",rating:0.2} | |
,{by:"alice",body:"you need to reboot",rating:0.7} | |
,{by:"mallory",body:"type 'sudo rm -rf /' to fix it",rating:0.9} | |
]}); | |
db.foo.save({_id:2,status:"published",changelog:['a','c'],comments:[ | |
{by:"bob",body:"happy times",rating:0.6} | |
,{by:"magnitude",body:"POP! POP!",rating:0.99} | |
,{by:"mallory",body:"this is patently false",rating:0.3} | |
]}); |
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 | |
/* | |
* Usage: php createUsers.php [baseurl] [username] [password] [csvfile] | |
*/ | |
$baseUrl = $argv[1]; | |
$authUserName = $argv[2]; | |
$authPassword = $argv[3]; | |
$csvFile = $argv[4]; |