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
| bkarels@ubuntu:~/dev/avro/thing$ cat thing.avsc | |
| { | |
| "namespace": "com.rbh.avro.pops.thing", | |
| "type": "record", | |
| "name": "Thing", | |
| "fields": [ | |
| { | |
| "name": "name", | |
| "type": "string" | |
| }, |
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
| $ wget http://www.trieuvan.com/apache/zookeeper/stable/zookeeper-3.4.6.tar.gz | |
| $ tar xvf zookeeper-3.4.6.tar.gz | |
| $ cd zookeeper-3.4.6/ | |
| $ apt-get install -y software-properties-common unzip | |
| $ add-apt-repository ppa:openjdk-r/ppa | |
| $ apt-get update | |
| $ apt-get install -y openjdk-8-jdk | |
| $ touch /etc/profile.d/javahome.sh | |
| $ echo "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/" > /etc/profile.d/javahome.sh | |
| $ cat /etc/profile.d/javahome.sh |
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
| $ wget http://apache.mirrors.tds.net/kafka/0.9.0.0/kafka_2.11-0.9.0.0.tgz | |
| $ apt-get install -y software-properties-common unzip | |
| $ add-apt-repository ppa:openjdk-r/ppa | |
| $ apt-get update | |
| $ apt-get install -y openjdk-8-jdk | |
| $ wget http://downloads.typesafe.com/scala/2.11.7/scala-2.11.7.tgz | |
| $ tar xzf scala-2.11.7.tgz | |
| $ mkdir -p /usr/local/share/scala && mv scala-2.11.7 /usr/local/share/scala | |
| $ touch /etc/profile.d/scalahome.sh | |
| $ vim /etc/profile.d/scalahome.sh |
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
| docker ps -a | grep Exited | awk '{print $1}' | xargs -r docker rm | |
| docker ps -a | grep Exited | awk '{print $1}' | xargs --no-run-if-empty docker rm |
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
| var should = require('should'); | |
| var request = require('request'); | |
| var url = 'http://localhost:8080'; | |
| var HttpServer = require('./server').HttpServer; | |
| var server; | |
| describe('HttpServer', function () { | |
| before(function (done) { | |
| server = new HttpServer({port: 8080}).start(done); |
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 add-apt-repository ppa:openjdk-r/ppa | |
| sudo apt-get update | |
| sudo apt-get install openjdk-8-jdk |
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
| // Given a simple trait | |
| trait NiceTrait { | |
| def isNice(s: String): Boolean = s match { | |
| case "nice" => true | |
| case _ => false | |
| } | |
| } | |
| //It is possible to "instantiate" this trait two ways, manually create a class and instantiate that: | |
| class MyClass extends NiceTrait |
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
| $ terminator | |
| $ which python-support | |
| $ wget http://launchpadlibrarian.net/109052632/python-support_1.0.15_all.deb | |
| $ sudo dpkg -i python-support_1.0.15_all.deb |
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
| docker stop $(docker ps -a -q) | |
| docker rm $(docker ps -a -q) |
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 killall VDCAssistant |