Skip to content

Instantly share code, notes, and snippets.

@ivanxuu
ivanxuu / conversor-img-prestashop.sh
Last active January 15, 2018 11:48
Conversor imagenes prestashop
for pic in *.jpg; do
convert "${pic}" -interlace Plane -sampling-factor 4:2:0 -quality 84% -strip -resize 225x137 "${pic%.*}-home.jpg"
convert "${pic}" -interlace Plane -sampling-factor 4:2:0 -quality 84% -strip -resize 355x216 "${pic%.*}-large.jpg"
convert "${pic}" -interlace Plane -sampling-factor 4:2:0 -quality 84% -strip -resize 115x66 "${pic%.*}-medium.jpg"
convert "${pic}" -interlace Plane -sampling-factor 4:2:0 -quality 84% -strip -resize 1200x732 "${pic%.*}-category.jpg"
convert "${pic}" -interlace Plane -sampling-factor 4:2:0 -quality 84% -strip -resize 70x70 "${pic%.*}-small.jpg"
convert "${pic}" -interlace Plane -sampling-factor 4:2:0 -quality 84% -strip -resize 1200x732 "${pic%.*}-thickbox.jpg"
done
@ivanxuu
ivanxuu / docker_prestashop_1.7.md
Created July 23, 2019 06:48
Chuleta prestashop 1.7 generar docker
$ sudo docker network create old-prestashop-tier
$ sudo docker volume create --name old_mariadb_data
$ sudo docker run -d --name oldmariadb \
-e ALLOW_EMPTY_PASSWORD=yes \
-e MARIADB_USER=bn_prestashop \
-e MARIADB_DATABASE=old_prestashop \
--net old-prestashop-tier \
--volume old_mariadb_data:/oldprestashop \
bitnami/mariadb:latest

$ sudo docker volume create --name old_prestashop_data

@ivanxuu
ivanxuu / Deploy elixir using distillery and edeliver
Last active November 15, 2019 17:26
How to deploy elixir using distillery and edeliver with a production machine in vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.