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
SELECT OBJECT_NAME(object_id), | |
OBJECT_DEFINITION(object_id) | |
FROM sys.procedures | |
WHERE OBJECT_DEFINITION(object_id) LIKE '%JV R%' |
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
package ca.uwo.csd.cs2212.USERNAME; | |
public class BankAccount { | |
private double balance; | |
public BankAccount(double balance) { | |
this.balance = balance; | |
} |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.html [L] | |
</IfModule> |
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
#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; |
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
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] |
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
.env | |
HOSTNAME | |
HOME | |
BASH_VERSION | |
-------- | |
build/create-env.js |
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
# 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 |
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
# check linux version | |
lsb_release -a | |
# check disk space | |
df | |
# check memory | |
free -m | |
# check memory | |
# cat /proc/meminfo | |
sudo -s |
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
1) Revert to specific commit | |
git revert --no-commit 0766c053..HEAD | |
git commit | |
----------------------------------------------------------- | |
2) Show diff intow commits | |
git diff 012345..abcdef |
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
// Example (using the function below). | |
getLocalIPs(function(ips) { // <!-- ips is an array of local IP addresses. | |
document.body.textContent = 'Local IP addresses:\n ' + ips.join('\n '); | |
}); | |
function getLocalIPs(callback) { | |
var ips = []; | |
var RTCPeerConnection = window.RTCPeerConnection || | |
window.webkitRTCPeerConnection || window.mozRTCPeerConnection; |