I hereby claim:
- I am freakynit on github.
- I am freakynit (https://keybase.io/freakynit) on keybase.
- I have a public key ASC547gzzrHjkkBPb-L9g2dY3-FKdaiDcv54Mhe1u7kboAo
To claim this, I am signing this object:
// ref.: https://medium.freecodecamp.org/node-js-streams-everything-you-need-to-know-c9141306be93 | |
var stream = require('stream'); | |
var Writable = stream.Writable; | |
var Readable = stream.Readable; | |
var Duplex = stream.Duplex; | |
var Transform = stream.Transform; | |
function consoleWriterStream(){ | |
var writeStream = new Writable({ |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
I hereby claim:
To claim this, I am signing this object:
Examples of getting certificates from Let's Encrypt working on Apache, NGINX and Node.js servers.
I chose to use the manual method, you have to make a file available to verify you own the domain. Follow the commands from running
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
#!/bin/bash | |
START_SCRIPT={{ start_script }} | |
PID_FILE={{ pid_file }} | |
# *********************************************** | |
# *********************************************** | |
ARGS="" # optional start script arguments | |
DAEMON=$START_SCRIPT |
// Root is hotel | |
{ | |
status : "ok", | |
statusCode : 200, | |
hotels : [{ | |
name : "Taj Palace", | |
location : { | |
lat : 12 | |
lng : 77 |
var PORT = 9999; | |
var express = require('express'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
var app = express(); | |
app.use(bodyParser.json()); | |
app.use(bodyParser.urlencoded({ extended: false })); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |