Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
FROM python:3-alpine | |
EXPOSE 80 443 | |
RUN apk add --no-cache --virtual .certbot-deps \ | |
libffi libssl1.0 openssl ca-certificates binutils | |
RUN apk add --no-cache --virtual .build-deps \ | |
gcc linux-headers openssl-dev musl-dev libffi-dev \ | |
&& pip install --no-cache-dir certbot \ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
run_jupyter: | |
docker run --runtime=nvidia --rm -d -p 80:8888 -v /notebooks:/notebooks \ | |
tensorflow/tensorflow:latest-gpu-py3 jupyter notebook \ | |
--notebook-dir=/notebooks --allow-root --NotebookApp.token='' |
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 RPi.GPIO as GPIO | |
import time | |
INTERVAL = 0.5 | |
GPIO.setmode(GPIO.BCM) | |
PIN = 3 | |
GPIO.setup(PIN, GPIO.OUT) |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.provider "virtualbox" do |vb| | |
vb.cpus = 1 | |
vb.memory = 1024 | |
# https://github.com/joelhandwell/ubuntu_vagrant_boxes/issues/1 | |
vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"] |
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
#!/bin/bash -eu | |
if [ $# -ne 1 ]; then | |
echo -e "Usage:\n run_workflow.sh <workflowId>" 1>&2 | |
exit 1 | |
fi | |
API_BASE='http://127.0.0.1:65432' | |
WORKFLOW_ID=$1 | |
SESSION_TIME=`date -u +"%Y-%m-%dT%H:%M:%SZ"` |
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
from flask import Flask | |
application = Flask(__name__) | |
@application.route("/") | |
def hello(): | |
return "Hello World!" |
NewerOlder