https://avatars.githubusercontent.com/u/6709830?v=4

Arch linux XPS-13 9310

Install Before Installation Enter BIOS with F2 and configure: “System Configuration” > “SATA Operation”: “AHCI” “Secure Boot” > “Secure Boot Enable”: “Disabled” Create partitions 1 cgdisk /dev/nvme0n1 1 2 3 4 5 6 7 1 1024MB EFI partition Block size 2147484 Hex code ef00 Label boot 2 100% Linux partition (to be encrypted) Hex code 8300 Label root Formatting and encryption Format boot partition 1 mkfs.fat -F32 /dev/nvme0n1p1 create Lvm crypted partition

Arch linux XPS-13 9360

Install Before Installation Enter BIOS with F2 and configure: “System Configuration” > “SATA Operation”: “AHCI” “Secure Boot” > “Secure Boot Enable”: “Disabled” Create partitions 1 cgdisk /dev/nvme0n1 1 2 3 4 5 6 7 1 1024MB EFI partition Block size 2147484 Hex code ef00 Label boot 2 100% Linux partition (to be encrypted) Hex code 8300 Label root Formatting and encryption Format boot partition 1 mkfs.fat -F32 /dev/nvme0n1p1 create Lvm crypted partition

Magento offline payment the new way

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 Every time when I would like to prepare new payment method I see deprecated method. It's terrible because modules in magento vendor doesn't rewrite in new style. In that article I would like to show how prepare new offline payment in magento way.

Magento sanitize registrar

1 2 3 4 5 6 <?php use Magento\Framework\Component\ComponentRegistrar; $name = implode('_', array_map(function($part) { return implode(array_map('ucfirst', explode('-', $part))); }, array_slice(explode(DIRECTORY_SEPARATOR, __DIR__), -2, 2))); ComponentRegistrar::register(ComponentRegistrar::MODULE, $name, __DIR__);

Exited (255)

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d8fd64212a3b taurthil/nginx:latest “usr/local/bin/start…” 2 days ago Exited (255) 37 hours ago 0.0.0.0:80->80/tcp, 443/tcp taurthil_web 99e127e16fa0 taurthil/main:dev “/bin/sh -c setup.sh” 2 days ago Exited (255) 37 hours ago 9000/tcp taurthil_app docker-compose up --force-recreate --abort-on-container-exit

Debian server configuration

1) Server config Stack Nginx 1.10.3 (apt-get -t jessie-backports install nginx-full) Php 5.6 (apt-get install php5 php5-fpm php5-gd php5-json php5-mysql php5-curl php5-mcrypt) MariaDB 10.0 => Mysql 5.6 (apt-get install mariadb-server) 2) User Create user name password Directory create website directory /var/www/name/101-website.address/public_html create log directory /var/www/name/log/101-website.address/ create log directory /var/www/name/repository/branch_name/ 3) Webservice config (php-fpm, nginx, mariaDB) Nginx change config to startup by name nginx.conf {% highlight nginx %} user name; http { … include /etc/nginx/sites-enabled/*.