Skip to content

Instantly share code, notes, and snippets.

View conikeec's full-sized avatar

Chetan Conikee conikeec

View GitHub Profile
import kafka.api.FetchRequest
import kafka.consumer.SimpleConsumer
import kafka.message._
import kafka.utils.Utils
import kafka.api.OffsetRequest
import java.io.{File, FileOutputStream}
import com.yammer.metrics.Instrumented
import com.yammer.metrics.reporting.ConsoleReporter
import java.util.concurrent.TimeUnit
@softprops
softprops / app.scala
Created January 28, 2012 18:44
netty uploads test app
import unfiltered.request._
import unfiltered.response._
import unfiltered.netty._
import unfiltered.request.uploads.netty._
object App {
def main(a: Array[String]) {
@mardambey
mardambey / AkkaKafkaMailboxTest.scala
Last active August 3, 2019 05:03
Akka 2.0 actors with Kafka 0.7.x backed durable mailboxes.
import akka.actor.Actor
import akka.actor.ActorSystem
import akka.agent.Agent
import com.typesafe.config.ConfigFactory
import akka.event.Logging
import akka.actor.Props
import kafka.utils.Utils
import java.nio.ByteBuffer
@jorrizza
jorrizza / srvstdout.go
Last active December 11, 2015 16:09
Serving stdout using websockets and Go.
package main
import (
"code.google.com/p/go.net/websocket"
"flag"
"log"
"net/http"
"os"
)
!/bin/bash
cd /home/hadoop/
sudo apt-get install git
git clone https://github.com/amplab/shark.git -b branch-0.7 shark
#wget http://elasticmapreduce.s3.amazonaws.com/samples/spark/0.7/hive-0.9-bin.tgz
#wget http://elasticmapreduce.s3.amazonaws.com/samples/spark/0.7/shark-0.3-bin.tgz
@junagao
junagao / vscode-italic-font-settings.md
Last active September 1, 2024 03:18
VSCode italic font settings

VSCode italic font settings

Add this to settings.json (cmd ,):

{
  "editor.fontFamily": "Operator Mono, Fira Code iScript, Menlo, Monaco, 'Courier New', monospace",
  "editor.fontLigatures": true,
  "editor.tokenColorCustomizations": {
    "textMateRules": [
      {