Skip to content

Instantly share code, notes, and snippets.

View manjufy's full-sized avatar
💭
Building Stuff

Manjunath Reddy manjufy

💭
Building Stuff
View GitHub Profile

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 April 23, 2021 03:58 — forked from skyzyx/rca.md
Internal (not customer-facing) Root Cause Analysis (aka Post-Mortem) template

[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 November 9, 2020 01:48 — 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.
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 September 26, 2020 07:33 — forked from icebob/saga-sample.js
Saga middleware PoC for Moleculer
"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 September 26, 2020 07:33 — forked from icebob/saga-sample.js
Saga middleware PoC for Moleculer
"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() {
const getDrivers = () => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve([
{
id: 1,
name: 'Hamilton'
},
{
id: 1,

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 December 21, 2019 06:04
My Development

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 August 17, 2018 02:36
JavaScript Array is an object
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))