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
| /* Regular jQuery */ | |
| $('.hideable').on('click', function() { | |
| $(this).hide(); | |
| }) | |
| /* Compatibility Mode */ | |
| jQuery('.hideable').on('click', function() { | |
| jQuery(this).hide(); | |
| }) |
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
| find /var/www/vhosts/ -name "wordpress-*.*.zip" -delete |
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
| # REDIRECCION CERTIFICADO SSL | |
| RewriteEngine on | |
| RewriteCond %{QUERY_STRING} !^wc-api=WC_Gateway_redsys | |
| RewriteCond %{HTTPS} !=on [NC] | |
| RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
| # END SSL |
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
| # apt-get install dos2unix | |
| find ./ -type f -exec dos2unix {} \; |
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
| # /etc/mysql/mysql.conf.d/mysqld.cnf | |
| innodb_file_per_table | |
| query_cache_size=0 | |
| query_cache_type=0 | |
| query_cache_limit=1M | |
| join_buffer_size=2M | |
| table_open_cache=500 | |
| innodb_buffer_pool_size=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
| [opcache] | |
| zend_extension = "D:\xampp\php\ext\php_opcache.dll" | |
| opcache.enable=1 | |
| opcache.enable_cli=1 | |
| opcache.memory_consumption=256 | |
| opcache.max_accelerated_files=2000 |
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
| find . -name *-*x*.jpg | xargs rm -f |
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
| add_action( 'wp_head', 'remove_mwm_metas', 9 ); | |
| function remove_mwm_metas(){ | |
| remove_action( 'wp_head', 'mwm_metas_redessociales' ); | |
| } |
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 | |
| /* | |
| Plugin Name: Personalizar login | |
| Description: Cambia el logo de la pantalla de login de WordPress | |
| Author: Nilo Velez | |
| License: WTFPL | |
| */ | |
| // cambia el logo del login | |
| // asume que hay una imagen de 300x84 en /wp-content/uploads/login_logo.png |
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
| $ sudo apt-get remove --purge libreoffice* minecraft-pi wolfram-engine scratch sonic-pi dillo gpicview penguinspuzzle oracle-java8-jdk openjdk-7-jre oracle-java7-jdk openjdk-8-jre -y | |
| $ sudo apt-get clean | |
| $ sudo apt-get autoremove |