Skip to content

Instantly share code, notes, and snippets.

View VladimirCores's full-sized avatar
💭
evolve

Vladimir Minkin VladimirCores

💭
evolve
View GitHub Profile
<!doctype html>
<html>
<head>
<!-- Encoding -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>
@VladimirCores
VladimirCores / dabblet.css
Created February 5, 2013 08:39 — forked from jakerocheleau/dabblet.css
3col Holy Grail
/**
* 3col Holy Grail
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
margin: 0;
padding-left: 200px; /* LC fullwidth */
padding-right: 210px; /* RC fullwidth + CC padding */
package utils.lookuplist
{
/**
* Fast alternative to array ot dictionary
* @author Thomas John
* http://blog.open-design.be/2014/02/14/benchmarks-dictionary-vs-object-vs-array-vs-lookuplist/
*/
public class LookupList
{
public var itemFirst:LookupListItem;
@VladimirCores
VladimirCores / Messenger.cs
Created December 29, 2015 09:05 — forked from anonymous/Messenger.cs
Messenger for Unity3D
using System;
using System.Collections.Generic;
public delegate void Callback();
public delegate void Callback<T>(T arg1);
public delegate void Callback<T, U>(T arg1, U arg2);
public delegate void Callback<T, U, V>(T arg1, U arg2, V arg3);
public enum MessengerMode {
DONT_REQUIRE_LISTENER,
@VladimirCores
VladimirCores / build.xml
Last active November 3, 2017 22:08
Ant script to build Android APK (armv7 or x86) and connect it to FDB at specific IP
<?xml version="1.0"?>
<project name="Application">
<property name="sdk.air" value="PATH_TO_AIR_SDK_FOLDER"/>
<property name="adt" value="${sdk.air}/bin/adt.bat"/>
<property name="ip" value="192.168.0.101"/>
<property name="project.root" value="."/>
<property name="dir.cert" value="${project.root}/CERTIFICATE_FOLDER"/>
@VladimirCores
VladimirCores / Main
Last active January 16, 2018 16:35
Haxe - Time zone parsing speed test
class Main
{
static public function main():Void
{
var it = 30;
var ra:Int = 0;
var rb:Int = 0;
var rc:Int = 0;
while(it-- > 0) {
var obj:TestResults = TimeUtil.RunTest();
server {
listen 443 ssl;
server_name softwaredesign.ml;
root /usr/share/nginx/html;
ssl on;
ssl_certificate /etc/letsencrypt/live/pageaddress.ml/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/pageaddress.ml/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
echo "deb https://apache.bintray.com/couchdb-deb stretch main" \
| sudo tee -a /etc/apt/sources.list
&& curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc \
| sudo apt-key add -
&& sudo apt-get update && sudo apt-get install couchdb
Here what you need to do:
1. Install pm2: npm i -g pm2
2. Run: pm2 start http-server-spa --name “DAZN” -- -p 8080 -d false
3. Manage processes: pm2 status, pm2 monit, pm2 logs, pm2 delete 0, pm2 restart 0
4. See “pm2 help” for more info
UPDATE:
You can use web interface and monitor you process from browser, for that install pm2-web
https://github.com/achingbrain/pm2-web
And run it same way: pm2 start pm2-web --name “WEB”