Moved to https://api.fmhy.net
➜ uname -r
# get installed kernel version
➜ pacman -S linux-headers
# select kernel version
Directories on host machine:
-
/data/certbot/letsencrypt -
/data/certbot/www -
Nginx server in docker container
docker run -d --name nginx \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Test, TestingModule } from '@nestjs/testing' | |
| import { INestApplication, LoggerService } from '@nestjs/common' | |
| import * as request from 'supertest' | |
| import { AppModule } from './../src/app.module' | |
| class TestLogger implements LoggerService { | |
| log(message: string) {} | |
| error(message: string, trace: string) {} | |
| warn(message: string) {} | |
| debug(message: string) {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ValidationArguments, ValidatorConstraintInterface } from 'class-validator'; | |
| import { Connection, EntitySchema, FindConditions, ObjectType } from 'typeorm'; | |
| interface UniqueValidationArguments<E> extends ValidationArguments { | |
| constraints: [ | |
| ObjectType<E> | EntitySchema<E> | string, | |
| ((validationArguments: ValidationArguments) => FindConditions<E>) | keyof E, | |
| ]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.html$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.html [L] | |
| </IfModule> | |
| https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations |
The Plex Media Player desktop application's default quality setting is in different places depending on the interface you're using. The Plex Web UI is used as a point-and-click interface, whereas the Plex Media Player TV UI is used as a remote-friendly interface.
| Plex Web UI | Plex Media Player TV UI |
|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| DocumentRoot "/home/dev/server/project/dist/" | |
| ServerName vuejs.project.local | |
| <Directory /home/dev/server/project/dist/> | |
| Options Indexes FollowSymLinks MultiViews | |
| AllowOverride all | |
| Require all granted | |
| Order allow,deny | |
| allow from all |
NewerOlder