Steps to deploy Node.js to VPS using PM2 and Github Actions
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
{ | |
"workbench.startupEditor": "none", | |
"workbench.iconTheme": "moxer-icons", | |
"workbench.colorTheme": "Aura Dark", | |
"workbench.settings.editor": "json", | |
"breadcrumbs.enabled": false, | |
"explorer.compactFolders": false, | |
"editor.wordWrap": "bounded", | |
"editor.tabSize": 2, | |
"editor.inlineSuggest.enabled": true, |
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
state = { | |
userInputContainerClicked: false, | |
searchTerm: "", | |
// tags that render are inside of 'passingTags' object. | |
passingTags: { | |
search: { | |
inputTerm: "" | |
}, | |
price: { | |
lowHigh: false, |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
#Users
- User object
{
id: integer
username: string
email: string
created_at: datetime(iso 8601)
updated_at: datetime(iso 8601)
}
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
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 math | |
import random | |
import csv | |
import cProfile | |
import numpy as np | |
import hashlib | |
memoization = {} |
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
// a way to recurse through ports until an open port is found | |
// based upon the Node.js documentation | |
var http = require('http'); | |
var listenerCounter = 1; | |
var port = 8000; | |
var HTTPserver = http.createServer(function (request, response) { |