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
{ | |
"containerDefinitions": [ | |
{ | |
"logConfiguration": { | |
"logDriver": "awslogs", | |
"options": { | |
"awslogs-group": "/ecs/api", | |
"awslogs-create-group": "true", | |
"awslogs-region": "us-east-1", | |
"awslogs-stream-prefix": "ecs" |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity ^0.5.1; | |
// enums | |
// contract Mycontract2 { | |
// // using enums in solidity | |
// enum State { Waiting, Activated, Pending } | |
// State public state; |
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
<div id="wrapper"> | |
<div id="left"> | |
<div id="signin"> | |
<div class="logo"> | |
<img src="https://image.ibb.co/hW1YHq/login-logo.png" alt="Sluralpright" /> | |
</div> | |
<form> | |
<div> | |
<label>Email or username</label> | |
<input type="text" class="text-input" /> |
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
version: "3" | |
services: | |
app: | |
restart: always | |
build: . | |
container_name: wolfsbane-backend | |
links: | |
- postgres | |
environment: | |
DEV_DATABASE_URL: postgres://devuser:1234@postgres:5432/dev_db |
Steps to deploy a Node.js app to Digital Ocean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
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 Mailgun = require('mailgun-js'); | |
const DOMAIN = 'mail.myfortvest.com'; | |
const API_KEY = process.env.MAIL_API_KEY || ''; | |
const PUBLIC_KEY = process.env.MAIL_PUBLIC_KEY || ''; | |
const mailgun = Mailgun({ apiKey: API_KEY, domain: DOMAIN, publicApiKey: PUBLIC_KEY }); | |
const sendMail = async (payload) => { | |
const {variable, desc, ...rest} = payload; | |
const variableKey = Object.keys(payload.variable); |
NewerOlder