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 | |
function sign($method, $url, $data, $consumerSecret, $tokenSecret) | |
{ | |
$url = urlEncodeAsZend($url); | |
$data = urlEncodeAsZend(http_build_query($data, '', '&')); | |
$data = implode('&', [$method, $url, $data]); | |
$secret = implode('&', [$consumerSecret, $tokenSecret]); | |
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 | |
/** | |
* Simple helper to fetch the bounding boxes | |
* for a point on the map (lat,lng) by radius. | |
* | |
* @param double $lat Latitude | |
* @param double $lng Longitude | |
* @param int $radius Radius in km | |
* @return array |
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
DELETE cce , cceda , ccede , ccei , ccet , ccev FROM catalog_category_entity cce | |
LEFT JOIN | |
catalog_category_entity_datetime AS cceda ON cce.entity_id = cceda.entity_id | |
LEFT JOIN | |
catalog_category_entity_decimal AS ccede ON cce.entity_id = ccede.entity_id | |
LEFT JOIN | |
catalog_category_entity_int AS ccei ON cce.entity_id = ccei.entity_id | |
LEFT JOIN | |
catalog_category_entity_text AS ccet ON cce.entity_id = ccet.entity_id | |
LEFT JOIN |
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
zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" | |
[xdebug] | |
xdebug.idekey="macgdbp" | |
xdebug.remote_enable=1 | |
xdebug.remote_host="localhost" | |
xdebug.remote_port=9089 | |
xdebug.remote_handler="dbgp" |
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
# | |
# @author Jonathon byrd | |
# | |
############################################################ | |
# first things first, set your iptables for a web server. If you jack these | |
# up you don't want to have to re-install your os after doing much more. | |
# @see http://www.thegeekstuff.com/2011/06/iptables-rules-examples/ | |
# and | |
# @see https://help.ubuntu.com/community/IptablesHowTo |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script> | |
<link href="rotate.css" rel="stylesheet" type="text/css" /> | |
<script type="text/javascript" src="rotate.js"></script> | |
<script type="text/javascript"> | |
$(window).load(function() { | |
startRotator("#rotator"); | |
}) | |
</script> |