Skip to content

Instantly share code, notes, and snippets.

View VldMrgnn's full-sized avatar
🏠
working

Vlad VldMrgnn

🏠
working
  • Bucharest Romania
View GitHub Profile
@VldMrgnn
VldMrgnn / app.js
Created February 11, 2021 02:42 — forked from fwertz/app.js
Basic load balancing NodeJS (Nginx + PM2 + Express)
import express from 'express';
// ... So much space for unstable dependency imports ...
let app = express();
// ... Insert your own routing magic ...
export default app;
#!/bin/bash
BACKUPTIME="$(date '+%Y%m%dT%H%M%S%z')"
BACKUPLOC=/home/backups
DBDIR=/var/lib/firebird/2.5/data
DBNAME=rsgdata
PASSLOC=/etc/firebird/2.5/SYSDBA.password
LEVEL=${1:-0}
COUNT=8
@VldMrgnn
VldMrgnn / README.md
Created November 25, 2020 00:42 — forked from pcan/README.md
Node.js plain TLS Client & Server, 2-way Cert Auth

Node.js TLS plain TLS sockets

This guide shows how to set up a bidirectional client/server authentication for plain TLS sockets.

Newer versions of openssl are stricter about certificate purposes. Use extensions accordingly.

Prepare certificates

Generate a Certificate Authority: