Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Building Stuff

Manjunath Reddy manjufy

💭
Building Stuff
  • https://devly.co
  • Kuala Lumpur, Malaysia
View GitHub Profile
View README.md

I'm OK; The Bull Is Dead

By Gopal K. Kapur
Published at Computerworld • JUN 21, 2004 6:00 AM PST

Early in my career, when I worked as an engineer, my boss had a process by which the engineering team was expected to report project status. He insisted that we use the following steps, in the specified order:

  1. Punch line: The facts; no adjectives, adverbs or modifiers. "Milestone 4 wasn't hit on time, and we didn't start Task 8 as planned." Or, "Received charter approval as planned."

  2. Current status: How the punch-line statement affects the project. "Because of the missed milestone, the critical path has been delayed five days."

@manjufy
manjufy / rca.md
Created Apr 23, 2021 — forked from skyzyx/rca.md
Internal (not customer-facing) Root Cause Analysis (aka Post-Mortem) template
View rca.md

[20XX-XX-XX] Service Name downtime

  • This is a blameless Post-mortem.
  • We will not focus on the past events as they pertain to "could've", "should've", etc.
  • All follow up action items will be assigned to a team/individual before the end of the meeting.
  • If the item is not going to be top priority leaving the meeting, don't make it a follow up item.

| | |

@manjufy
manjufy / prepareElastic.js
Created Nov 9, 2020 — forked from stekhn/prepareElastic.js
Creates and prepares an Elasticsearch index, using the Node.js client. Closes the index before putting settings and mappings. The response and error handlers are optional, remove them if necessary.
View prepareElastic.js
var elastic = require('elasticsearch');
var client = new elastic.Client({ host: 'localhost:9200' });
var index = 'myindex';
var type = 'document';
(function init() {
Promise.resolve()
.then(deleteIndex, handleError)
@manjufy
manjufy / saga-sample.js
Last active Sep 26, 2020 — forked from icebob/saga-sample.js
Saga middleware PoC for Moleculer
View saga-sample.js
"use strict";
const _ = require("lodash");
const chalk = require("chalk");
const Promise = require("bluebird");
const ServiceBroker = require("../src/service-broker");
const { MoleculerError } = require("../src/errors");
// --- SAGA MIDDLEWARE ---
const SagaMiddleware = function() {
@manjufy
manjufy / saga-sample.js
Created Sep 26, 2020 — forked from icebob/saga-sample.js
Saga middleware PoC for Moleculer
View saga-sample.js
"use strict";
const _ = require("lodash");
const chalk = require("chalk");
const Promise = require("bluebird");
const ServiceBroker = require("../src/service-broker");
const { MoleculerError } = require("../src/errors");
// --- SAGA MIDDLEWARE ---
const SagaMiddleware = function() {
View nodejs-foreach-await-async.js
const getDrivers = () => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve([
{
id: 1,
name: 'Hamilton'
},
{
id: 1,
View reason-for-pr.md

Reason for Pull Request

Quality Assurance?

  • Did we implement test, if so, did it pass?
  • Did the change add/remove tests? why?
  • Did the commit decrease quality measurably?
  • Did the commit introduce possible future technical debt? is it acceptable? → Its always good to get teams opinion and come to conclusion
  • Did any of the tooling indicate a decrease in maintainability or compliance?

In terms of Operation

@manjufy
manjufy / local.dev.md
Last active Dec 21, 2019
My Development
View local.dev.md

Managing gitignores

if you are using multiple languages and would like to ignore default files or folders, just add those files to global gitignore.

Example

.gitignore.global look like this

.DS_Store
@manjufy
manjufy / array.js
Created Aug 17, 2018
JavaScript Array is an object
View array.js
const drivers = ['Vettel', 'Alonso', 'Hamilton']
console.log('Length', drivers.length) // Length = 3
drivers.length = 10
console.log('Length', drivers.length, drivers) // Length = 10
// In Javascript, array is list-like Object
console.log(Object.keys(drivers))