This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ofirski; | |
import com.datastax.oss.driver.api.core.ProtocolVersion; | |
import com.datastax.oss.driver.api.core.type.DataType; | |
import com.datastax.oss.driver.api.core.type.DataTypes; | |
import com.datastax.oss.driver.api.core.type.codec.TypeCodec; | |
import com.datastax.oss.driver.api.core.type.reflect.GenericType; | |
import edu.umd.cs.findbugs.annotations.NonNull; | |
import edu.umd.cs.findbugs.annotations.Nullable; | |
import com.datastax.oss.driver.api.core.uuid.Uuids; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo useradd --create-home -s /bin/bash deploy | |
sudo adduser deploy sudo | |
sudo passwd deploy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Normal push to heroku (From https://coderwall.com/p/ssxp5q): | |
git subtree push --prefix pythonapp heroku master | |
Initial push to heroku remote From http://stackoverflow.com/questions/13756055/git-subtree-subtree-up-to-date-but-cant-push | |
git push heroku `git subtree split --prefix pythonapp master`:master --force | |
Compact history after initial deploy From http://stackoverflow.com/questions/16134975/reduce-increasing-time-to-push-a-subtree | |
git subtree split --rejoin --prefix=<prefix> <commit...> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.util.Properties; | |
import kafka.server.KafkaConfig; | |
import kafka.server.KafkaServerStartable; | |
public class KafkaLocal { | |
public KafkaServerStartable kafka; | |
public ZooKeeperLocal zookeeper; |