Skip to content

Instantly share code, notes, and snippets.

Start Zookeeper

bin/zookeeper-server-start.sh config/zookeeper.properties

Start Kafka

bin/kafka-server-start.sh config/server.properties

Create a topic

bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test

List topics

#basic login ssh -i ~/.ssh/id_rsa use@host

Start JMeter

sh ./apache-jmeter-2.11/bin/jmeter.sh

Find lines that include keyword

^.(string).$

*.class
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.ear
@lifeofreilly
lifeofreilly / mesos_commands.md
Created September 24, 2015 13:57
Mesos Commands

Start mesosphere master docker image

$ docker run -d --net=host --pid=host -p 0.0.0.0:5050:5050 mesosphere/mesos-master:0.22.1-1.0.ubuntu1404 --registry=in_memory

@lifeofreilly
lifeofreilly / create-dropwizard-maven-project.txt
Last active September 18, 2015 05:52
Create a new drop wizard app
mvn archetype:generate \
-DgroupId=com.gmail.lifeofreilly.helloworld \
-DartifactId=helloworld \
-Dname=helloworld \
-Dpackage=com.gmail.lifeofreilly.helloworld \
-DarchetypeGroupId=io.dropwizard.archetypes \
-DarchetypeArtifactId=java-simple \
-DinteractiveMode=false \
@lifeofreilly
lifeofreilly / docker_commands.md
Last active September 22, 2015 02:20
Docker Commands

Check that you have a working install

$ docker info
$ docker run hello-world

Download an ubuntu image

$ docker pull ubuntu

Reset Docker Virtual machine

$ docker-machine restart default # Restart the environment $ eval $(docker-machine env default) # Refresh your environment settings

@lifeofreilly
lifeofreilly / gist:94554780928ce5eb620d
Last active August 29, 2015 14:13
Create a new maven project - maven-archetype-webapp
mvn archetype:generate \
-DgroupId=com.gmail.lifeofreilly.myproject \
-DartifactId=myproject \
-DarchetypeArtifactId=maven-archetype-quickstart \
-DinteractiveMode=false
export JAVA_HOME=$(/usr/libexec/java_home)
export CATALINA_HOME=/Users/sreilly/Documents/apache/apache-tomcat-8.0.17