create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| // configure.swift | |
| func configure(_ app: Application) throws { | |
| app.migrations.add(Todo(), to: .psql) | |
| try app.migrator.setupIfNeeded().wait() | |
| try app.migrator.prepareBatch().wait() | |
| } | |
| // Todo.swift | |
| final class Todo: Model, Content { |
| import FluentKit | |
| import Vapor | |
| final class Todo: Model, Content { | |
| static let schema = "todos" | |
| @iID(key: "id", .uuid, .identifier(auto: false)) | |
| var id: UUID? | |
| @iField(key: "title", .string, .required) |
| // Enum Protocol | |
| public protocol PostgresEnum: RawRepresentable, Codable, CaseIterable, PostgresDataConvertible { | |
| static var name: String { get } | |
| } | |
| extension PostgresEnum { | |
| static var name: String { String(describing: self).lowercased() } | |
| } |
| // | |
| // Postgres+Transaction.swift | |
| // | |
| // Created by Mihael Isaev on 14.01.2020. | |
| // | |
| import Vapor | |
| import FluentKit | |
| import PostgresKit |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| location = /apple-app-site-association { | |
| proxy_pass http://static.example.com/apple-app-site-association; | |
| proxy_hide_header Content-Type; | |
| add_header Content-Type "application/json"; | |
| } | |
| or | |
| location = apple-app-site-association { | |
| default_type application/json; |
| import Vapor | |
| public protocol FutureParameter { | |
| associatedtype ResolvedParameter | |
| static var routingSlug: String { get } | |
| static var parameter: PathComponent { get } | |
| static func resolveParameter(_ parameter: String, on app: Application) -> EventLoopFuture<ResolvedParameter> | |
| } |
| // | |
| // Reflectable | |
| // | |
| // Copied from https://github.com/vapor/core | |
| // | |
| import Foundation | |
| import NIO | |
| struct CoreError: Error { |
| import UIKitPlus | |
| class MainViewController: ViewController { | |
| override var statusBarStyle: StatusBarStyle { | |
| if let controller = controllers[current]?.protocolController { | |
| if let controller = controller as? ViewController { | |
| return controller.statusBarStyle | |
| } | |
| return .from(controller.preferredStatusBarStyle) | |
| } |
You might want to read this to get an introduction to armel vs armhf.
If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.
First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux