Skip to content

Instantly share code, notes, and snippets.

@arrawatia
arrawatia / gist:4bb398feb54869da4f0ec31faa34bf3e
Created October 18, 2016 21:29 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
@arrawatia
arrawatia / 0_reuse_code.js
Created October 18, 2016 21:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@arrawatia
arrawatia / service-checklist.md
Created September 13, 2016 22:45 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@arrawatia
arrawatia / install_emacs.sh
Last active April 5, 2018 22:21
emacs 24.4 on ubuntu 10.04
#!/bin/bash
cd /tmp && \
mkdir emacs-src && cd emacs-src && \
wget http://mirror.team-cymru.org/gnu/emacs/emacs-24.4.tar.gz && \
tar xvf emacs-24.4.tar.gz && \
sudo apt-get -yy install build-essential && \
sudo apt-get -yy build-dep emacs24 && \
cd emacs-24.4 && \
./configure && \
make && \
[~/code/src/java-scripting-experiments/src/main/resources (master *=) ]➔ kafkacat -P -X list -b fb-log-0.demo-us-east-1b.quantezza.com -t test
## Global configuration properties
Property | C/P | Default | Description
-----------------------------------------|-----|--------------:|--------------------------
client.id | * | rdkafka | Client identifier.
metadata.broker.list | * | | Initial list of brokers. The application may also use `rd_kafka_brokers_add()` to add brokers during runtime.
message.max.bytes | * | 4000000 | Maximum transmit message size.
receive.message.max.bytes | * | 100000000 | Maximum receive message size. This is a safety precaution to avoid memory exhaustion in case of protocol hickups. The value should be at least fetch.message.max.bytes * number of partitions consumed from + messaging overhead (e.g. 200000 bytes).
metadata.re
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@arrawatia
arrawatia / Trident trace
Created June 23, 2013 19:01
Trace of trident execution.
{transfer-Q|wordCounter-1-1372013468|259be866-478a-46c4-9479-9ab71b748e59|2198f4ae-89cf-48e9-9e1b-7b7db420de16|4}-created. Buffer size : 1024
transfer-Q
{executor-receive-Q|wordCounter-1-1372013468|[2 2]}-created. Buffer size : 1024
executor-receive-Q
{executor-receive-Q|wordCounter-1-1372013468|[3 3]}-created. Buffer size : 1024
executor-receive-Q
{executor-receive-Q|wordCounter-1-1372013468|[4 4]}-created. Buffer size : 1024
executor-receive-Q
{executor-receive-Q|wordCounter-1-1372013468|[5 5]}-created. Buffer size : 1024
executor-receive-Q