Skip to content

Instantly share code, notes, and snippets.

View primanbo's full-sized avatar

Pri Pramanik primanbo

View GitHub Profile
@primanbo
primanbo / README.md
Created January 7, 2026 19:24 — forked from simzou/README.md
US Map of Nielsen Media Markets

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@primanbo
primanbo / artilleryFunctions.js
Created August 5, 2019 23:18
Le Bite Gallery Proxy- RPS (in development) with setup/config details and sample results
// Artillery stress test functions
const generateIds = (context, events, done) => {
context.vars['restaurant_id'] = Math.floor(Math.random() * 10000000) + 1;
return done();
};
module.exports = {
generateIds,
}
@primanbo
primanbo / artilleryFunctions
Last active August 9, 2019 00:23
Le Bite Gallery Service - RPS (in development) with setup/config details and sample results
// Artillery stress test functions
const generateIds = (context, events, done) => {
context.vars['restaurant_id'] = Math.floor(Math.random() * 10000000) + 1;
return done();
};
module.exports = {
generateIds,
}
@primanbo
primanbo / DbQueries+Results.md
Last active July 31, 2019 21:04
Core database queries and sample results

Core database queries and sample results

Database Management Systems used:

  1. Apache Cassandra
  2. PostgreSQL

Apache Cassandra

Query: select * from testing.images_by_restaurant where restaurant_id=10000000;

var fs = require("fs");
var faker = require('faker');
var restaurantWriter = fs.createWriteStream('restaurantData.csv');
var userWriter = fs.createWriteStream('userData.csv');
var imageWriter = fs.createWriteStream('imageData.csv');
function createRandomRestaurant(){
return `${faker.random.uuid()},${faker.company.companyName()}\n`;
}
@primanbo
primanbo / gist:e2b278cd6710bf98c4a0b1c836e72ffb
Created July 6, 2019 09:46
Sigsa Reviews API call & sample output
Endpoint:
/restaurants/26869/reviews
JSON response:
[{
"restaurant_id": "26869",
"restaurant_name": "LArtusi",
"review_id": 33,
"user_initials": "Emi I. Vargas",
"user_name": "Vivien Farrell",