create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| msgid "" | |
| msgstr "" | |
| "Project-Id-Version: Lingohub 1.0.1\n" | |
| "Report-Msgid-Bugs-To: support@lingohub.com \n" | |
| "Last-Translator: Marko Bošković <marko@lingohub.com>\n" | |
| "Language: de\n" | |
| "MIME-Version: 1.0\n" | |
| "Content-Type: text/plain; charset=UTF-8\n" | |
| "Content-Transfer-Encoding: 8bit\n" | |
| "Plural-Forms: nplurals=2; plural=(n != 1);\n" |
| var express = require('express'); | |
| var cookieParser = require('cookie-parser'); | |
| var session = require('express-session'); | |
| var flash = require('express-flash'); | |
| var handlebars = require('express-handlebars') | |
| var app = express(); | |
| var sessionStore = new session.MemoryStore; | |
| // View Engines |
| var mongoose = require('mongoose'); | |
| mongoose.connect('mongodb://localhost/foobar'); | |
| // bootstrap mongoose, because syntax. | |
| mongoose.createModel = function(name, options) { | |
| var schema = new mongoose.Schema(options.schema); | |
| for (key in options.self) { | |
| if (typeof options.self[key] !== 'function') continue; | |
| schema.statics[key] = options.self[key]; | |
| } |
| 'use strict'; | |
| let dns = require('dns'), | |
| Promise = require('bluebird'), | |
| resolve = Promise.promisify(dns.resolve), | |
| _ = require('lodash'); | |
| function dnsRecords(addr) { | |
| const rrtypes = ['A', 'MX']; | |
| let promises = rrtypes.map(rrtype => resolve(addr, rrtype)); |
| var raw = require("raw-socket"); | |
| var ip = require('ip'); | |
| var util = require('util'); | |
| function send(src_ip, src_port, dst_ip, dst_port) { | |
| var socket = raw.createSocket({ | |
| protocol: raw.Protocol.TCP, // See http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml | |
| addressFamily: raw.AddressFamily.IPv4 | |
| }); |
| /* | |
| This is an implementation of the core Masscan scanning algorithm | |
| in JavaScript/NodeJS. The core scanning algorithm is what makes | |
| Masscan unique from other scanners, so it's worth highlighting | |
| separately in a sample program. | |
| REVIEW OF SCANNERS | |
| The most famous port-scanner is "nmap". However, it is a | |
| "host-at-a-time" scanner, and struggles at scanning large networks. | |
| Masscan is an asynchronous, probe-at-a-time scanner. It spews out | |
| probes to different ports, without caring if two probes happen to |
| var net = require('net'); | |
| net.createServer(httpsSshSwitch).listen(443); | |
| // if the first byte is 22, it is a https handshake, | |
| // so redirect it to the actual https server (running on port 8443) | |
| // else redirect it to the ssh instance. | |
| // | |
| // some ssh clients wait for the server to send the first welcome message | |
| // so if we have not seen any data for 2 seconds, assume it is a ssh connection |
| #! /bin/bash | |
| # | |
| # Diffusion youtube avec ffmpeg | |
| # Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
| VBR="2500k" # Bitrate de la vidéo en sortie | |
| FPS="30" # FPS de la vidéo en sortie | |
| QUAL="medium" # Preset de qualité FFMPEG | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"