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
| # dsoares | |
| .PHONY: help map.html clear | |
| default: map.html | |
| ## help : Print commands help. | |
| help: Makefile | |
| @sed -n 's/^##//p' $< | |
| ## map.html : Generate map.html |
| #!/usr/bin/python3 | |
| # Copyright 2021 Tobias Girstmair (https://gir.st). Consider this code GPLv3 | |
| # licensed. | |
| # pip3 install flynn base45 PyPDF2 pyzbar Pillow | |
| # dnf install zbar || apt install libzbar0 | |
| import sys | |
| import glob |
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
| /* 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); }; | |
| }); |
| <!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. |
| <?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; |
| <?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(); |
This document is based on this instructions: Installing AMC development version on macOS
UPDATE 2018-03-15
Comments were added to this gist with a method to install AMC with Homebrew. To choose your best installation option, please read them before installation.