$ sudo nano /etc/systemd/system/kestrel-helloapp.serviceA seguir, um exemplo de arquivo de serviço para o aplicativo:
| const CONFIG = { | |
| url: 'https://cloud.squidex.io', | |
| appName: 'sample-blog', | |
| clientId: 'sample-blog:blog', | |
| clientSecret: 'ZxmQGgouOUmyVU4fh38QOCqKja3IH1vPu1dUx40KDec=' | |
| }; | |
| function getBearerToken() { | |
| return localStorage.getItem('token'); | |
| } |
| # download me or copy & paste into your root folder, name it .ps1_color | |
| # add the line below into your ~/.profile or ~/.bashrc | |
| # source ~/.ps1_color | |
| # ANSI color codes | |
| RS="\[\033[0m\]" # reset | |
| HC="\[\033[0;1m\]" # hicolor | |
| UL="\[\033[4m\]" # underline | |
| INV="\[\033[7m\]" # inverse background and foreground | |
| FBLK="\[\033[30m\]" # foreground black |
| edit_alias=code "D:\cmder\config\user_aliases.cmd" | |
| gs=git status |
| { | |
| "workbench.iconTheme": "vscode-icons", | |
| "editor.minimap.enabled": false, | |
| "editor.formatOnPaste": true, | |
| "editor.formatOnSave": true, | |
| "editor.formatOnType": true, | |
| "html.format.endWithNewline": true, | |
| "html.format.indentHandlebars": true, | |
| "javascript.format.insertSpaceAfterConstructor": true, | |
| "javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true, |
| // This file was initially generated by Windows Terminal 1.1.2021.0 | |
| // It should still be usable in newer versions, but newer versions might have additional | |
| // settings, help text, or changes that you will not see unless you clear this file | |
| // and let us generate a new one for you. | |
| // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "defaultProfile": "{a9d75fd5-c48a-43d9-8516-2ea5c2f4b913}", | |
| // You can add more global application settings here. |
| const mesh: Mesh // the mesh I want to know the size and position of | |
| const worldMatrix = mesh.getWorldMatrix() | |
| const transformMatrix = scene.getTransformMatrix() | |
| const position = mesh.position | |
| const viewport = scene.activeCamera!.viewport | |
| const coordinates = Vector3.Project(position, worldMatrix, transformMatrix, viewport) |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using CampaignPortal.Database; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.EntityFrameworkCore; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; |
| using MailKit.Net.Smtp; | |
| using MailKit.Security; | |
| using MimeKit; | |
| using MimeKit.Text; | |
| using System.Collections.Generic; | |
| namespace Logic.Services | |
| { | |
| public class EmailService | |
| { |
| using Logic.Services; | |
| using Umbraco.Core.Composing; | |
| using Umbraco.Web; | |
| using Umbraco.Web.Dashboards; | |
| using Umbraco.Web.Sections; | |
| namespace PROJECT | |
| { | |
| public class Composer : IUserComposer | |
| { |