Skip to content

Instantly share code, notes, and snippets.

Avatar
🌍
Working from World

Chokri K' chokri

🌍
Working from World
View GitHub Profile
View node-cluster.js
const cluster = require('cluster');
const http = require('http');
if (cluster.isMaster) {
// Keep track of http requests
let numReqs = 0;
setInterval(() => {
console.log(`numReqs = ${numReqs}`);
}, 1000);
@chokri
chokri / .zshrc
Last active Oct 15, 2019
Some helpful aliases on my .zshrc
View .zshrc
function kcd {
mkdir ${1};
cd ${1};
git init;
git checkout -b develop;
}
function develop {
git checkout develop;
git pull;
git fetch -ap;
You can’t perform that action at this time.