- SUCCESS: has("nvim") was successful
- SUCCESS: has("python3") was successful
- INFO: If you're still having problems, try the following commands: $ export NVIM_PYTHON_LOG_FILE=/tmp/log $ export NVIM_PYTHON_LOG_LEVEL=DEBUG $ nvim
This file contains 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
from grpc.tools import protoc | |
protoc.main( | |
( | |
'', | |
'--proto_path=.', | |
'--python_out=.', | |
'--grpc_python_out=.', | |
'solver.proto' | |
) |
This file contains 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
############################ | |
# chroot demo # | |
############################ | |
pwd # outside container | |
mkdir newroot | |
mkdir -p newroot/{bin,dev,lib,libexec,sbin} | |
# copy bins |
This file contains 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
# Dockerfile.tools | |
FROM ubuntu | |
RUN apt-get update && \ | |
apt-get install -y \ | |
openjdk-8-jdk \ | |
wget \ | |
curl \ | |
iputils-ping \ | |
net-tools \ |
This file contains 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
description "play-app upstart script" | |
start on runlevel 2 | |
setuid play-app | |
script | |
sleep 2s | |
cd /opt/play-app | |
rm -f RUNNING_PID | |
PLAY_JVM_OPTIONS="-J-server -J-verbose:gc \ |
This file contains 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 main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"fmt" | |
"io" | |
"log" | |
) |
This file contains 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
curl -X POST http://marathon-master:8080/v2/apps -d @python-app.json -H "Content-type: application/json" | python -m json.tool |
This file contains 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
play-multimodule-demo nate$ sbt test:compile | |
[info] Loading project definition from /Users/nate/Workspace/github.com/natemurthy/play-multimodule-demo/project | |
[info] Updating {file:/Users/nate/Workspace/github.com/natemurthy/play-multimodule-demo/project/}play-multimodule-demo-build... | |
[info] Resolving org.fusesource.jansi#jansi;1.4 ... | |
[info] downloading https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.play/sbt-plugin/scala_2.10/sbt_0.13/2.4.6/jars/sbt-plugin.jar ... | |
[info] [SUCCESSFUL ] com.typesafe.play#sbt-plugin;2.4.6!sbt-plugin.jar (4806ms) | |
[info] downloading https://repo1.maven.org/maven2/com/typesafe/play/sbt-routes-compiler_2.10/2.4.6/sbt-routes-compiler_2.10-2.4.6.jar ... | |
[info] [SUCCESSFUL ] com.typesafe.play#sbt-routes-compiler_2.10;2.4.6!sbt-routes-compiler_2.10.jar (4253ms) | |
[info] downloading https://repo1.maven.org/maven2/com/typesafe/play/sbt-run-support_2.10/2.4.6/sbt-run-support_2.10-2.4.6.jar ... | |
[info] [SUCCESSFUL ] com.typesafe.play#sbt-run-support_2.10;2.4.6!sbt-run |
This file contains 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
{ | |
"id": "python-app", | |
"cmd": "python3 -m http.server 8080", | |
"cpus": 0.5, | |
"mem": 32.0, | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"image": "python:3", | |
"network": "BRIDGE", |