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
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title>Sample2</title> | |
<script language="JavaScript" type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.js"></script> | |
</head> | |
<body> | |
<div> | |
<p>Make sure you've got the dev console open or you won't see my messages.</p> | |
<button id="positionButton">Get position</button> |
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 | |
/* | |
* Only allow script to run via command line interface. | |
*/ | |
if(php_sapi_name() != 'cli'){ | |
die('This script can only be run from the command line'); | |
} | |
/* | |
* Tool makes use of Zend Framework 1.x |
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"){ | |
echo "Must be run from the commend line."; | |
}; | |
/** | |
* Setup a magento instance so we can run this export from the command line. | |
*/ | |
require_once('app/Mage.php'); | |
umask(0); | |
if (!Mage::isInstalled()) { |
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 | |
/** | |
* Multisite Cron task. Hits the cron url for all enabled blogs so scheduled tasks function designed. | |
* @see http://www.lucasrolff.com/wordpress/why-wp-cron-sucks/ | |
* | |
* Add this to your /etc/crontab file. Runs once per hour. Outputs log. | |
* 1 * * * * wget -q -O - "http://mydomain.com/wp-cron-multisite.php?doing_wp_cron >> /tmp/wp-cron.log | |
*/ | |
require('./wp-load.php'); | |
//increase memory for this process. |
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 | |
Class LegacyAutoloader | |
{ | |
/** | |
* Tokenize a php file and extract all classes defined inside. | |
* @param $filePath | |
* @return array | |
*/ | |
public static function extractClasses($filePath){ | |
$classNames = 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
SELECT | |
TABLE_NAME, table_rows, data_length, index_length, | |
round(((data_length + index_length) / 1024 / 1024),2) 'Size in MB' | |
FROM information_schema.TABLES | |
WHERE table_schema = 'YOUR_DB_NAME' and TABLE_TYPE='BASE TABLE' | |
ORDER BY data_length DESC | |
; |
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
{ | |
"name": "sample/sample-app", | |
"description": "How to add pchart to your application via composer", | |
"license": "GPLv3", | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "pchart/pchart", | |
"version": "2.1.4", |
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
{ | |
"name": "example/example-project", | |
"description": "How to load eZComponents with composer", | |
"license": "BSD", | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "ezcomponents/ezcomponents", | |
"version": "2009.2.1", |
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 | |
/** | |
* Multisite Cron task. Hits the cron url for all enabled blogs so scheduled tasks function designed. | |
* @see http://www.lucasrolff.com/wordpress/why-wp-cron-sucks/ | |
*/ | |
require('./wp-load.php'); | |
//error_reporting(E_ALL); | |
//ini_set('display_errors',1); | |
ini_set('memory_limit','512M'); | |
echo '<pre>'; |
OlderNewer