//npm modules const express = require('express'); const uuid = require('uuid/v4') const session = require('express-session') const FileStore = require('session-file-store')(session); const bodyParser = require('body-parser'); const passport = require('passport'); const LocalStrategy = require('passport-local').Strategy; const axios = require('axios');
|* Resize image - preserve ratio of width and height.|
|* @param string $sourceImage path to source JPEG image|
|* @param string $targetImage path to final JPEG image file|
|* @param int $maxWidth maximum width of final image (value 0 - width is optional)|
|* @param int $maxHeight maximum height of final image (value 0 - height is optional)|
|* @param int $quality quality of final image (0-100)|
|* @return bool|
|function resizeImage($sourceImage, $targetImage, $maxWidth, $maxHeight, $quality = 80)|
- View: Also called a "template", a file that contains markup (like HTML) and optionally additional instructions on how to generate snippets of HTML, such as text interpolation, loops, conditionals, includes, and so on.
- View engine: Also called a "template library" or "templater", ie. a library that implements view functionality, and potentially also a custom language for specifying it (like Pug does).
- HTML templater: A template library that's designed specifically for generating HTML. It understands document structure and thus can provide useful advanced tools like mixins, as well as more secure output escaping (since it can determine the right escaping approach from the context in which a value is used), but it also means that the templater is not useful for anything other than HTML.
- String-based templater: A template library that implements templating logic, but that has no understanding of the content it is generating - it simply concatenates together strings, potenti
|# Optimized my.cnf configuration for MySQL/MariaSQL|
|# by Fotis Evangelou, developer of Engintron (engintron.com)|
|# === Updated December 2018 ===|
|# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores.|
|# If you have less or more resources available you should adjust accordingly to save CPU,|
|# RAM and disk I/O usage.|
|# The settings marked with a specific comment or the word "UPD" after the value|