Skip to content

Instantly share code, notes, and snippets.

View vijay22sai's full-sized avatar

Vijay Kumar Chitirala vijay22sai

View GitHub Profile
let debug = require('debug')('loopback:hooks:wrap');
import async from 'async';
import { createPromiseCallback } from 'loopback-datasource-juggler/lib/utils';
import { inspect } from 'util';
export default function(server) {
let callback = function(args) {

If you haven't read Netflix's Node.js in Flames blog post you should. It is a great deep dive into debugging a node performance problem. The post includes useful tips that can help you solve similar problems.

That said...

My feedback from the perspective of a framework developer is quite different. I found the tone and attitude towards express.js to be concerning and somewhat offensive. Here was a developer blaming the framework he chose for poor architecture when they never bothered to actually learn how the framework works in the first place. Everything that followed originated from this basic lack of understanding.

Express uses a very simple router logic which is at the core of how express works, so let’s examine that first (my knowledge of express is somewhat dated but I think the principle is still the same). Express keeps a hash of the various HTTP methods (GET, POST, etc.) and for each method, an array of middlewares. Each middleware is ju

@ricardo-rossi
ricardo-rossi / ElasticSearch.sh
Last active February 25, 2025 22:09
Installing ElasticSearch on Ubuntu 14.04
#!/bin/bash
### USAGE
###
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7
### ./ElasticSearch.sh will fail because no version was specified (exit code 1)
###
### CLI options Contributed by @janpieper
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch
@hofmannsven
hofmannsven / README.md
Last active December 8, 2025 16:31
Git CLI Cheatsheet
@jasonrudolph
jasonrudolph / about.md
Last active November 13, 2025 16:55
Programming Achievements: How to Level Up as a Developer