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
docker cp /path/to/my/dump.sql mycontainer:/dump.sql | |
docker exec mysql_container /bin/bash -c 'mysql -uroot -proot name_db < /dump.sql' |
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
version: '3' | |
services: | |
db: | |
container_name: my_db | |
image: mariadb | |
volumes: | |
- "$PWD/data:/var/lib/mysql" | |
environment: | |
MYSQL_ROOT_PASSWORD: "xxxxx" |
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
# Editors, tools and OS's | |
.buildpath | |
.project | |
.settings | |
.idea | |
.svn | |
.DS_Store | |
.sass-cache | |
config.codekit |
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
SELECT | |
p.id_product AS `ID`, | |
p.active AS `Active (0/1)`, | |
pl.`name` AS `Name`, | |
GROUP_CONCAT(DISTINCT(cl.name) SEPARATOR ',') AS `Categories (x,y,z...)`, | |
p.price AS `Price tax excluded or Price tax included`, | |
p.id_tax_rules_group AS `Tax rules ID`, | |
p.wholesale_price AS `Wholesale price`, | |
p.on_sale AS `On sale (0/1)`, | |
p.reference AS `Reference #`, |
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
version: '3' | |
services: | |
db_my_prestashop: | |
container_name: mariadb-db-1750 | |
image: mariadb | |
volumes: | |
- "$PWD/data:/var/lib/mysql" | |
environment: | |
MYSQL_ROOT_PASSWORD: "passwordroot" |
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
find . -type f -exec chmod 644 {} \; | |
find . -type d -exec chmod 755 {} \; |
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
#activar | |
a2enconf php5.6-fpm | |
a2enconf php7.2-fpm | |
# desactivar | |
a2disconf php5.6-fpm | |
a2disconf php7.2-fpm | |
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
{assign var="find" value=array('[b]', '[/b]')} | |
{assign var="repl" array('<b>', '</b>')} | |
{assign var="text" value='Hi [b]codelinks[/b], my code.'} | |
{$text|replace:$find:$repl} |
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 | |
spl_autoload_register('name_your_plugin_autoloader'); | |
function name_your_plugin_autoloader($class_name) | |
{ | |
$plugin_name = 'name_your_plugin'; | |
if (false === strpos($class_name, $plugin_name)) { | |
return; | |
} | |
$file_parts = explode('\\', $class_name); |
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 | |
/** | |
* @author Eduardo Pinuaga Linares Did-web.com <info@did-web.com> | |
* @copyright did-web.com 2018 | |
* @license GNU General Public License version 3 | |
* @version 1 | |
* Did-web.com | |
* | |
**/ |
NewerOlder