Get kubectl version
kubectl version
Get cluster info:
kubectl cluster-info
| Vagrant.configure(2) do |config| | |
| config.vm.box = "ubuntu/trusty64" | |
| config.vm.network "private_network", ip: "192.168.33.10" | |
| config.vm.provision "shell", inline: <<-SHELL | |
| apt-get update -q | |
| su - vagrant | |
| wget -q https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh | |
| chmod +x miniconda.sh | |
| ./miniconda.sh -b -p /home/vagrant/miniconda | |
| echo 'export PATH="/home/vagrant/miniconda/bin:$PATH"' >> /home/vagrant/.bashrc |
| package examples | |
| import java.sql.DriverManager | |
| import db.jdbc.JDBC | |
| import com.typesafe.config.ConfigFactory | |
| object MainIgnite extends App { | |
| // SEE: https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteJdbcThinDriver.html |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>TESTING for RDF!</title> | |
| <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
| <style type="text/css"> | |
| <!-- initialize ng-app ... --> | |
| <!-- debug --> | |
| <hr/> | |
| <section id="debug" ng-controller="debugCtrl"> | |
| <style> | |
| #debug { | |
| padding: 1em; | |
| background: #DDD; | |
| } |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| package examples.scala.php | |
| object MainProve extends App { | |
| Predef println "Hello world!" | |
| val p1 = new Person1("John", "Doe") | |
| println(p1) | |
| val p2 = new Person2("John", "Doe") |
| package scala.examples.web | |
| import java.net.InetSocketAddress | |
| import java.util.concurrent.Executors | |
| import com.sun.net.httpserver.HttpExchange | |
| import com.sun.net.httpserver.HttpHandler | |
| import com.sun.net.httpserver.HttpServer | |
| import java.io.BufferedReader | |
| import java.io.InputStreamReader | |
| import java.net.InetAddress |