Read about How to install LXC\LXD on Ubuntu: https://linuxcontainers.org/lxd/getting-started-cli/
On LXC\LXD Host Mashine create a containe with Ubuntu 18.04 with name "eset"
lxc launch images:ubuntu/18.04 eset
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ | 
| <?php | |
| class MyModel extends BaseMyModel | |
| { | |
| public function hydrate($row, $startcol = 0, $rehydrate = false) | |
| { | |
| try { | |
| $this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null; | |
| $this->type = ($row[$startcol + 1] !== null) ? $row[$startcol + 1] : null; | |
| $this->resetModified(); | 
| <?php | |
| // Before: composer require monolog/monolog | |
| // composer autoloader | |
| require_once 'vendor/autoload.php'; | |
| // Shortcuts for simpler usage | |
| use \Monolog\Logger; | |
| use \Monolog\Formatter\LineFormatter; | |
| use \Monolog\Handler\StreamHandler; | 
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>WebWorker image preloading</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" /> | |
| </head> | |
| <body> | |
| <div id="output"></div> | |
| <script id="imgloader" type="javascript/worker"> | |
| // Not race proof or robust. Proof of concept. | 
| /* global createImageBitmap */ | |
| function loadImageWithImageTag(src) { | |
| return new Promise((resolve, reject) => { | |
| const img = new Image; | |
| img.crossOrigin = ''; | |
| img.src = src; | |
| img.onload = () => { resolve(img); }; | |
| img.onerror = () => { reject(img); }; | |
| }); | 
Read about How to install LXC\LXD on Ubuntu: https://linuxcontainers.org/lxd/getting-started-cli/
On LXC\LXD Host Mashine create a containe with Ubuntu 18.04 with name "eset"
lxc launch images:ubuntu/18.04 eset