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
# Local Machine Hosts | |
# | |
# If the Vagrant plugin hostsupdater (https://github.com/cogitatio/vagrant-hostsupdater) is | |
# installed, the following will automatically configure your local machine's hosts file to | |
# be aware of the domains specified below. Watch the provisioning script as you may be | |
# required to enter a password for Vagrant to access your hosts file. | |
# | |
# By default, we'll include the domains setup by dv through the dv-hosts file | |
# located in the www/ directory. | |
# |
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 | |
class ArrayUtils { | |
public static function merge_recursive() | |
{ | |
$arrays = func_get_args(); | |
$merged = array_shift($arrays); | |
foreach ($arrays as $currentArray) { | |
foreach ($currentArray as $key => $value) { | |
if (is_array($value) && isset ($merged[$key]) && is_array($merged[$key])) { |
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 | |
$indexes = {0, 'Data', 'name'}; | |
function get_value($indexes, $arrayToAccess) | |
{ | |
if(count($indexes) > 1) | |
return get_value(array_slice($indexes, 1), $arrayToAccess[$indexes[0]]); | |
else | |
return $arrayToAccess[$indexes[0]]; |
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 | |
//cache | |
$seconds_to_cache = 60*60*24*36*3; | |
$ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT"; | |
header("Expires: $ts"); | |
header("Pragma: cache"); | |
header("Cache-Control: max-age=$seconds_to_cache"); |
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/bash | |
LOCAL_DB="" | |
REMOTE_DB="" | |
LOCAL_USER="root" | |
LOCAL_PASS="" | |
REMOTE_USER="root" | |
REMOTE_PASS='' |
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 | |
/** | |
* @author orbisnull | |
*/ | |
class Admin_AmpqController extends Zend_Controller_Action | |
{ | |
public function testAction() | |
{ | |
$this->_helper->layout()->disableLayout(); |
NewerOlder