| cd\Program Files\Microsoft Office\Office16 | |
| cd\Program Files (x86)\Microsoft Office\Office16 | |
| cscript OSPP.VBS /sethst:kms.digiboy.ir | |
| cscript OSPP.VBS /actcscript OSPP.VBS /dstatus | |
| slmgr.vbs /ckms |
| @echo off | |
| :::::::::::::::::::::::::::: | |
| set "params=Problem_with_elevating_UAC_for_Administrator_Privileges"&if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" | |
| fsutil dirty query %systemdrive% >nul 2>&1 && goto :GotPrivileges | |
| :: The following test is to avoid infinite looping if elevating UAC for Administrator Privileges failed | |
| If "%1"=="%params%" (echo Elevating UAC for Administrator Privileges failed&echo Right click on the script and select 'Run as administrator'&echo Press any key to exit...&pause>nul 2>&1&exit) | |
| cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%params%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs"&exit | |
| :GotPrivileges | |
| :::::::::::::::::::::::::::: | |
| color 1F |
You must especificate the file JSON wich have the proper configuration for your app wich environment do you want to use (declared in your ecosystem file).
pm2 start ecosystem_cluster_mode.json --env production
pm2 save (Autostart your application when PM2 service is started/restarted)
pm2 ls (Shows PM2 runnings apps)
netstat -ntpl | grep pm2 (Filter running PM2 applications)I live in a semi-rural area and we have crap internet options. The ONLY wired service to my house is ATT DSL. In 2020 some of the neighbors convinced ATT to sell us business accounts, which allows us to have more than 1 DSL line to the house (we got 3). Rather than run multiple WiFi networks - one for each DSL modem - at my house I wanted to bond the lines and aggregate the bandwidth. ATT won't do this for you, even though the DSL modems support it.
Along comes Speedify (https://speedify.com). For around $130 for three years you get a service that allows you to multiplex an arbitrary number of lines. Many people would use this, for instance, with a laptop if they have
| // Import express into our project | |
| const express = require("express"); | |
| // Import multer | |
| const multer = require("multer"); | |
| // Creating an instance of express function | |
| const app = express(); | |
| // Import dotenv |
| var db = mongoose.connect('mongodb://localhost:27017/DB'); | |
| // In middleware | |
| app.use(function (req, res, next) { | |
| // action after response | |
| var afterResponse = function() { | |
| logger.info({req: req}, "End request"); | |
| // any other clean ups |
Set the base image to Ubuntu must be first instruction - use docker search to find images
FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)Set the maintainer info
| // node: v0.10.21 | |
| // request: 2.27.0 | |
| var request = require('request'); | |
| var fs = require('fs'); | |
| var r = request.post("http://server.com:3000/"); | |
| // See http://nodejs.org/api/stream.html#stream_new_stream_readable_options | |
| // for more information about the highWaterMark | |
| // Basically, this will make the stream emit smaller chunks of data (ie. more precise upload state) | |
| var upload = fs.createReadStream('f.jpg', { highWaterMark: 500 }); |