- Instal NestJS
- Create new controller using the sample
- Add the 2 files in to the root
- Use
ngrok
to port forward to https - Install plugin
This file contains 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
const x = { | |
salesOrders: { | |
description: `sales orders ...`, | |
data: [ | |
{ | |
date: '2014-09-21', | |
totalWithTax: 23, | |
totalTax: 23, | |
totalShipping: 12 | |
} |
This file contains 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
[{ | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, { | |
"symbol": "CA$", |
This file contains 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
To prevent this situation it is recommended to increase the watches limit (to, say, 512K): | |
1. Add the following line to either /etc/sysctl.conf file or a new *.conf file (e.g. idea.conf) under /etc/sysctl.d/ directory: | |
fs.inotify.max_user_watches = 524288 | |
2. Then run this command to apply the change: | |
sudo sysctl -p --system | |
And don't forget to restart your IDE. |
This file contains 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
class OpenAiBobPlugin { | |
public foo() { | |
return 'bar'; | |
} | |
public init(): string { | |
return 'initi' | |
} |
This file contains 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
[ | |
{"Code": 47,"Groups": "corp, fin","Description": "Accounting"}, | |
{"Code": 94,"Groups": "man, tech, tran","Description": "Airlines/Aviation"}, | |
{"Code": 120,"Groups": "leg, org","Description": "Alternative Dispute Resolution"}, | |
{"Code": 125,"Groups": "hlth","Description": "Alternative Medicine"}, | |
{"Code": 127,"Groups": "art, med","Description": "Animation"}, | |
{"Code": 19,"Groups": "good","Description": "Apparel & Fashion"}, | |
{"Code": 50,"Groups": "cons","Description": "Architecture & Planning"}, | |
{"Code": 111,"Groups": "art, med, rec","Description": "Arts and Crafts"}, | |
{"Code": 53,"Groups": "man","Description": "Automotive"}, |
This file contains 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
server { | |
root /var/www/html; | |
index index.html index.htm index.nginx-debian.html; | |
server_name domain.tld www.domain.tld; | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; |
This file contains 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
{ | |
"type": "fulltext-index", | |
"name": "idx_listContactsSearch", | |
"uuid": "2394267d30241ef1", | |
"sourceType": "couchbase", | |
"sourceName": "contacts", | |
"sourceUUID": "b6f199faacce42c00290423d23f1e9a2", | |
"planParams": { | |
"maxPartitionsPerPIndex": 171, | |
"indexPartitions": 6 |
This file contains 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
FROM node:12.15.0 | |
LABEL maintainer="Naologic <contact@naologic.com>" | |
# Make the dir | |
RUN mkdir -p /var/nao | |
RUN mkdir -p /etc/pm2-web | |
WORKDIR /var/nao | |
# Bundle APP files | |
COPY dist dist/ |
This file contains 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
upstream php-handler { | |
server app:9000; | |
} | |
server { | |
listen 80; | |
add_header Referrer-Policy origin; # make sure outgoing links don't show the URL to the Matomo instance | |
root /var/www/html; # replace with path to your matomo instance | |
index index.php; |
NewerOlder