Related tutorial: https://code64.de/visionerdy/wordpress-backups/
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
| /** | |
| * @desc Remove in all product type | |
| */ | |
| function wc_remove_all_quantity_fields( $return, $product ) { | |
| return true; | |
| } | |
| add_filter( 'woocommerce_is_sold_individually', 'wc_remove_all_quantity_fields', 10, 2 ); |
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
| <body> | |
| <div class="container"> | |
| <h1>Same height columns in Bootstrap</h1> | |
| <div class="row row-flex"> | |
| <div class="col-md-4 col-sm-6 col-xs-12"> | |
| <div class="content colour-1"> | |
| <h3>First column</h3> | |
| <p>This one has a bit longer content</p> | |
| <p>This one has a bit longer content</p> | |
| </div> |
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
| // Using bootstrap the SASS way. Import your variables. | |
| @import "bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/variables"; | |
| /* http://getbootstrap.com/css/#responsive-utilities */ | |
| /* Extra small devices (phones, less than 768px) */ | |
| /* No media query since this is the default in Bootstrap */ | |
| // Mobile first | |
| body{ | |
| border: solid 4px red; |
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
| SELECT * FROM table AS r1 | |
| JOIN (SELECT (RAND()*(SELECT MAX(id)-MIN(id) FROM table) + | |
| (SELECT MIN(id) FROM table)) AS id) AS r2 | |
| WHERE r1.id >= r2.id ORDER BY r1.id ASC LIMIT 300 |
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 | |
| #first param = db user, second param = db name | |
| rm -rf app/code/core/Enterprise | |
| rm -rf downloader/template/enterprise | |
| rm -rf app/design/install/default/enterprise | |
| rm -rf app/design/frontend/enterprise | |
| rm -rf app/design/adminhtml/default/default/layout/enterprise | |
| rm -rf app/design/adminhtml/default/default/template/enterprise |
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
| # Template Updated At 2019-04-17 | |
| upstream php_backend_%domain_idn%_%web_ssl_port% { | |
| server %backend_lsnr%; | |
| #server %backend_lsnr% backup; | |
| } | |
| server { | |
| listen %ip%:%web_ssl_port%; | |
| server_name %domain_idn% %alias_idn%; |
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
| MODx Ace Material Theme | |
| 1. Системные настройки > Пространство имен "ace": | |
| Размер шрифта: 13px | |
| Высота области редактирования: 560 | |
| Невидимые символы: Да | |
| Мягкая табуляция: Нет | |
| Размер табуляции: 2 | |
| Тема редактора: tomorrow_night |
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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
NewerOlder