Skip to content

Instantly share code, notes, and snippets.

View rahulkumar-aws's full-sized avatar

Rahul Kumar rahulkumar-aws

View GitHub Profile
@rahulkumar-aws
rahulkumar-aws / Application.scala
Last active September 1, 2015 12:02 — forked from jeantil/Application.scala
Playframework 2.2 configurable cors filter
/**
The MIT License (MIT)
Copyright (c) 2013 Jean Helou
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@rahulkumar-aws
rahulkumar-aws / kafka.md
Last active September 6, 2017 21:31
Kafka-Distributed

Kafka Broker setting (If you are running multile broker on same machine.)

config/server.properties

broker.id = 1
listeners=PLAINTEXT://:9093
log.dirs=/tmp/broker1_logs

Start Zookeeper

* Install Java8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
** Install SBT
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
@rahulkumar-aws
rahulkumar-aws / 0_reuse_code.js
Created April 13, 2014 15:39
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