Error
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hosts| 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:
With heightening concern regarding the state of internet privacy (fuelled in part by the passing of the Investigatory Powers Act in the UK), I have set up a VPN server on the virtual server I have hosted with Mythic Beasts. This uses strongSwan and certificate-based IKEv2 authentication.
Assumptions:
debian.example.com, a public IPv4 of 203.0.113.1 and a public IPv6 of 2001:db8::1meFor automated deployment of a similar setup, albeit Ubuntu-based and using ansible for deployment, I recommend you take a look at Algo VPN. I used that project as a basis for my configuration.