Error
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hosts| Meta (Instagram, Facebook) | |
| // Узлы | |
| 157.240.253.174, 157.240.253.172, 157.240.253.167, 157.240.253.63, 157.240.253.32 | |
| 157.240.252.174, 157.240.252.172, 157.240.252.167, 157.240.252.63, 157.240.252.38 | |
| 57.144.112.34, 57.144.110.1, 157.240.205.174, 87.245.223.97 | |
| // Подсети | |
| 213.102.128.0/24 | |
| 204.15.20.0/22 | |
| 199.201.0.0/16 |
| wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz | |
| tar xzf Python-2.7.18.tgz | |
| cd Python-2.7.18 | |
| sudo ./configure --enable-optimizations | |
| sudo make altinstall | |
| sudo ln -s "/usr/local/bin/python2.7" "/usr/bin/python" |
| import io.ktor.application.ApplicationCall | |
| import io.ktor.application.call | |
| import io.ktor.http.HttpMethod | |
| import io.ktor.routing.Route | |
| import io.ktor.routing.Routing | |
| import io.ktor.routing.route | |
| import kotlin.reflect.KFunction | |
| import kotlin.reflect.full.callSuspendBy | |
| import kotlin.reflect.full.declaredMemberFunctions | |
| import kotlin.reflect.jvm.javaType |
Error
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hosts| :do { | |
| :do { | |
| /file remove "/ipsum.rsc"; | |
| /file remove "/subnet.rsc"; | |
| } on-error={} | |
| :put "Downloading ipsum.rsc..."; | |
| :do { | |
| /tool fetch url="https://antifilter.download/list/ipsum.rsc" dst-path="/ipsum.rsc" | |
| } on-error={ |
| 'use strict'; | |
| const moment = require('moment'); | |
| /** | |
| * Returns a {key: value} object where the key is a start date and the value is the date + 1 of the type of interval | |
| * to the start date. When for weeks or months, it shows just the first date of the week/month. | |
| * | |
| ** For days (start: '2017-12-25', end: '2018-01-02', interval: 'day'): | |
| { '2017-12-25': '2017-12-26', |
| SELECT table, | |
| formatReadableSize(sum(bytes)) as size, | |
| min(min_date) as min_date, | |
| max(max_date) as max_date | |
| FROM system.parts | |
| WHERE active | |
| GROUP BY table |
Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.
To learn more about migrations, check out this article on the different types of database migrations!
Let Tomcat is download and installed under /opt/tomcat.
Also, let tomcat be a non-provileged user under which the server will be running.
We assume that we keep server's binaries under /opt/tomcat and we will create a server instance named foo under /var/tomcat/ (carrying its own conf, logs, webapps, work, lib directories).
See also https://dzone.com/articles/running-multiple-tomcat.
Create a template service unit file at /etc/systemd/system/tomcat@.service: