Skip to content

Instantly share code, notes, and snippets.

View mataprasad's full-sized avatar

Mata Prasad Chauhan mataprasad

View GitHub Profile
# check linux version
lsb_release -a
# check disk space
df
# check memory
free -m
# check memory
# cat /proc/meminfo
sudo -s
# build stage
FROM node:8-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:1.15 as production-stage
.env
HOSTNAME
HOME
BASH_VERSION
--------
build/create-env.js
Extending (Kevin Tong) answer.
Step 1: Download & Unzip nssm-2.24.zip [http://nssm.cc/]
Step 2: From command line type:
C:\> nssm.exe install [servicename]
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
package ca.uwo.csd.cs2212.USERNAME;
public class BankAccount {
private double balance;
public BankAccount(double balance) {
this.balance = balance;
}
SELECT OBJECT_NAME(object_id),
OBJECT_DEFINITION(object_id)
FROM sys.procedures
WHERE OBJECT_DEFINITION(object_id) LIKE '%JV R%'
public static string GetFullPictureUrl(Guid? guid)
{
if (guid == null)
{
guid = Guid.Empty;
}
return ResolveServerUrl(System.Web.VirtualPathUtility.ToAbsolute("~/home/picture/" + guid.ToString()), false);
}
https://github.com/huilgolAni19/SampleGpsApp